IM need help...

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
xxRaZieLxx
Posts: 1
Joined: 2007-05-20 17:53:29

IM need help...

Post by xxRaZieLxx »

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!!!
Rivory
Posts: 205
Joined: 2005-01-06 11:49:28

Post by Rivory »

Code: Select all

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.
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

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.
Telegram: @tatikom
Rivory
Posts: 205
Joined: 2005-01-06 11:49:28

Post by Rivory »

i dont know where are errors was in those script, but new script is working

Code: Select all

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
Post Reply