ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: manwinc on December 17, 2009, 07:58:25 PM

Title: Event property = Nothing Glitch
Post 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
}
Title: Re: Event property = Nothing Glitch
Post by: gen2000 on December 17, 2009, 08:04:35 PM
I thought #property = $ when there wasn't a property..
Title: Re: Event property = Nothing Glitch
Post by: manwinc on December 17, 2009, 09:01:33 PM
Does it? I always just figured it = Nothing since there isn't another line for it to get the property for?
Title: Re: Event property = Nothing Glitch
Post by: manwinc on December 17, 2009, 09:28:18 PM
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!
Title: Re: Event property = Nothing Glitch
Post by: OMGBurgers on December 18, 2009, 01:23:11 PM
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.

Code: [Select]
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
Title: Re: Event property = Nothing Glitch
Post by: Masscre on December 18, 2009, 06:26:38 PM
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.
Title: Re: Event property = Nothing Glitch
Post by: manwinc on December 18, 2009, 07:27:50 PM
You would think that You would have to do Event property again and again before easyuo would realize the Property changed.....