Yoko

All sides of Injection
It is currently 2025-11-13 05:18:24

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: IM need help...
PostPosted: 2007-05-20 18:09:20 
Offline

Joined: 2007-05-20 17:53:29
Posts: 1
Im need help,
how i can make my scrpit...
exp: i need scrpit of arm and desarm my wepon but need fast( sword and shield to bow and bow to sword and shield)
somebody can help me??
I am inexperienced in the Yoko Injection




THX FOR HELP ME!!!


Top
   
 Post subject:
PostPosted: 2007-05-20 20:39:30 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
Code:
sub switch()
var shield='0x0000' #type of shield
var sword='0x0000' #type of sword
var bow='0x0000' #type of bow
if uo.objatlayer('Lhand')==uo.getserial(shield) then
  uo.usetype(bow)
else
  uo.usetype(sword)
  wait(100)
  uo.usetype(shield)
end if
end sub


You must set type of shield, sword and bow before start this script.You must change '0x0000' on type of weapon. You can find this type, using command ,info in game.

P.S. Sorry for my english.


Top
   
 Post subject:
PostPosted: 2007-05-20 22:25:52 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Quote:
var shield='0x0000' #type of shield
uo.objatlayer('Lhand')==uo.getserial(shield)

It's incorrect.

_________________
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.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2007-05-21 14:33:43 
Offline

Joined: 2005-01-06 11:49:28
Posts: 205
i dont know where are errors was in those script, but new script is working

Code:
sub switch() 
var shield='0x1BC4' #type of shield
var sword='0x3FF8' #type of sword
var bow='0x13B1' #type of bow
if uo.getgraphic(uo.objatlayer('Lhand'))==shield then
  uo.usetype(bow)
else
  uo.usetype(sword)
  wait(100)
  uo.usetype(shield)
end if
end sub


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited