Yoko

All sides of Injection
It is currently 2018-04-26 15:11:20

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2014-03-07 19:44:12 
Offline

Joined: 2014-03-01 21:06:25
Posts: 11
Hi I am looking for a script to use a potion of poison like (0x4567) to automaticly poisoning my weapon (0x4001a3456) with a hotkey to use in in pvp so plz if its possible


Thx


Top
   
PostPosted: 2014-03-07 20:08:31 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
May be
Code:
sub Poison()
uo.waittargetobject("0x4001a3456")
uo.usetype("your type poison bottle")
wait(your waittime for poisoning)
end sub

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-07 21:37:02 
Offline

Joined: 2014-03-01 21:06:25
Posts: 11
sub Poison()
uo.waittargetobject("0x4001a7d5")
uo.usetype("0x0f0a")
wait(500)
end sub



its that i click on my hotkey and nothing happens


Top
   
PostPosted: 2014-03-08 00:43:54 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Poisoning use bottles and target on weapon? If yes than script must work. Try put your weap in backpack from hands.

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-08 21:29:58 
Offline

Joined: 2014-03-01 21:06:25
Posts: 11
yes i have try to put in my back pack when i press on hotkey its ask me select item want to use this and after nothing happen :s


Top
   
PostPosted: 2014-03-08 21:52:59 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Code:
uo.waittargetobject("0x4001a7d5")

Then 0x4001a7d5 not weap ID, take with _info his real number.

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-09 12:38:48 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2150
Location: Latvia
there is a lot of poisoning scripts on the forum already. even in the drw 2009 thread

Code:
sub poisoning()
   var sword
   if uo.objatlayer('Rhand')<>'' then
      sword=uo.objatlayer('Rhand')
      uo.findtype('0x0F0E','0x0998','my')
      if uo.findcount() then
         uo.waittargetobject(uo.getserial(sword),'finditem')
         uo.useskill('Poisoning')
      endif
   else
      if uo.objatlayer('Lhand')<>'' then
         sword=uo.objatlayer('Lhand')
         uo.findtype('0x0F0E','0x0998','my')
         if uo.findcount() then
            uo.waittargetobject(uo.getserial(sword),'finditem')
            uo.useskill('Poisoning')
         endif
      endif   
   endif
endsub

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
PostPosted: 2015-09-22 15:57:31 
Offline

Joined: 2015-02-07 19:44:17
Posts: 10
Poison Potion Info;
ID=0x4073D943 Type=0x0F0A JOIHAND Name=Deadly Poison
Quantity: 23 Colour: 0x0000 Layer: 0 Has: 0
X=125 Y=89 Z=0 C=0x4007D8DD F=0x00

Spear Info;
ID=0x408FD95A Type=0x0F62 OCTHEND Name=+15 magical spear
Quantity: 1 Colour: 0x0000 Layer: 2 Has: 0
X=53 Y=95 Z=0 C=0x0007D8E1 F=0x00

This is my Hotkey Setup >>>
target lasttargetkey 0x403DEC50
useskill Poisoning
waittargetobject 0x40305F2C

But its not workin allways .I try to use your script but some reason cant do it .. can you please write down Poison pot and Spear info on your scrpit and send me or post here?

Thanks


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