Yoko

All sides of Injection
It is currently 2024-03-28 14:44:24

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: Poison- Target sight
PostPosted: 2014-12-03 00:59:21 
Offline

Joined: 2014-12-02 23:15:30
Posts: 1
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited