Yoko
http://forum.yoko.com.ua/

Count script...
http://forum.yoko.com.ua/viewtopic.php?f=17&t=12409
Page 1 of 1

Author:  titolivioms [ 2007-09-04 06:16:41 ]
Post subject:  Count script...

Hi all, i need a script that counts how many objects from a TYPE i have in the backpack and them say...

the item cannot be stocked

this is the item info

ID=0x4006DCD0 Type=0x0E28 ISYQKMD Name=Lesser Explosion
Quantity: 1 Colour: 0x0000 Layer: 0 Has: 1
X=44 Y=122 Z=0 C=0x400B2770 F=0x00

so, is it possible to make a script that counts how many lessers i have in the backpack then say it to me? thank you.

Author:  Scripts Writer [ 2007-09-04 16:42:50 ]
Post subject: 

Code:
sub How_Many()
  uo.FindType('0x0E28','0x0000','backpack')
  if uo.FindCount() then
    uo.Print(STR(uo.FindCount()))
    wait(100)
  end if
end sub

Author:  Destruction [ 2007-09-04 20:54:39 ]
Post subject: 

Code:
sub HowMany()
   var type = "0x0E28"
   var colr = "0x0000"
   uo.print( str( uo.count( type, colr ) ) )
endsub

Author:  Scripts Writer [ 2007-09-04 20:59:30 ]
Post subject: 

Destruction wrote:
Code:
sub HowMany()
   var type = "0x0E28"
   var colr = "0x0000"
   uo.print( str( uo.count( type, colr ) ) )
endsub


the item cannot be stocked

Author:  titolivioms [ 2007-09-05 03:47:27 ]
Post subject: 

i dont understand russian, so what should i use? the one with var??

Author:  Scripts Writer [ 2007-09-05 09:34:52 ]
Post subject: 

titolivioms wrote:
i dont understand russian, so what should i use? the one with var??


Where did you see russian omg? We write you 2 scripts-copy them into you file and start

Author:  Destruction [ 2007-09-05 19:54:47 ]
Post subject: 

Scripts Writer wrote:
Destruction wrote:
Code:
sub HowMany()
   var type = "0x0E28"
   var colr = "0x0000"
   uo.print( str( uo.count( type, colr ) ) )
endsub


the item cannot be stocked

Read the manual.

My script works correctly.

Author:  titolivioms [ 2007-09-05 20:02:58 ]
Post subject: 

sorry.. thank you anyway guys. :)

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/