Jump to content
  • 0

How to enable dispel when entering warp


Question

Posted

Hi,

When entering warp, there is 5 seconds delay on which you cannot be attacked.

How to set-it up so players can be dispel after entering the portal.

 

Thanks!

SiguRO Games

5 answers to this question

Recommended Posts

  • 0
Posted
5 hours ago, sisgurogames said:

Hi,

When entering warp, there is 5 seconds delay on which you cannot be attacked.

How to set-it up so players can be dispel after entering the portal.

 

Thanks!

SiguRO Games

Just give a try didn't test.

// Credits: Stolao
function	script	dispell_Function	{
	while( .@STATUS < 297 ) {
		if(	
			.@STATUS != SC_WEIGHT50 &&
			.@STATUS != SC_WEIGHT90 &&
			.@STATUS != SC_NOCHAT &&
			.@STATUS != SC_XMAS &&
			.@STATUS != SC_SUMMER &&
			.@STATUS != SC_JAILED &&
			.@STATUS != SC_STRFOOD &&
			.@STATUS != SC_AGIFOOD &&
			.@STATUS != SC_VITFOOD &&
			.@STATUS != SC_INTFOOD &&
			.@STATUS != SC_DEXFOOD &&
			.@STATUS != SC_LUKFOOD &&
			.@STATUS != SC_FLEEFOOD &&
			.@STATUS != SC_BATKFOOD &&
			.@STATUS != SC_WATKFOOD &&
			.@STATUS != SC_MATKFOOD &&
			.@STATUS != SC_SCRESIST &&
			.@STATUS != SC_EXPBOOST &&
			.@STATUS != SC_ITEMBOOST &&
			.@STATUS != SC_BOSSMAPINFO &&
			.@STATUS != SC_LIFEINSURANCE &&
			.@STATUS != SC_JEXPBOOST
		)
		sc_end .@STATUS;
		.@STATUS++;
	}
	return;
}
// Sample Script
geffen, 119, 71, 0	script	TestWarp#Sample	45,2,2,{
	end;
OnTouch:
	mes "[ Portal ]";
	mes "^FF0000WARNING: Once you entered automatically dispelled.^000000";
	close2;
	warp "geffen",119,78;
	sleep2 2;
	setpcblock PCBLOCK_IMMUNE|PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, true;
	dispbottom "DEBUG: TRUE";
	dispell_Function();
	addtimer 5000,strnpcinfo(0)+"::OnPass";
	end;
OnPass:
	dispbottom "DEBUG: FALSE";
	setpcblock PCBLOCK_IMMUNE|PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, false;
	end;
}

 

  • Love 1
  • 0
Posted

Thanks Drops, I appreciate your response. What i need is that a Sage can DISPELL a monk during the 5 seconds immunity because of the warp.

 

Thanks!

Siguro Games

  • 0
Posted (edited)
7 hours ago, sisgurogames said:

Thanks Drops, I appreciate your response. What i need is that a Sage can DISPELL a monk during the 5 seconds immunity because of the warp.

 

Thanks!

Siguro Games

You never mentioned that in your post.

1. Why would you need the MONK to be dispell in the first place? when "ENTERING THE PORTAL" they'll automatically  be dispelled. They can't even use any skills after the 5 second(s).

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L6201
Everything explains here.

setpcblock PCBLOCK_IMMUNE|PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, true;

2. ?

Edited by Royr
  • 0
Posted
Just now, sisgurogames said:

We do not want all players to be dispelled when entering the portal.

If you don't like your players to be dispelled simply remove the function .

dispell_Function();

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...