Openkore.com

OpenKore Forums
It is currently 18 Nov 2018, 07:06

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Won't use Items - unknown item #xxx
PostPosted: 12 Sep 2015, 09:28 
Offline
Noob
Noob

Joined: 12 Sep 2015, 09:19
Posts: 7
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 :<?


Top
 Profile  
 
 Post subject: Re: Won't use Items - unknown item #xxx
PostPosted: 12 Sep 2015, 10:25 
Offline
Human
Human
User avatar

Joined: 20 Jan 2010, 09:07
Posts: 33
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


Top
 Profile  
 
 Post subject: Re: Won't use Items - unknown item #xxx
PostPosted: 12 Sep 2015, 10:33 
Offline
Noob
Noob

Joined: 12 Sep 2015, 09:19
Posts: 7
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 :(


Top
 Profile  
 
 Post subject: Re: Won't use Items - unknown item #xxx
PostPosted: 15 Sep 2015, 15:41 
Offline
Noob
Noob

Joined: 15 Sep 2015, 15:27
Posts: 4
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:
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


Top
 Profile  
 
 Post subject: Re: Won't use Items - unknown item #xxx
PostPosted: 16 Sep 2015, 14:22 
Offline
Noob
Noob

Joined: 15 Sep 2015, 15:27
Posts: 4
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.


Top
 Profile  
 
 Post subject: Re: Won't use Items - unknown item #xxx
PostPosted: 16 Sep 2015, 17:56 
Offline
Noob
Noob

Joined: 15 Sep 2015, 15:27
Posts: 4
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group