Using items

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
User avatar
Ageis
Noob
Noob
Posts: 12
Joined: 04 May 2009, 16:11
Noob?: No

Using items

#1 Post by Ageis »

I have read the manual and looked for help on the forum and tried most things but i can't get my bot to use pots etc. My config looks like this:
What is wrong here? I know this is some basic shit but i can't figure it out so please help a fellow botter out. :)

Thanks! // Ageis

useSelf_item White Potion, Potato {
hp < 50 %
sp
homunculus_hp
homunculus_sp
homunculus_dead
onAction
whenStatusActive
whenStatusInactive
whenFollowing
spirit
aggressives 0
monsters
notMonsters
stopWhenHit 0
inLockOnly 1
notWhileSitting 1
notInTown 1
timeout 0
disabled 0
inInventory
manualAI 0
}

useSelf_item Awakening Potion {
hp
sp
homunculus_hp
homunculus_sp
homunculus_dead
onAction 1
whenStatusActive
whenStatusInactive Awakening Potion
whenFollowing
spirit
aggressives 0
monsters
notMonsters
stopWhenHit 0
inLockOnly 1
notWhileSitting 1
notInTown 1
timeout 1800
disabled 0
inInventory
manualAI 0

Scarya
Moderators
Moderators
Posts: 136
Joined: 26 May 2008, 12:25
Noob?: No

Re: Using items

#2 Post by Scarya »

Code: Select all

useSelf_item Novice Potion,Red Potion,Orange Potion,Yellow Potion,White Potion,Monster's Feed,Pet Food {
        hp < 40%
}

useSelf_item Awakening Potion {
        whenStatusInactive Awakening Potion
        inLockOnly 1
        notWhileSitting 1
}
Both is working.

EDIT: wrong section btw
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots.
So far, the universe is winning.

Richard Cook

Wiki

Locked