G GM.PiXeL New member Messages 56 Points 0 Sep 22, 2013 #2 Hi Hercules, Can someone teach me how to make tarot card always successful.? i mean it will never failed ("Skill Failed") Thanks.
Hi Hercules, Can someone teach me how to make tarot card always successful.? i mean it will never failed ("Skill Failed") Thanks.
schwierig New member Messages 11 Points 0 Sep 22, 2013 #3 Look at this line in skill.c if( rnd() % 100 > skill_lv * 8 || (dstmd && ((dstmd->guardian_data && dstmd->class_ == MOBID_EMPERIUM) || mob_is_battleground(dstmd))) ) There the fail chance is being evaluated, in this case a percent chance of skill_lv*8 and a random. Change it to your needs
Look at this line in skill.c if( rnd() % 100 > skill_lv * 8 || (dstmd && ((dstmd->guardian_data && dstmd->class_ == MOBID_EMPERIUM) || mob_is_battleground(dstmd))) ) There the fail chance is being evaluated, in this case a percent chance of skill_lv*8 and a random. Change it to your needs
Uzieal Community Contributors Messages 265 Points 0 Age 37 Github Uzieal Emulator Sep 22, 2013 #4 Just as a note, once you make a change to your source code you will need to recompile your server. Making a backup before changing any source or recompiling is highly recommended. Here is the Wiki Entry on Compiling: http://herc.ws/wiki/Compiling Last edited by a moderator: Sep 22, 2013
Just as a note, once you make a change to your source code you will need to recompile your server. Making a backup before changing any source or recompiling is highly recommended. Here is the Wiki Entry on Compiling: http://herc.ws/wiki/Compiling