Page 1 of 1

equipauto a teleport accessory

Posted: 09 Apr 2018, 10:44
by Goflow
i would like to make a block where the bot will autoequip a teleport accesory when hp is < 20 and when aggressives > 3. But then autoequip again the original accesory (Thieves' Guide Vol. 1 [1]) when attacking. This is my attempts:

Code: Select all

equipAuto {
	leftAccessory Cat Hand Glove [Creamy] [1]
	monsters
	notMonsters
	monstersCount
	weight 0
	whileSitting 0
	hp < 30
	sp < 30
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	aggressives > 3
}

equipAuto {
	leftAccessory Thieves' Guide Vol. 1 [1]
	rightAccessory Vesper Core 04 [1]
	monsters Cornus, Naga
	hp
	onAction 
	whenStatusActive
	whenStatusInactive
}
The purpose is for the bot to teleport when mobbed, when hp is below 30 and when teleportAuto_maxDmg 1500. Then equip the accesorry again (Thieves' Guide Vol. 1 [1]) when teleporting is not required to reach max dps. Please help.

Re: equipauto a teleport accessory

Posted: 09 Apr 2018, 11:42
by Goflow
so far, the problem is that the bot does not equip the teleport accessory at all.

Re: equipauto a teleport accessory

Posted: 09 Apr 2018, 16:40
by fadreus
Goflow wrote:

Code: Select all

hp < 30
You're missing %

Related link:
http://openkore.com/index.php/Hp