Yoko

All sides of Injection
It is currently 2025-10-16 03:34:49

All times are UTC+02:00




Post new topic  Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Findobject!
PostPosted: 2009-11-07 14:21:33 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
First of all, is it possible to find items by serial?
Code:
sub objsearch()
uo.findtype('SafeZone',-1,'backpack')
if UO.GetQuantity('finditem') then
uo.print("You can recall to safe zone!")
else
uo.exec('addobject SafeZone')
while uo.targeting()
wait(100)
wend
uo.saveconfig()
end if
end sub


I hope u can understand!


Top
   
 Post subject:
PostPosted: 2009-11-07 15:41:39 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
if uo.GetQuantity(serial) > 0 then
  #do something
endif


Top
   
 Post subject:
PostPosted: 2009-11-07 16:12:30 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
and if its a horse?
If not objatlayer(Horse) and (CANT FIND Horse ID) then
end if


Top
   
 Post subject:
PostPosted: 2009-11-10 17:40:59 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
is it possible?
UP


Top
   
 Post subject:
PostPosted: 2009-11-10 19:58:09 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
If not uo.objatlayer("Horse") and uo.getQuantity("Horse ID") == 0 then
endif
Is the problem?

_________________
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: 2009-11-23 16:12:27 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
Code:
sub main()
var id1=0x01267EC9
UO.Set('finddistance', '15')
UO.FindType('0x0191', -1,'ground')
if uo.findcount() then
uo.print('Found by Type')
if uo.getserial('finditem') ==id1 or uo.getquantity(id1)>0 then
uo.print('Found by serial')
end if
end if
end sub


This scp doesn't print found by serial! Why?


Top
   
 Post subject:
PostPosted: 2009-11-23 16:14:36 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
var id1='0x01267EC9'
Horse is mobile object, try on TWI checkbox to find by type.
Try uo.print(STR(UO.GetSerial('finditem')))


Top
   
 Post subject:
PostPosted: 2009-11-24 15:16:03 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
Could u tell me what is TWI? U can use russian, I uderstand russian, but not perfect! :(

Oh I uderstood, TWI is Track World Items! :)

It prints out value 0! Should be 1?


Top
   
 Post subject:
PostPosted: 2009-11-24 16:58:16 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
mb:
Code:
sub main()
var id1='0x01267EC9'
UO.Set('finddistance', '15')
 UO.FindType('0x0191', -1,'ground')
   if uo.findcount() then
      uo.print('Found by Type')
      if uo.getserial('finditem') == id1 then
         uo.print('Found by serial')
       else
         uo.print('Looozzz!!')
     end if
   end if
end sub

try this

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject:
PostPosted: 2009-11-24 17:38:28 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
Worked, but what there is different? :D


Top
   
 Post subject:
PostPosted: 2009-11-24 21:59:19 
Offline
User avatar

Joined: 2009-05-28 09:58:28
Posts: 2802
Location: Иваново
var id1='0x01267EC9' <--
Эээ как бы сказать по не нашенски... УЧИ ЯЗЫК екарный бабай! :lol:

_________________
Image
YokoInjection CodeSweeper
Ошибка "Unhandled exception in parser"
Стрелялка для олдов.


Top
   
 Post subject:
PostPosted: 2009-11-27 15:52:05 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
Forgot to put ''! Omg, Cant believe!


Top
   
 Post subject:
PostPosted: 2009-12-05 13:48:06 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
UP

Code:
sub main() 
var id1='Horse'
UO.Set('finddistance', '5')
 UO.FindType('0x00CC', -1,'ground')
   if uo.findcount() then
      uo.print('Found by Type')
      if uo.getserial('finditem') == id1 then
         uo.print('Found by serial')
       else
      uo.exec('addobject Horse')
      while uo.targeting()
        wait(100)
      wend
      uo.saveconfig()
     end if
   end if
end sub


'Horse' Is an object. Added with exec('addobject ')

I want to know the way, how can I use in scp objects/Types which is already in injection!


Top
   
 Post subject:
PostPosted: 2009-12-05 17:40:31 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
What you mean under: "how can I use in scp objects/Types which is already in injection"?


Top
   
 Post subject:
PostPosted: 2009-12-05 18:01:54 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
I thought that some wouldn't understand.
In Injection there is sections Objects, Object Types. You don't need to declare variables, var Horse in this situation. And u may use exec('addobject XXXX') to Create a new "Variable For Object" or just update old ones.


Top
   
 Post subject:
PostPosted: 2009-12-05 18:13:10 
Offline
Expert!
User avatar

Joined: 2004-04-04 11:13:54
Posts: 1205
Location: Балаково, Саратовская обл.
Code:
if uo.getserial('finditem') == 'Horse' then

U need it?


Top
   
 Post subject:
PostPosted: 2009-12-05 19:06:01 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
Yes I need that place! :)


Top
   
 Post subject:
PostPosted: 2009-12-06 14:26:36 
Offline

Joined: 2009-02-09 17:12:23
Posts: 38
Found out how! :D No need to reply anyone.


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


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:  
Powered by phpBB® Forum Software © phpBB Limited