Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Problem Using UseObject function

Ask for help
Post Reply
Ray
Neophyte
Neophyte
Posts: 28
Joined: 04.05.2012 7:13

Problem Using UseObject function

Post by Ray »

I have a problem when i use the function UseObject()

Code: Select all

Program Testing;
begin
AddToSystemJournal(IntToStr(backpack));
end.         

Code: Select all

13:28:09:672 [Gold]: Compiling
13:28:09:687 [Gold]: Compiled succesfully
13:28:09:703 [Gold]: 1099020666
13:28:09:703 [Gold]: Succesfully executed
13:28:09:718 [Gold]: Script test.sc stopped successfuly
It seems working well..

Code: Select all

Program Testing;
begin
AddToSystemJournal(IntToStr(backpack));
UseObject(backpack)
end.         

Code: Select all

13:26:32:057 [Gold]: Compiling
13:26:32:089 [Gold]: Compiled succesfully
13:26:32:089 [Gold]: 1099020666
There is no stopped log from the system journal and it will not open the backpack

Could anyone tell me what the problem is? Also, I found the same problem when i use FindType() function..I can the UseSkill() and other API but just have problem on the item object...

I can use object in the "World" Tab by the "Use Object" button
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: Problem Using UseObject function

Post by CFA »

Which shard? what client and stealth versions?
Ray
Neophyte
Neophyte
Posts: 28
Joined: 04.05.2012 7:13

Re: Problem Using UseObject function

Post by Ray »

OSI Shard
Stealth version 4.0.3
Client Version 7.0.24.5
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: Problem Using UseObject function

Post by CFA »

So strange. Function UseObject and button "Use object" work identical. And there is nothing to hang, it simply sends the packet. Previous versions of stealth work?
Ray
Neophyte
Neophyte
Posts: 28
Joined: 04.05.2012 7:13

Re: Problem Using UseObject function

Post by Ray »

the problem is the same in version 3.9.6.. :cry:
it will not running when use any function related to items..
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: Problem Using UseObject function

Post by CFA »

Ray wrote:the problem is the same in version 3.9.6.. :cry:
it will not running when use any function related to items..
if you give me account for tests, i can look this problem.
Ray
Neophyte
Neophyte
Posts: 28
Joined: 04.05.2012 7:13

Re: Problem Using UseObject function

Post by Ray »

When I check the packet log, i found that when i click the "Use Object" button.
It will send out the packet
17:48:35:431: Gold, Client -> Server: 0x06, len: 5
0000: 06 41 81 B9 7A

But it will not have packet log when i play the script..
Post Reply