Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   NPC Server Problem (https://forums.graalonline.com/forums/showthread.php?t=15008)

DoragonKoden_RC6 10-20-2001 06:13 AM

NPC Server Problem
 
for some reason when using:
Quote:

setplayerprop #C1, #C1;
on the npc server, it does either of two things:[list=1][*]Does not work (keeps the previous #C1 setting)[*]Sets a different color than the value of #C1[/list=1]

Can anyone confirm this for me?

this is my script:
Quote:

if (playertouchsme) {
with (getplayer(#a)) {
setcharprop #1, #1;
setcharprop #2, #2;
setcharprop #3, #3;
setcharprop #8, #8;
setcharprop #C0, #C0;
setcharprop #C1, #C1;
setcharprop #C2, #C2;
setcharprop #C3, #C3;
setcharprop #C4, #C4;
setcharprop #P1, #P1;
setcharprop #n, #n (NPC);
ap = playerap;
}
}
everything works, just not #C1

[edit]
i would do this clientside, but when using clientside, it only shows up for the player who touched the npc.

BocoC 10-20-2001 06:44 AM

NPC Code:

if (playertouchsme) {
setcharprop #1, #1;
setcharprop #2, #2;
setcharprop #3, #3;
setcharprop #8, #8;
setcharprop #C0, #C0;
setcharprop #C1, #C1;
setcharprop #C2, #C2;
setcharprop #C3, #C3;
setcharprop #C4, #C4;
setcharprop #P1, #P1;
setcharprop #n, #n (NPC);
ap = playerap;
}


Just do that. See if that works.

DoragonKoden_RC6 10-20-2001 06:48 AM

i did, does the same thing.

BocoC 10-20-2001 06:49 AM

Hmm.... Oh well. I hate #Cn on npcserver. It is always buggy. For some reason, it only seems to work clientsided. Try your script clientside. I don't think setcharprop #C1 is serverside.

DoragonKoden_RC6 10-20-2001 06:51 AM

i have, the problem is that it does not update for all players.


All times are GMT +2. The time now is 09:16 AM.

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