Jump to content
  • 0
Sign in to follow this  
Nekotine

Warp dispel

Question

Is there a way to add a script that fully dispel a player when entering a map warp? (regular warp, not npc warper or warp portal skill)

 

Bless, agi up, berserk, fury... things like that

 

...or just remove buffs in general while entering some specific maps

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

if you want to do in specific map, maybe getunits can help.

 

something like...

 

    .@count = getunits((BL_PC), .@units, false, "pay_fild01");

    for(.@i = 0; .@i < .@count; .@i++) {
        attachrid(.@units[.@i]);
        sc_end(SC_END);
    }

But this piece of code need to be trigger by some way, like, Ontimer events, npc talk event, on touch event or whatever things that trigger this.

 

Like..

 

OnTimer5000:

	.@count = getunits((BL_PC), .@units, false, "pay_fild01");

	for(.@i = 0; .@i < .@count; .@i++) {
		attachrid(.@units[.@i]);
		sc_end(SC_END);
	}
	stopnpctimer();
	initnpctimer();
end;

OnInit:
	initnpctimer();
end;

This will remove all the buffs that all players have in pay_fild01 each 5seconds.

Share this post


Link to post
Share on other sites
  • 0

My idea was remove buffs specially in MVP maps where ppl like monks who like to abuse the saving grace that warps give forcing them to cast their skills "on the map" instead 

Edited by Nekotine

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.