[Help] Bot can't use consumable items

Private server support - Only post connectivity issues in the subforum!

Moderator: Moderators

thenewbie
Noob
Noob
Posts: 14
Joined: 06 Jul 2012, 11:22
Noob?: Yes

[Help] Bot can't use consumable items

#1 Post by thenewbie »

my bot can't use any consumable items (Yggdrasilberry,White potion, flywing, etc.) how can i fix it?
User avatar
SkylorD
Moderators
Moderators
Posts: 1202
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil

Re: [Help] Bot can't use consumable items

#2 Post by SkylorD »

Learn rules
thenewbie
Noob
Noob
Posts: 14
Joined: 06 Jul 2012, 11:22
Noob?: Yes

Re: [Help] Bot can't use consumable items

#3 Post by thenewbie »

Here is my config

Code: Select all

useSelf_item Yggdrasilberry {
	hp < 50
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0

useSelf_item Fly wing {
	hp 
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives 3
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 0
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0
good1
Human
Human
Posts: 24
Joined: 18 Jul 2012, 11:48
Noob?: No

Re: [Help] Bot can't use consumable items

#4 Post by good1 »

Code: Select all

useSelf_item Yggdrasilberry {
   hp < [color=#FF4000]50%[/color]  <<< This should fix it
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   aggressives
   monsters
   notMonsters
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout 0
   disabled 0
   inInventory
   manualAI 0

Code: Select all

useSelf_item Fly wing {
   hp 
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   aggressives [color=#FF4000]> 3[/color]
   monsters
   notMonsters
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout 0
   disabled 0
   inInventory
   manualAI 0
or you could also change

Code: Select all

teleportAuto_minAggressives 3