White use help

International

Moderator: Moderators

Toushirou1989
Noob
Noob
Posts: 1
Joined: 10 Jul 2011, 17:41
Noob?: No

White use help

#1 Post by Toushirou1989 »

i am having issuse with my bot using white pots.
i dont know what to do here i have read the manual but that is not much help it very confusing there.

Code: Select all

useSelf_item White Potion {
	hp <= 45%
	sp
	homunculus_hp
	homunculus_sp
	homunculus_dead
	onAction
	whenStatusActive
	whenStatusInactive
	whenFollowing
	spirit
	aggressives
	monsters
	notMonsters
	stopWhenHit 0
	inLockOnly 1
	notWhileSitting 0
	notInTown 0
	timeout 0
	disabled 0
	inInventory
	manualAI 0
}
Ircmage
Human
Human
Posts: 30
Joined: 28 Mar 2011, 21:37
Noob?: Yes

Re: White use help

#2 Post by Ircmage »

try use this. hope its working for you

Code: Select all

useSelf_item White Potion {
   hp < 45%
   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
}
silentblue1987
Human
Human
Posts: 46
Joined: 07 Apr 2010, 12:11
Noob?: Yes

Re: White use help

#3 Post by silentblue1987 »

Unfortunately neither block will work due to incorrect spelling.
item spelling can be found in: /tables/iRO/Items.txt

Code: Select all

useSelf_item White_Potion {
   hp <= 45%
   timeout .3
   inInventory White_Potion > 0
}
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: White use help

#4 Post by EternalHarvest »

silentblue1987 wrote:Unfortunately neither block will work due to incorrect spelling.
item spelling can be found in: /tables/iRO/Items.txt
useSelf_item White_Potion {
And this one won't work due to impossibility of having underscores in item names.
silentblue1987
Human
Human
Posts: 46
Joined: 07 Apr 2010, 12:11
Noob?: Yes

Re: White use help

#5 Post by silentblue1987 »

You are correct. Haven't had to use items in a while.
This is a working Block, modify as needed.

Code: Select all

useSelf_item Orange Potion {
	hp <= 100%
	timeout .3
	inInventory Orange Potion > 0
}
Still wondering how the block was malfunctioning in the first post.. It's almost identical, then again if you change the config without restarting openkore it never takes effect.

@EternalHarvest:
Can you explain why items cannot have underscores?
This is one of the few times where a table file is inconsistent with block configuration.
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: White use help

#6 Post by EternalHarvest »

silentblue1987 wrote:Can you explain why items cannot have underscores?
This is one of the few times where a table file is inconsistent with block configuration.
items.txt uses original client's data format, where underscore is a replacement for whitespace. Configuration is consistent there.
silentblue1987
Human
Human
Posts: 46
Joined: 07 Apr 2010, 12:11
Noob?: Yes

Re: White use help

#7 Post by silentblue1987 »

Ah, thank you for explaining.

This isn't directly mentioned in theUseSelf Item from the manual, which might add extra complications.