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

FindType - Python

тут можно задать вопрос по скриптингу
Post Reply
Sephy
Posts: 3
Joined: 17.07.2011 3:10

FindType - Python

Post by Sephy »

I'm trying to use FindType - Python script - thing is I'm getting an error...

Code: Select all

obj = FindType($0E21, Backpack())
if Count(obj) > 0:
UOSay('found')
else:
UOSay('not found')
The error is:
obj = FindType($0E21, Backpack())
^
SyntaxError: invalid syntax

PS: if I enter an int number (200 for example) the script runs but it doesnt Find the right item, I dont know how to find the int number related to the item type displayed in World tab.

So the question is, how can I find the int value of an item type, for example bandage ($0E21)?
Thanks
Scripts Writer
Novice
Novice
Posts: 130
Joined: 06.05.2008 18:03

Re: FindType - Python

Post by Scripts Writer »

There is an example script with Python for carpentry.
http://stealth.od.ua/forum/viewtopic.php?f=3&t=1799
I think, u have to change from $0E21 to 0x0E21 to find item with Python.
Проще научить человека ловить рыбу, чем постоянно ею его кормить. (с) Destruction
Sephy
Posts: 3
Joined: 17.07.2011 3:10

Re: FindType - Python

Post by Sephy »

Now it works, thanks.
Post Reply