Need script switch armor and weapon with maccro injection

General Injection issues

Moderators: Murderator+, Murderator

Post Reply
ShakeDatAss
Posts: 11
Joined: 2014-03-01 21:06:25

Need script switch armor and weapon with maccro injection

Post by ShakeDatAss »

Hi All, First sorry for my english i will try you guys understand it!!

I need a script for switch my armor and my weapon. in past i used thi script

sub fire()
UO.Exec("useobject fire_arms")
UO.Exec("useobject fire_plate")
UO.Exec("useobject fire_legs")
UO.Exec("useobject fire_gorget")
UO.Exec("useobject fire_helm")
UO.Exec("useobject fire_gloves")
end sub


Its dont work anymore because i cant use (,addobject fire_arms_ ect ) so im looking for a script look like that but where i put the code of my armor parts like 0x400018sa for each parts and samething for my weapon shield and bow ..

sub fire
UO.Exec(0x400432345)
UO.Exec(0x400018645)
UO.Exec(0x400444325)
UO.Exec(0x400017547)
end sub

Something like that can work???

I hope someone can help me
Thnaks alot


DatAss
Incorrect User
Posts: 949
Joined: 2011-05-23 00:33:30

Re: Need script switch armor and weapon with maccro injectio

Post by Incorrect User »

Code: Select all

sub Arm()
   var i
   dim Arm[6]
   Arm[1] = "Type of fire_arms"
   Arm[2] = "Type of fire_plate"
   Arm[3] = "Type of fire_leg"
   Arm[4] = "Type of fire_gorget"
   Arm[5] = "Type of fire_helm"
   Arm[6] = "Type of fire_gloves"
   for i = 1 to 6
      uo.usetype(Arm[i], "color")
      wait(100)
   next
end sub
Juicy Fruit
Posts: 820
Joined: 2011-06-11 19:54:23

Re: Need script switch armor and weapon with maccro injectio

Post by Juicy Fruit »

Or

Code: Select all

sub Arm()
   var i
   dim Arm[6]
   Arm[0] = "ID of fire_arms"
   Arm[1] = "ID of fire_plate"
   Arm[2] = "ID of fire_leg"
   Arm[3] = "ID of fire_gorget"
   Arm[4] = "ID of fire_helm"
   Arm[5] = "ID of fire_gloves"

   for i=0 to 5
      uo.useobject(Arm[i])
      wait(100)
   next
end sub
ShakeDatAss
Posts: 11
Joined: 2014-03-01 21:06:25

Re: Need script switch armor and weapon with maccro injectio

Post by ShakeDatAss »

NIce the second work good thanks man but its nromal have a delay between each parts its not instantaly geared?
Incorrect User
Posts: 949
Joined: 2011-05-23 00:33:30

Re: Need script switch armor and weapon with maccro injectio

Post by Incorrect User »

Remove or change this line wait(100)
Mazer
Posts: 125
Joined: 2007-11-13 00:39:14

Re: Need script switch armor and weapon with maccro injectio

Post by Mazer »

why not ?

Code: Select all

sub Arm()
uo.useobject('ID OF ITEM 1')
uo.useobject('ID OF ITEM 2')
uo.useobject('ID OF ITEM 3')
uo.useobject('ID OF ITEM 4')
uo.useobject('ID OF ITEM 5')
uo.useobject('ID OF ITEM 6')
end sub
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Re: Need script switch armor and weapon with maccro injectio

Post by Nmy »

If you use it without a delay you might loose a part, because it's too fast. Also depends on the server. Might be some anti-lag and using items should have 0.2 seconds delay or the server drops information and the client equips nothing. Or if the server has no delays it might work.
ShakeDatAss
Posts: 11
Joined: 2014-03-01 21:06:25

Re: Need script switch armor and weapon with maccro injectio

Post by ShakeDatAss »

I just have remove the delay and it wrok very good i think the client have no delay for this action so i can equip all parts!!
Thanks to all for replys to my topic!! Russian force!!
Post Reply