Jump to content
  • 0

exclude certain statuses from "Dispell" skill


sizenine

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

is it possible to make it so that some statuses dont get dispelled on a player? please show me an example if you know how, thank you.

EDIT:

i think i found the area to add it in skill.c:

case SA_DISPELL:
if (flag&1 || (i = skill_get_splash(skillid, skilllv)) < 1)
{
clif_skill_nodamage(src,bl,skillid,skilllv,1);
if((dstsd && (dstsd->class_&MAPID_UPPERMASK) == MAPID_SOUL_LINKER)
|| (tsc && tsc->data[sC_SPIRIT] && tsc->data[sC_SPIRIT]->val2 == SL_ROGUE) //Rogue's spirit defends againt dispel.
|| rnd()%100 >= 50+10*skilllv
|| ( tsc && tsc->option&OPTION_MADOGEAR ) )//Mado Gear is immune to dispell according to bug report 49 [ind]
{

Since I'm trying to exclude a SC from being dispelled, I guess I should follow the format of Rogue's spirit? So can someone explain what the code in that condition means?

(tsc && tsc->data[sC_SPIRIT] && tsc->data[sC_SPIRIT]->val2 == SL_ROGUE)

Edited by sizenine
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  187
  • Reputation:   35
  • Joined:  01/01/12
  • Last Seen:  

no just simply add the SC inside the switch

case SC_HAWKEYES: case SC_GUILDAURA:

continue;

just find that and add after case SC_GUILDAURA: your SC...

  • Upvote 1
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...