sub CheckingPlayers() VAR a, b uo.ignore('self', '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 wait(50) wend uo.set('finddistance', '20') uo.findtype(Chars[a], '-1', '1') if uo.findcount() > 0 then uo.exec('exec recnamo') return else wait(500) endif next wend end sub
Some times it dosent work.. and dont recall.. just stops.. and recnamo()
sub recnamo() var a VAR d = uo.getx('self') run() uo.deletejournal() repeat uo.deletejournal() uo.waittargetobject('0x4000465D') uo.cast('Recall') a = 0 repeat wait(100) a = a + 1 until a > 36 or d <> uo.getx('self') or uo.injournal('fizzles') until not uo.injournal('fizzles') end sub
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()
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
try that and tell me results
Last edited by CuHTpoH on 2007-12-18 20:08:55, edited 1 time in total.
look at my comment about my mistake at the end of the recnamo() script
and about characters find - that is not an error of injection, as i heard UOServer does not send information about another client appeared nearby until its moved..
sub tt() var timec var myx = uo.getx('self') var myy=uo.gety('self') #added repeat uo.deletejournal() uo.waittargetobject('0x4000465D') uo.cast('Recall') timec=uo.timer()+80 uo.deletejournal() 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') or uo.injournal('reagents') end sub