Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-20-2001, 06:13 AM
DoragonKoden_RC6 DoragonKoden_RC6 is offline
Registered User
Join Date: Oct 2001
Posts: 221
DoragonKoden_RC6 is on a distinguished road
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.
  #2  
Old 10-20-2001, 06:44 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #3  
Old 10-20-2001, 06:48 AM
DoragonKoden_RC6 DoragonKoden_RC6 is offline
Registered User
Join Date: Oct 2001
Posts: 221
DoragonKoden_RC6 is on a distinguished road
i did, does the same thing.
  #4  
Old 10-20-2001, 06:49 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
  #5  
Old 10-20-2001, 06:51 AM
DoragonKoden_RC6 DoragonKoden_RC6 is offline
Registered User
Join Date: Oct 2001
Posts: 221
DoragonKoden_RC6 is on a distinguished road
i have, the problem is that it does not update for all players.
 


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 12:38 PM.


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