Page 1 of 1

Player is reborn invincible CancelBuff(500667) not working

Posted: Sat Sep 01, 2012 11:02 am
by grande
I'm stumped, got lucky to find this nice /script executed ingame which shows buff IDs: /script i=1 while UnitBuff("player",i) ~= nil do nn,__,__,ii = UnitBuff("player",i) SendSystemChat(nn..", "..ii) i = i+1 end

But... for the "Player is reborn invincible" buff it shows 500667 and that seems to be the only buff I can't strip. Tried different variations in WP and profile. I can strip the "PK Protection" buffs all day with no problem but this 500667 thing is killing me.

Profile:

Code: Select all

	<onDeath><![CDATA[
	yrest(1000)
	RoMScript("BrithRevive();");
	yrest(1000)
	CancelBuff("Player is reborn invincible")
	CancelBuff("PK Protection")
	CancelBuff("PK Protection II")
	CancelBuff("PK Protection I")
	CancelBuff("PK Protection III")
	CancelBuff(500667)

		-- Additional Lua code to execute on death
		-- pauseOnDeath(); -- Stop the script
		-- player:logout();	-- logout
	]]></onDeath>
WP

Code: Select all

	<!-- #  1 --><waypoint x="3455" z="75667" y="5"> 	CancelBuff(500667);	</waypoint>
Also tried:

Code: Select all

	<!-- #  1 --><waypoint x="756" z="85678" y="5"> 	CancelBuff("Player is reborn invincible");	</waypoint>

Re: Player is reborn invincible CancelBuff(500667) not work

Posted: Sat Sep 01, 2012 11:18 am
by rock5
CancelBuff doesn't accept Ids.

If the buff can be removed then this should work.

Code: Select all

CancelBuff("Player is reborn invincible")
Can the buff be removed? If you rightclick the buff, does it remove it? Not all buffs can be removed.

Re: Player is reborn invincible CancelBuff(500667) not work

Posted: Sat Sep 01, 2012 11:25 am
by lisa
you could use the getidname function but yeah as rock said not all buffs can be cancelled

Re: Player is reborn invincible CancelBuff(500667) not work

Posted: Sat Sep 01, 2012 11:52 am
by grande
LOL it works in the WP which is where I want to have it anyway.

Code: Select all

	<!-- #  1 --><waypoint x="7856" z="6858" y="5">
		yrest(200);
		CancelBuff("Player is reborn invincible");
		yrest(200);
		CancelBuff("PK Protection")
		yrest(200);
		CancelBuff("PK Protection II")
		yrest(200);
		CancelBuff("PK Protection I")
		yrest(200);
		CancelBuff("PK Protection III")
		CancelBuff(500667)	
		yrest(200);
</waypoint>

Re: Player is reborn invincible CancelBuff(500667) not work

Posted: Sat Sep 01, 2012 11:54 am
by grande
Any idea how to get rid of the 10 second timer after death?

Found this but it's not doing anything:

Code: Select all

WAIT_TIME_AFTER_RES = 8000,	-- time to wait after resurrection, needs more on slow PCs