Jump to content
  • 0

How to enable dispel when entering warp


sisgurogames

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/19/20
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/19/20
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/19/20
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

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();
Link to comment
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.   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.

×
×
  • Create New...