Jump to content
  • 0
Sign in to follow this  
kerbiii

R> Full Debuff

Question

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

13 answers to this question

Recommended Posts

  • 0

doc/script_commands.txt

*sc_end <effect type>{,<GID>};

'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 you can just do this:

sc_end SC_ALL;

 
And you're done.

Share this post


Link to post
Share on other sites
  • 0
- 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?

Share this post


Link to post
Share on other sites
  • 0
OnPCLoadMapEvent:This special label will trigger once a player steps in a map marked with the 'loadevent' mapflag and attach its RID. 
Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0
-	script	debuffer	-1, {OnPCLoadMapEvent:		sc_end SC_ALL;}pvpmorocc    mapflag    loadevent 

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 by Mumbles
Codeboxed.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.