Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-11-2006, 04:03 AM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
player logout - odd bug

This is at the end of the control-npc in my gs2 enabled server.

PHP Code:
function onPlayerLogout(pl) {
if (
pl.account != NULL) {
  echo(
"Player " pl.account ":" pl.nick @" logged out"); //This works
 
setstring(serverr.radio_station1e,serverr.radio_station1d);
 
setstring(serverr.radio_station1d,serverr.radio_station1c); 
 
setstring(serverr.radio_station1c,serverr.radio_station1b); 
 
setstring(serverr.radio_station1b,serverr.radio_station1a);
 
setstring(serverr.radio_station1a,pl.nick@" : "@pl.account@" logged out of  Argos"); //this never gets set
 
}

It never logs the logout info into the server string serverr.radio_station1a. Why not?
It sends the echo to the rc correctly.

Also what is the command like SPC for a carriage return or line feed, to have a new line in something like a sendpm message?
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:42 PM.


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