Heal status

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Predator
Posts: 5
Joined: 2004-07-04 03:42:02

Heal status

Post 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...
Yoko
Site Admin
Posts: 1964
Joined: 2004-04-03 16:49:38
Contact:

Post by Yoko »

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

Post 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.
Predator
Posts: 5
Joined: 2004-07-04 03:42:02

Post by Predator »

huh... anybody don't know?
BETEPAH
Expert!
Posts: 838
Joined: 2004-05-31 09:31:51
Contact:

Post 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
Все просто.
BETEPAH ™
Predator
Posts: 5
Joined: 2004-07-04 03:42:02

Post 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...
BETEPAH
Expert!
Posts: 838
Joined: 2004-05-31 09:31:51
Contact:

Post by BETEPAH »

Need to rewrite all script to make it.
Все просто.
BETEPAH ™
hunt3r
Posts: 18
Joined: 2004-04-16 19:24:29

Post 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
The_BoBi
Posts: 25
Joined: 2004-06-28 11:10:36
Contact:

Post by The_BoBi »

если можно переведите
И че не такое бывает
Sauza
Posts: 33
Joined: 2004-07-02 22:58:37

Post 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
Post Reply