Hello, i am brazillian player and i was making this script to cast automatically poison as soon the other player get in my target sight. But there is one problem... the script keeps running even if the target get poisoned or if i am disturbed . I wondering if you guys can help me to make the script cast poison and if the player get poisoned the script stop runnning... Sorry for my english
sub poison() repeat uo.cast('Poison','laststatus') CastWait() wait(600) until not uo.injournal('Target fora da linha de visao') repeat wait(100) end sub
Sub CastWait() var LastMana=UO.Mana UO.DeleteJournal() REPEAT If LastMana > UO.Mana or UO.InJournal("Target fora da linha de visao") Then return Else If LastMana < UO.Mana Then LastMana = UO.Mana End If End If Wait(250) Until UO.Dead() end sub
|