Page 1 of 1

Heal status

Posted: 2004-07-22 07:13:11
by Predator
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...

Posted: 2004-07-22 10:05:07
by Yoko
where is wend?

Posted: 2004-07-22 16:39:26
by Predator
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.

Posted: 2004-07-24 03:43:39
by Predator
huh... anybody don't know?

Posted: 2004-07-24 08:44:57
by BETEPAH
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

Posted: 2004-07-24 11:59:39
by Predator
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...

Posted: 2004-07-25 00:11:09
by BETEPAH
Need to rewrite all script to make it.

Posted: 2004-07-27 20:44:06
by hunt3r
Theres a kind of semantic error on ur script...
try to put the

Code: Select all

i=uo.gethp()

inside the while statement, cause if i var arent updated... it always will be the start value of the i...

Code: Select all

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

Posted: 2004-07-28 06:57:51
by The_BoBi
если можно переведите

Posted: 2004-07-28 08:14:00
by Sauza
Search in journal.

Code: Select all

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