Won't use Items - unknown item #xxx

France

Moderator: Moderators

Message
Author
Elphiel
Noob
Noob
Posts: 7
Joined: 12 Sep 2015, 09:19
Noob?: No

Won't use Items - unknown item #xxx

#1 Post by Elphiel »

Hey
Since today I have a problem with the use of items. I tryed nearly everything and asked friends who are professional programmer if they could find an error.
I read the fitting topics and tryed out what was written but nothing worked for me...

I want my High Archer to use a red potion if her HP is under 70%

useSelf_item Red Potion {
hp < 70%
}

and I want to use a concentration Potion if the buff runs out
useSelf_item Concentration Potion {
whenStatusInactive Concentration Potion
}

It worked with my Hunter with white potions and auto use awakening and quiver...so I'm not silly. I cant understand why its not working anymore
(at first i just changed the names but I didnt work)


I put these two things at the end of the config.txt in the control folder. After the debbuging things.

I watched what the bot does If i used it manually
"Used Item Unknown Item #501 (for red potion for example)

Any help :<?

MiDaM
Human
Human
Posts: 35
Joined: 20 Jan 2010, 09:07
Noob?: Yes

Re: Won't use Items - unknown item #xxx

#2 Post by MiDaM »

try

useSelf_item Red Potion {
hp < 70 %
}


useSelf_item Concentration Potion {
whenStatusInactive EFST_ATTHASTE_POTION1
}

useSelf_item Awakening Potion {
whenStatusInactive EFST_ATTHASTE_POTION2
}

useSelf_item Berserk Potion {
whenStatusInactive EFST_ATTHASTE_POTION3
}

or check statusnametable.txt for Fro
Image

Elphiel
Noob
Noob
Posts: 7
Joined: 12 Sep 2015, 09:19
Noob?: No

Re: Won't use Items - unknown item #xxx

#3 Post by Elphiel »

Is it Ok to put everything at the end of the config?
I read another topic where they have problems with the new inventory thing after the shadow equip patch because of the unknown item?

what was wrong with my red potion command?


edit: tryed it...it didnt work :(

Pyrdacor
Noob
Noob
Posts: 4
Joined: 15 Sep 2015, 15:27
Noob?: Yes

Re: Won't use Items - unknown item #xxx

#4 Post by Pyrdacor »

Have the same problem. The use of items does not work. Moreover teleporting with fly wings doesn't work. I get a message that says that I have no teleport skill or fly wings but I have fly wings in my inventory.

For item use I tried:

Code: Select all

useSelf_item Orange Potion {
	hp < 30
	timeout 5
}
I also tried without "timeout", with "hp < 25%" and "hp < 25 %". Nothing works. The character just dies (the monster deals max 20 dmg).

For teleport I tested all valid values for teleportAuto_useSkill. Nothing worked. I have no teleport on the character but as mentioned more than enough fly wings. At the moment I use "teleportAuto_useSkill 0" without success.

It's very annoying as I die often because the character can't teleport nor use items.


Another note: I got the following unknown packet messages frequently. The first one is the most frequent message.

Packet Tokenizer: Unknown switch: 0990
Packet Tokenizer: Unknown switch: 0A27
Packet Tokenizer: Unknown switch: 0000
Packet Tokenizer: Unknown switch: 0991

Pyrdacor
Noob
Noob
Posts: 4
Joined: 15 Sep 2015, 15:27
Noob?: Yes

Re: Won't use Items - unknown item #xxx

#5 Post by Pyrdacor »

Also found out that auto storage does not work. It works as the character talks to kafra. She also opens the storage but no items are put to storage. I set "all 0 1 0" in "items_control.txt". I removed the rest for testing.

Seems that there is a problem with all kind of items with fRO.

Checked my "tables\fRO\items.txt" but it looks ok. I tested with a freshly downloaded "openkore_ready.zip" from yesterday. Downloaded at http://collectskin.com/openkore/.


Additional info: The console command "i" says "Inventory is empty." which is not the case.

Pyrdacor
Noob
Noob
Posts: 4
Joined: 15 Sep 2015, 15:27
Noob?: Yes

Re: Won't use Items - unknown item #xxx

#6 Post by Pyrdacor »

Made it work!

I studied how I can get packet length from the fRO Ragexe.exe. After hours of digging through hex values and ASM expressions and writing a few helper tools I was able to create an updated recvpackets.txt which contains a lot new packets and their correct packet length values.

Now items work again. I can use fly wings, potions, use auto storage, etc.


Unfortunately I can't attach the file here. Dunno why. I'll try to add it to SVN.

Post Reply