Problem Using UseObject function
Posted: 04.05.2012 8:25
I have a problem when i use the function UseObject()
It seems working well..
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
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
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
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