Yoko

All sides of Injection
It is currently 2024-03-28 22:40:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: 2014-03-01 21:12:39 
Offline

Joined: 2014-03-01 21:06:25
Posts: 11
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


Top
   
PostPosted: 2014-03-01 21:19:16 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Code:
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

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-01 21:29:13 
Offline

Joined: 2011-06-11 19:54:23
Posts: 820
Or
Code:
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


Top
   
PostPosted: 2014-03-01 22:03:22 
Offline

Joined: 2014-03-01 21:06:25
Posts: 11
NIce the second work good thanks man but its nromal have a delay between each parts its not instantaly geared?


Top
   
PostPosted: 2014-03-01 22:44:01 
Offline

Joined: 2011-05-23 00:33:30
Posts: 949
Remove or change this line wait(100)

_________________
CodeSweeper


Top
   
PostPosted: 2014-03-03 09:24:33 
Offline

Joined: 2007-11-13 00:39:14
Posts: 125
why not ?

Code:
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


Top
   
PostPosted: 2014-03-04 14:45:35 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
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.

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


Top
   
PostPosted: 2014-03-07 17:52:53 
Offline

Joined: 2014-03-01 21:06:25
Posts: 11
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!!


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