JagLers Posted July 22, 2020 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 11/22/19 Last Seen: August 29, 2020 Share Posted July 22, 2020 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; } } Quote Link to comment Share on other sites More sharing options...
0 buraquera Posted July 24, 2020 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 68 Reputation: 8 Joined: 05/12/20 Last Seen: 12 hours ago Share Posted July 24, 2020 - 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 Quote Link to comment Share on other sites More sharing options...
Question
JagLers
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.