Jump to content
  • 0

professor dispell bypass GTB when linked


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

so ive been looking here quite a while then i found thi

so i followed the steps it actually lead me here

got this error

image.png.fdf4ed7595e1dc817f8c599724087be8.png

wit this code

if(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[SC_HERMODE] && rnd()%100 < 70 
			|| status_isimmune(bl) && !(sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_SAGE) ){
				if (sd)
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				break;

so i edit it with this code

if(sc && tsc->data[SC_SPIRIT] && tsc->data[SC_SPIRIT]->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[SC_HERMODE] && rnd()%100 < 70 
			|| status_isimmune(bl) && !(sc && tsc->data[SC_SPIRIT] && tsc->data[SC_SPIRIT]->val2 == SL_SAGE) ){
				if (sd)
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				break;

and almost the same error so i edit it again with this

if(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE && status_isimmune(bl) && !tsc->data[SC_HERMODE] && rnd()%100 < 70 
			|| status_isimmune(bl) && !(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE) ){
				if (sd)
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				break;
			}

got this kind of error probably progress

image.thumb.png.6a65f0748cec472ecaf618047c007e8d.png

then i try to modify it again with this

if(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE && status_isimmune(bl) && !tsc->getSCE(SC_HERMODE) && rnd()%100 < 70 
			|| status_isimmune(bl) && !(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE) ){
				if (sd)
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				break;

so this code doesnt have any errors or warning i compiled perfectly 

 

i just wanna share this to those who are using latest git of rathena 

working as of 4/30/2023 git 84bf6b8

dont know where to post this so i post it here in src support thread

 

so here is the complete details

 

in skill.cpp find this

struct status_change_entry *tsce;

and insert this below just remove the "+" sign

+	struct status_change *sc = status_get_sc(src);

then look for this

case SA_DISPELL:

Find this line 

if(status_isimmune(bl))

Change to this

if(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE && status_isimmune(bl) && !tsc->getSCE(SC_HERMODE) && rnd()%100 < 70 
			|| status_isimmune(bl) && !(sd && tsc && sd->sc.getSCE(SC_SPIRIT) && sd->sc.getSCE(SC_SPIRIT)->val2 == SL_SAGE) ){
				if (sd)
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				break;

then recompile

 

i hope this can help

 

PS: just move my post to the correct thread if i posted in the incorrect one thanks

dont for get to "upvote" if its helps thank you ❤️

Edited by AinsLord
  • Upvote 1
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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