kerbiii 5 Posted September 14, 2013 I need help on script that will remove all buffs when entering castle during woe, disabling some items are useless if they can use it outside then go inside.. Thanks in advance. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted September 14, 2013 doc/script_commands.txt *sc_end <effect type>{,<GID>};'sc_end' will remove a specified status effect. If SC_All is used (-1), itwill do a complete removal of all statuses (although permanent ones willre-apply). So you can just do this: sc_end SC_ALL; And you're done. Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted September 15, 2013 - script debuffer -1, { OnPCLoadMapEvent: getmapxy (.@map$, .@x, .@y, 0); if ( ( .@map$ == "arug_cas01" ) || (.@map$ == "schg_cas01")) || (.@map$ == "schg_cas02")) { sc_end SC_ALL; dispbottom "you've been debuffed."; } } tried this, its not working any suggestion? Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted September 15, 2013 (edited) OnPCLoadMapEvent:This special label will trigger once a player steps in a map marked with the 'loadevent' mapflag and attach its RID. Edited September 15, 2013 by Angelmelody Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted September 15, 2013 what do i need to add in mapflag? Quote Share this post Link to post Share on other sites
0 mleo1 36 Posted September 16, 2013 - script debuffer -1, {OnPCLoadMapEvent: sc_end SC_ALL;}pvpmorocc mapflag loadevent Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted September 16, 2013 try this one - script debuffer -1,{OnInit: setarray .Map$[0], "arug_cas01", "schg_cas01", "schg_cas02"; set .size, getarraysize(.Map$); for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 ) setmapflag .Map$[.@i], mf_loadevent; end; OnPCLoadMapEvent: getmapxy(@map$, @x, @y, 0); while ( .@j < .size ) { if ( @map$ == .Map$[.@j] ) sc_end SC_ALL; set .@j, .@j + 1; } end;} 1 Mumbles reacted to this Quote Share this post Link to post Share on other sites
0 kerbiii 5 Posted September 17, 2013 tried patskie script and it works like a charm, thanks Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted September 20, 2013 Does sc_end sc_all ends overweight as well ? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted September 20, 2013 As doc/script_commands.txt says: 'sc_end' will remove a specified status effect. If SC_All is used (-1), it will do a complete removal of all statuses (although permanent ones will re-apply). So I think it ends it but then it's reapplied. 1 quesoph reacted to this Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted September 21, 2013 Thanks jaBote! Quote Share this post Link to post Share on other sites
0 penwilders 0 Posted December 10, 2013 (edited) help please where to put this? in a .txt file? like a npc? - script debuffer -1,{OnInit: setarray .Map$[0], "arug_cas01", "schg_cas01", "schg_cas02"; set .size, getarraysize(.Map$); for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 ) setmapflag .Map$[.@i], mf_loadevent; end; OnPCLoadMapEvent: getmapxy(@map$, @x, @y, 0); while ( .@j < .size ) { if ( @map$ == .Map$[.@j] ) sc_end SC_ALL; set .@j, .@j + 1; } end;} Edited December 10, 2013 by Mumbles Codeboxed. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted December 10, 2013 That is, in fact, a NPC. Quote Share this post Link to post Share on other sites
0 penwilders 0 Posted December 10, 2013 i just tabbed the spaces in the first line haha thank you! Quote Share this post Link to post Share on other sites
I need help on script that will remove all buffs when entering castle during woe, disabling some items are useless if they can use it outside then go inside..
Thanks in advance.
Share this post
Link to post
Share on other sites