Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showing Stats (https://forums.graalonline.com/forums/showthread.php?t=892)

Mustang1988 04-03-2001 07:07 AM

How do you make it so when players say 'showshieldpower' or 'showswordpower' it shows them? Or even with that 'showshield' (gif) or 'showsword'? pick one =p

Tyhm 04-03-2001 07:28 AM

NPC Code:
if(playerchats){
if(strequals(showshieldpwr)) setplayerprop #c,#v(playershieldpower);
else if(strequals(showswordpwr)) setplayerprop #c,#v(playerswordpower);
else if(strequals(showshield)) setplayerprop #c,#2(0);
else if(strequals(showsword)) setplayerprop #c,#1(0);
}



Mustang1988 04-03-2001 08:26 AM

o! lol! thx!
+ is there a way to change a players ap? Online playerap=##; doesnt work. It changes, then switches back, you can only change it with RC or wait.

And is there an easier way to heal a player without changing it for a second...?
NPC Code:

if (playertouchsme) {
playerap+=50;
playerhearts+=3;
playerap-=50;
}


Tyhm 04-03-2001 09:27 AM

Dun think so.

grim_squeaker_x 04-03-2001 06:42 PM

Well you already posted an effective way of healing people with a PK tag yourself. Although you might be able to create a temporary place with higher AP for PKers with the following script (Not tested and ertainly not sure if it works):
NPC Code:
if (playerenters||timeout) {
for (this.i=0;this.i<playerscount;this.i++) {
if (players[this.i].ap<=40) {
players[this.i].ap=41;
}
}
timeout=0.05;
}


But as I said I have no idea if it will work online.


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

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