eJay Posted August 8, 2012 Posted August 8, 2012 how to decrease or chance to coma using tarot skill ? Quote
Lighta Posted August 8, 2012 Posted August 8, 2012 Source edit. src/map/skill.c search CG_TAROTCARD. You'll see : eff = rnd() % 14; wich mean every card get the same amount oh chance of appreance. Change this like : eff = rnd()%135; if(eff<5) { //5/135 do tarot sc_start(bl, SC_COMA, 100, skilllv, skill_get_time2(skillid, skilllv)); sc_start(bl, SC_CURSE, 100, skilllv, skill_get_time2(skillid, skilllv)); sc_start(bl, SC_POISON, 100, skilllv, skill_get_time2(skillid, skilllv)); } elseif(eff<15) //10/135 confusion sc_start(bl, SC_CONFUSION, 100, skilllv, skill_get_time2(skillid, skilllv)); elseif(eff<25) //10/135 stun sc_start(bl, SC_STUN, 100, skilllv, 5000); ...... Etc, so basically you just need to change the rand() and the switch associated. Think about with rate you want to attribuate of the rest of card, in my exemple here I gave 5/135 chance for tarot and 10/135 for the other, (since we have 14 card total will be 135) That the way I'll do it otherwise you may just alter the chance of getting the coma status and not changing the card chance. (wich mean you may get the card but not the status wich can be quite annoying...) Quote
Question
eJay
how to decrease or chance to coma using tarot skill ?
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.