Search found 4 matches

by hobbit
2008-05-05 19:29:48
Forum: Help
Topic: Delayed targeting
Replies: 3
Views: 1449

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 immediately ...
by hobbit
2008-04-20 09:45:22
Forum: Help
Topic: Delayed targeting
Replies: 3
Views: 1449

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?
by hobbit
2005-04-10 10:07:09
Forum: Help
Topic: problem with writeln()
Replies: 0
Views: 864

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

this script writes coordinates to file but:
its always rewrites first line of file - how to add new line and write ...
by hobbit
2004-05-09 19:30:42
Forum: Requests
Topic: any way to find monster/summon according his name?
Replies: 1
Views: 3063

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 summon named ...