Jump to content
  • 0

how to decrease or chance to coma using tarot skill ?


eJay

Question


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

how to decrease or chance to coma using tarot skill ?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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...)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...