Page 1 of 1

Need script switch armor and weapon with maccro injection

Posted: 2014-03-01 21:12:39
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

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-01 21:19:16
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

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-01 21:29:13
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

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-01 22:03:22
by ShakeDatAss
NIce the second work good thanks man but its nromal have a delay between each parts its not instantaly geared?

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-01 22:44:01
by Incorrect User
Remove or change this line wait(100)

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-03 09:24:33
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

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-04 14:45:35
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.

Re: Need script switch armor and weapon with maccro injectio

Posted: 2014-03-07 17:52:53
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!!