Jump to content
  • 0

Dispell MVP Scroll Effect upon Agit Entry


JagLers

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/22/19
  • Last Seen:  

I can't seem to make this work other than using sc_end SC_ALL;

can someone help me correct this script? loadevent is in a different file (mapflag/loadevent.txt)

 

-	script	debuffAGIT	-1,{
OnPCLoadMapEvent:
       if (getmapflag(strcharinfo(3),mf_gvg))
    {
    sc_end EFST_MVPCARD_TAOGUNKA;
    sc_end EFST_MVPCARD_MISTRESS;
    sc_end EFST_MVPCARD_ORCHERO;
    sc_end EFST_MVPCARD_ORCLORD;
	end;
    }
}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

-	script	debuffAGIT	-1,{
OnPCLoadMapEvent:
    if (!agitcheck)
       end;
    if (getmapflag(strcharinfo(3),mf_gvg)) {
         sc_end EFST_MVPCARD_TAOGUNKA;
         sc_end EFST_MVPCARD_MISTRESS;
         sc_end EFST_MVPCARD_ORCHERO;
         sc_end EFST_MVPCARD_ORCLORD;
    }
}

Only additioned agitcheck condition. I dunno if there is a better way of doing that with OnPCLoadMapEvent:

Alternatively you may call a function in every warp/flag that gets you in a Castle:

Something like:
 

function	script	DebuffAgit,{
	if(checkagit())
	{
		sc_end EFST_MVPCARD_TAOGUNKA;
    	sc_end EFST_MVPCARD_MISTRESS;
    	sc_end EFST_MVPCARD_ORCHERO;
    	sc_end EFST_MVPCARD_ORCLORD;
  	}
	return;
}
// Now this is a exemple of a warp npc that teleports you into a castle
place,x,y,0	script	Warp#Castle1	"warp sprite",1,1,{
OnTouch:
	callfunc "DebuffAgit";
	// then warp here
}

It may take longer to make all changes in your server but certainly less laggy.

Sry bad english

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