Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Displaying Current AP (https://forums.graalonline.com/forums/showthread.php?t=19483)

LordMatt 12-23-2001 07:43 PM

Displaying Current AP
 
In a npc how would you make it so the current ap of your player shows in text in a npc while playing the level.

Slaktmaster 12-23-2001 07:47 PM

if (playerenters) {
for (i=0,i<playercount,i++) {
hitplayer i,40,players[i].x,players[i].y;
}
say2 You have squirrels in your pants;
}

LordMatt 12-23-2001 07:51 PM

Quote:

Originally posted by Slaktmaster
if (playerenters) {
for (i=0,i<playercount,i++) {
hitplayer i,40,players[i].x,players[i].y;
}
say2 You have squirrels in your pants;
}

er?

mikepg 12-24-2001 01:39 AM

ummm
 
Slak's script will probably work, or you could try

having something like

if (timeout) {
showimg 222,@ap: #v(playerap),playerx,playery-5;
timeout = .1;
}

that would put the ap somewhere above the players feet.


All times are GMT +2. The time now is 12:51 AM.

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