Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-10-2005, 03:30 AM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
Hp Script

Can some one help me make this hp script be the only thing that shows when u log on and get hit.
NPC Code:
if (actionserverside){
this.player = testplayer(strtofloat(#p(0)),strtofloat(#p(1)));
setstring this.account,#a(#v(this.player));
this.return = 1;
}
//#CLIENTSIDE
if (created||timeout) {
this.test = testplayer(mousex,mousey);
timeout=0.5;
}
if (this.hp != -2 && this.hp != -1){
triggeraction 0,0,serverside,-hp,#v(mousex),#v(mousey);
showtext 1,playerx,playery-1,Arial,b,Hp: 12#s(this.account);
changeimgzoom 1,0.7;
}
if (this.return == 2){
message #s(this.account);
this.return = 0;
}

__________________
account was being used by jigga.... sorry for what he has said in the past
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.