Is there any comand that shows if the character is casting or not a spell ?
Like uo.poisoned() shows if the character is poisoned or not...
I was needing it in this script, because with "wait" there is a chance to frizzle the spell because of the lag...
##### Waits until you lose mana #################
sub lostmana()
var current
current = UO.MANA
while UO.MANA >= current
if UO.InJournal("fizzle") then
return
endif
wait(100)
wend
end sub
Sub LIGHTNING()
If uo.getglobal('Lightning')=='On' then
uo.setglobal('Lightning',0)
uo.print(' !!! -= Lightning terminated =- !!! ')
uo.exec('terminate Lightning')
else
uo.setglobal('Lightning','On')
uo.print(' !!! -= Lightning: on =- !!! ')
VAR m
repeat
m=uo.mana
#var t=uo.timer()
#uo.textopen()
uo.cast('Lightning','last')
repeat
wait(5)
IF uo.mana==uo.int then
m=uo.int
end if
until uo.mana<m
#t=uo.timer()-t
#uo.textprint(t)
until uo.mana < 11
uo.setglobal('Lightning',0)
uo.print(' !!! -= Lightning: OFF =- !!! ')
end sub
##### Waits until you lose mana #################
sub lostmana()
var current
current = UO.MANA
while UO.MANA >= current
if UO.InJournal("fizzle") then
return
endif
wait(100)
wend
end sub
this script in stopped when someone cast a spell on you....
when i cast a spell anche someone disturbs my concentration, the script stops...
Last edited by Azt on 2007-11-17 18:52:49, edited 1 time in total.