Yoko

All sides of Injection
It is currently 2026-01-16 23:15:20

All times are UTC+02:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Heal status
PostPosted: 2004-07-22 07:13:11 
Offline

Joined: 2004-07-04 03:42:02
Posts: 5
sub hp()
var i,n
i = uo.gethp()
n = uo.getmaxhp()
while i<n
uo.say(str(i)+'/'+str(n))
end sub

I don't know how check this "while" everytime when somebody hit me...


Top
   
 Post subject:
PostPosted: 2004-07-22 10:05:07 
Offline
Site Admin
User avatar

Joined: 2004-04-03 16:49:38
Posts: 1964
where is wend?


Top
   
 Post subject:
PostPosted: 2004-07-22 16:39:26 
Offline

Joined: 2004-07-04 03:42:02
Posts: 5
Yoko wrote:
where is wend?


sub hp()
var i,n
i = uo.gethp()
n = uo.getmaxhp()
while i<n
uo.say(str(i)+'/'+str(n))
wend
end sub


It will going to a lot of spam my heal status. I need check this script only once when somebody hit me.


Top
   
 Post subject:
PostPosted: 2004-07-24 03:43:39 
Offline

Joined: 2004-07-04 03:42:02
Posts: 5
huh... anybody don't know?


Top
   
 Post subject:
PostPosted: 2004-07-24 08:44:57 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
sub hp()
var i,n
i = uo.gethp()
n = uo.getmaxhp()
while i<n
uo.say(str(i)+'/'+str(n))
wait(3000)
wend
end sub

_________________
Все просто.
BETEPAH ™


Top
   
 Post subject:
PostPosted: 2004-07-24 11:59:39 
Offline

Joined: 2004-07-04 03:42:02
Posts: 5
BETEPAH wrote:
sub hp()
var i,n
i = uo.gethp()
n = uo.getmaxhp()
while i<n
uo.say(str(i)+'/'+str(n))
wait(3000)
wend
end sub



Check It!
I going to spam every 3 second, until I have full hp. I need only, when anybody hits me...


Top
   
 Post subject:
PostPosted: 2004-07-25 00:11:09 
Offline
Expert!
User avatar

Joined: 2004-05-31 09:31:51
Posts: 838
Need to rewrite all script to make it.

_________________
Все просто.

BETEPAH ™


Top
   
 Post subject:
PostPosted: 2004-07-27 20:44:06 
Offline

Joined: 2004-04-16 19:24:29
Posts: 18
Theres a kind of semantic error on ur script...
try to put the
Code:
i=uo.gethp()

inside the while statement, cause if i var arent updated... it always will be the start value of the i...
Code:
sub hp() 
  var i,n
  n = uo.getmaxhp()
  while i<n
    i = uo.gethp()
    uo.say(str(i)+'/'+str(n))
    wait(3000)
  wend
end sub


Top
   
 Post subject:
PostPosted: 2004-07-28 06:57:51 
Offline
User avatar

Joined: 2004-06-28 11:10:36
Posts: 25
если можно переведите

_________________
И че не такое бывает


Top
   
 Post subject:
PostPosted: 2004-07-28 08:14:00 
Offline

Joined: 2004-07-02 22:58:37
Posts: 33
Search in journal.

Code:
sub hp() 
if uo.injournal("hits you") then ;Here go the text that appears in your client , ex. "Zeus hits you"
     uo.deletejournal()
     var i,n
     n = uo.getmaxhp()
     while i<n
          i = uo.gethp()
          uo.say(str(i)+'/'+str(n))
     wend
endif
end sub


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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