Using random on configuration file? (Namech S2)

Results 1 to 2 of 2
  1. #1
    c# Programmer martinx09 is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Using random on configuration file? (Namech S2)

    So I really don't know how config files work,
    but considering code is made on c++ (not sure if that's the case),
    is it posible to do this for example?:

    [BloodCastle]
    BCItemDropGroup = 14
    BCItemDropID = 11
    BCItemDropLevel = 8+(rand()%4) // Random kundum between +1 and +4

    (thats event config from namech season 2 files).
    Is that possible or (as I expect) it's not?


  2. #2

    Re: Using random on configuration file? (Namech S2)

    Hey ,
    Configurations are made simply from with numbers without precent (most of them)
    so for example for BC drop reward and you want it to drop Box+1+2+3+4+5 (random one)
    i dont think its possible there to do that in the current files.

    for example in IA Julia files
    there in config folder which is IA Julia\Events\ there is another configuration .dat file for BC
    where you can insert multiple items (im not sure if they drop all but it seems so)

    Code:
    [DropCount]
    
    DropCountRate = 0 // 0-100 ; 0 -> drop 1 item ; 60 -> in 60% drop <DropCountItems> items and 40% drop 1 item ; 100 - always drop <DropCountItems> items
    DropCountItems = 1 // 1-10 items count
    
    // ancType -> 0 if Anc = 0 ; 5 or 10, depending on Item Ancient Type (usual 5, if 5 bugged - use 10)
    
    // BC_Number
    //	[1-10000]	[0-15]	[0-250]	[0-13]	[0-13]	[0-255]	[0-100]	[0-100]	[0-7]	[0-7]	[0-100]	[0-6]	[0-6]	[0-100]	[0/5/10]
    //	%Rate		Type	Idx	minLvl	maxLvl	Dur	%Skill	%Luck	minOpt	maxOpt	%Exc	minExc	maxExc	%Anc	ancType
    // end
    
    1
    	10000		12	15	0	0	0	0	0	0	0	0	0	0	0	0	//chaos
    end
    
    2
    	10000		13	14	0	0	0	0	0	0	0	0	0	0	0	0	//loch feather
    end
    
    3
    	10000		14	16	0	0	0	0	0	0	0	0	0	0	0	0	//life
    end
    
    4
    	10000		12	30	0	0	0	0	0	0	0	0	0	0	0	0	//bles10
    end
    
    5
    	10000		12	31	0	0	0	0	0	0	0	0	0	0	0	0	//soul10
    end
    
    6
    	10000		13	64	0	0	0	0	0	0	0	0	0	0	0	0	//demon
    end
    
    7
    	10000		13	65	0	0	0	0	0	0	0	0	0	0	0	0	//guardian
    end
    
    8
    	2000		13	67	0	0	0	0	0	0	0	0	0	0	0	0	//rudolf
    	2000		14	13	0	0	0	0	0	0	0	0	0	0	0	0	//bless
    	6000		14	14	0	0	0	0	0	0	0	0	0	0	0	0	//soul
    end
    If you have enough knowledge , get the IA Julia sources and hook the source of this event configuration files into your GS(GameServer)
    and hopefully it will work out for you.

    Peace



Advertisement