Scripting "only english plz"
Posted: 2006-02-01 20:03:42
I wanna create a function that when i make it runs, the script look for every players that are at last 7 tiles of distance from me!
Affe looking for it, it will cast ma in every one of them!
I tried this
sub ma_mais_perto()
uo.set('finddistance','7')
uo.findtype(0x0191,-1,'ground')
;if Uo.FindCount() > 0 then
; for i=0 to Uo.FindCount()
; if 'finditem' == Uo.GetSerial('self') then
; uo.ignore('finditem')
; end if
; uo.cast('Magic Arrow','finditem')
; uo.ignore('finditem')
; wait (650)
;next
;end if
uo.findtype(0x0190,-1,'ground')
if Uo.FindCount() > 0 then
uo.findtype(0x0190,-1,'ground')
for i=0 to Uo.FindCount()
if 'finditem' == Uo.GetSerial('self') then
uo.ignore('finditem')
end if
uo.cast('Magic Arrow','finditem')
uo.ignore('finditem')
wait (650)
next
end if
end sub
But iґm learning to script yet, and i got some problems with FOR, some one can help me ?
Affe looking for it, it will cast ma in every one of them!
I tried this
sub ma_mais_perto()
uo.set('finddistance','7')
uo.findtype(0x0191,-1,'ground')
;if Uo.FindCount() > 0 then
; for i=0 to Uo.FindCount()
; if 'finditem' == Uo.GetSerial('self') then
; uo.ignore('finditem')
; end if
; uo.cast('Magic Arrow','finditem')
; uo.ignore('finditem')
; wait (650)
;next
;end if
uo.findtype(0x0190,-1,'ground')
if Uo.FindCount() > 0 then
uo.findtype(0x0190,-1,'ground')
for i=0 to Uo.FindCount()
if 'finditem' == Uo.GetSerial('self') then
uo.ignore('finditem')
end if
uo.cast('Magic Arrow','finditem')
uo.ignore('finditem')
wait (650)
next
end if
end sub
But iґm learning to script yet, and i got some problems with FOR, some one can help me ?