Tarot Card Failures

GM.PiXeL

New member
Messages
56
Points
0
Hi Hercules,

Can someone teach me how to make tarot card always successful.?

i mean it will never failed ("Skill Failed")

Thanks.

 
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
default_smile.png


 
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:
Back
Top