How to: PAUSE until Debuffs are gone so you don't die

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
aardkaz
Posts: 14
Joined: Thu Dec 10, 2009 1:33 am

How to: PAUSE until Debuffs are gone so you don't die

#1 Post by aardkaz » Sun Dec 27, 2009 2:08 pm

I kept dieing, and I could not figure out why, the mobs were not even that difficult, it was because they occassionally would cast weakness and other nasty debuffs, and the bot would continue to kill things and I would die when I had the debuff... here is what I did so that I dont go into combat until there are no debuffs, this goes into your profile file.

Code: Select all

	<onLeaveCombat>
		local debuff = RoMScript("GetPlayerBuffLeftTime(GetPlayerBuff(1,'HARMFUL'))");
		if(debuff == nil) then
			debuff = 0;
		end
		while debuff ~= 0 do
			printf("Debuff:%s\n", debuff);
			yrest(1000);
			debuff = 0;
			debuff = RoMScript("GetPlayerBuffLeftTime(GetPlayerBuff(1,'HARMFUL'))");
			if(debuff == nil) then
				debuff = 0;
			end
		end
		printf("No Debuff, lets resume\n");
	</onLeaveCombat>

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest