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
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.
Telegram: @tatikom
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
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
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!
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.