ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: jcw on August 22, 2014, 08:57:28 PM

Title: backpack item count
Post by: jcw on August 22, 2014, 08:57:28 PM
I was trying to make my script pause when my bag fills up. What I came up with is

Code: [Select]
set #strres 0
while #strres < 3
{
   event property #BACKPACKID
   str count #property $
}
   if 125/125 in #property
   {
      pause
   }

Tried looking to see if there was a easier way of doing this but this is all I can seem to come up with. Was just wondering if there is another way of doing it with out using event property?
Title: Re: backpack item count
Post by: dxrom on August 23, 2014, 02:09:57 AM
Two ways to potentially do this.
#1: Count every single item in your backpack.
#2: Pull the string value of your backpack cliloc (Items part) when moused over. ie: Backpack, Weight: 230 Stones, Contents: 101/125 Items, 227/550 Stones
Title: Re: backpack item count
Post by: jcw on August 23, 2014, 09:03:42 AM
That is what I was guessing. I was just hoping because it was the backpack would have been a shorter/better way of pulling the info.