Page 1 of 1
IM need help...
Posted: 2007-05-20 18:09:20
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!!!
Posted: 2007-05-20 20:39:30
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.
Posted: 2007-05-20 22:25:52
by Destruction
var shield='0x0000' #type of shield
uo.objatlayer('Lhand')==uo.getserial(shield)
It's incorrect.
Posted: 2007-05-21 14:33:43
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