ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: manwinc on December 17, 2009, 07:58:25 PM
-
I think I read someone asking about this at one point, where Event property Doesn't return Anything because the client hasn't sent the information over. Actually there is A Really EASY way to check this
set %Nothing ; literally set it to nothing :)
event property #Findid
if #Property = %Nothing
{
uhh..... Loop or something
}
-
I thought #property = $ when there wasn't a property..
-
Does it? I always just figured it = Nothing since there isn't another line for it to get the property for?
-
Ah, Yes it does = $ Just saw it in my script.
I just couldn't See it in my menu since $ in a menu equals a new Line. BOoyah!
-
Sometimes it'll do $, sometimes it'll do Leather Gorget$ but not show the remaining mods. It's a major PITA. I usually make my script use a sub to handle event property. Do a STR COUNT on $, if it's less than 2, redo it. I'm pretty sure all items in the game have more than one line in the property window except a select few. Have the sub support the ability to take the minimum amount of lines to look for if needed so it'll be in the %1 or %2 value depending on how you set it up.
Gosub GetProperty #FindID 3
Sub GetProperty
;%1 = ID of item
;%2 = Minimum number of lines in item property
str count %1 $
while #strres < %2
{
wait 1
str count %1 $
}
return
-
Thank you for this little bit of info OMGBurger. This is something i had been playing with some time ago and glad to see a solution to this.
-
You would think that You would have to do Event property again and again before easyuo would realize the Property changed.....