any ideas how to improve it ?
Code:
sub CheckingPlayers()
VAR a, b
uo.ignorereset # added
uo.ignore('self') # deleted ", 'on'"
DIM Chars[2]
Chars[0] = '0x0190' #boba
Chars[1] = '0x0191' #ciuvas
while not uo.dead()
for a = 0 to 1
while val(uo.getglobal('find')) == 1 # can't understand for what is needed
wait(50)
wend
uo.set('finddistance', '20')
uo.findtype(Chars[a], '-1', 'ground') #replaced '1' to 'ground'
if uo.findcount('finditem')>0 then
uo.exec('exec recnamo')
return
else
wait(50) #replaced 500 to 50
endif
next
wend
end sub
Some times it dosent work.. and dont recall.. just stops..
and recnamo()
Code:
sub recnamo()
var timec
var myx = uo.getx('self')
var myy=uo.gety('self') #added
#run() #what is that?
repeat
uo.deletejournal()
uo.waittargetobject('0x4000465D')
uo.cast('Recall')
timec=uo.timer()+80
while not uo.injournal('fizzles') and not uo.injournal('reagents') and not timec<uo.timer() and (myx==uo.getx('self') and myy==uo.gety('self'))
wait(50)
wend
until myx<>uo.getx('self') and myy<>uo.gety('self') # I MADE A MISTAKE HERE! And now i fixed it - char recalls until both xpos and ypos changes
end sub