Jump to content
  • 0

Dispell MVP Scroll Effect upon Agit Entry


Question

Posted

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;
    }
}

 

1 answer to this question

Recommended Posts

  • 0
Posted
-	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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...