Thanks a lot, I know syntax, but here is server-side timer between using item and selecting target. So, if target is selected faster than 3000ms after using item, action isn`t succesful.
=>
uo.waittarget*(<something>)
uo.usetype(<something>)
is not succesful, because target is selected ...
Search found 4 matches
- 2008-04-20 09:45:22
- Forum: Help
- Topic: Delayed targeting
- Replies: 3
- Views: 1292
Delayed targeting
Good morning,
i`m looking how to create this:
uo.usetype('xxxx')
wait(3000)
?select target?
i need to use item, then wait 3000ms an then select target (there is timer between using item and selecting target)
any idea?
i`m looking how to create this:
uo.usetype('xxxx')
wait(3000)
?select target?
i need to use item, then wait 3000ms an then select target (there is timer between using item and selecting target)
any idea?
- 2005-04-10 10:07:09
- Forum: Help
- Topic: problem with writeln()
- Replies: 0
- Views: 775
problem with writeln()
sub coord()
var MX=uo.getx()
var MY=uo.gety()
var MZ=uo.getz()
var ft = file("c:\progra~1\uoam\mapy.txt")
ft.open()
ft.writeln(str(MX)+","+str(MY)+","+str(MZ))
ft.close()
end sub ...
var MX=uo.getx()
var MY=uo.gety()
var MZ=uo.getz()
var ft = file("c:\progra~1\uoam\mapy.txt")
ft.open()
ft.writeln(str(MX)+","+str(MY)+","+str(MZ))
ft.close()
end sub ...
- 2004-05-09 19:30:42
- Forum: Requests
- Topic: any way to find monster/summon according his name?
- Replies: 1
- Views: 2863
any way to find monster/summon according his name?
something like:
------ CUT -----
if uo.findsummon(name, 'ground') # this command (i think) doesn`t exist
uo.say(name' kill')
uo.waittargetlast
else
uo.print('summon 'name' doesnt exist')
endif
------ CUT --------
where 'name' is predefined variable, etc. "A"
used for this:
if exist ...
------ CUT -----
if uo.findsummon(name, 'ground') # this command (i think) doesn`t exist
uo.say(name' kill')
uo.waittargetlast
else
uo.print('summon 'name' doesnt exist')
endif
------ CUT --------
where 'name' is predefined variable, etc. "A"
used for this:
if exist ...