View Single Post
  #3  
Old 12-24-2001, 01:33 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
hmm, another thing wrong with that script, it would hurt the player the same if the pker was using a sword or an axe.

you'd have to do something along the lines of
NPC Code:

if (playerhearts<playerfullhearts||playerhurt) {
this.hptake=playerfullhearts-playerhearts;
this.hp=strtofloat(#s(client.hp));
this.hp-=this.hptake;
setstring client.hp,#v(this.hp);

if (strtofloat(#s(client.hp))<=0) {
<dying stuff here>
}
}


that should work, but a lot of the time its more efficient if you have things like that in a timeout loop.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote