eJay Posted August 8, 2012 Group: Members Topic Count: 80 Topics Per Day: 0.02 Content Count: 325 Reputation: 76 Joined: 03/22/12 Last Seen: August 5, 2019 Share Posted August 8, 2012 how to decrease or chance to coma using tarot skill ? Quote Link to comment Share on other sites More sharing options...
Lighta Posted August 8, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share 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 Link to comment Share on other sites More sharing options...
Question
eJay
how to decrease or chance to coma using tarot skill ?
Link to comment
Share on other sites
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.