Yoko

All sides of Injection
It is currently 2025-10-27 11:31:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Count script...
PostPosted: 2007-09-04 06:16:41 
Offline

Joined: 2007-02-12 05:29:15
Posts: 28
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.


Top
   
 Post subject:
PostPosted: 2007-09-04 16:42:50 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub How_Many()
  uo.FindType('0x0E28','0x0000','backpack')
  if uo.FindCount() then
    uo.Print(STR(uo.FindCount()))
    wait(100)
  end if
end sub


Top
   
 Post subject:
PostPosted: 2007-09-04 20:54:39 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
sub HowMany()
   var type = "0x0E28"
   var colr = "0x0000"
   uo.print( str( uo.count( type, colr ) ) )
endsub

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-09-04 20:59:30 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Destruction wrote:
Code:
sub HowMany()
   var type = "0x0E28"
   var colr = "0x0000"
   uo.print( str( uo.count( type, colr ) ) )
endsub


the item cannot be stocked


Top
   
 Post subject:
PostPosted: 2007-09-05 03:47:27 
Offline

Joined: 2007-02-12 05:29:15
Posts: 28
i dont understand russian, so what should i use? the one with var??


Top
   
 Post subject:
PostPosted: 2007-09-05 09:34:52 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
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


Top
   
 Post subject:
PostPosted: 2007-09-05 19:54:47 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-09-05 20:02:58 
Offline

Joined: 2007-02-12 05:29:15
Posts: 28
sorry.. thank you anyway guys. :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited