Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-11-2006, 04:43 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
I have used setstring for at least five years, and in the wiki, my code example above is how setstring should be formatted - as far as i can tell.

Perhaps I should go a step back to algorithm-speak, and if you don't want me using setstring, then you can tell me another way/method to do it in gs2.

NPC Code:

if (a player logs out)
{
if (the value of the player account is not null)
{
tell the rc that the player that just logged out, has in fact logged out
bump the values of the server message that each player will see on screen so that the logins and logouts are sent to everyone
with the last string, set the string to be read by the player's npcin a timeout loop to be updated with the account and nickname of the player that just logged out.
}
}



so i ask again, why does the information get sent to the rc but not set into the string?

Also, NL is not working in sendpm as it should:

sendpm("test"@ NL @"123"); //causes an error: unexpected token: )
sendpm("test NL 123"); //shows the text NL in the string
sendpm("test "@"NL"@" 123"); //shows the text NL in the string

and i am out ot ideas of how else to use NL. help?

Last edited by Prozac; 02-11-2006 at 06:05 AM..
Reply With Quote
 


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 11:20 AM.


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