Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-01-2008, 06:48 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Global Message System

This is a newer, complete remake, of the Global Message/Event System (please don't post in that thread anymore, in fact, if a moderator feels like it - go ahead and delete it).

Simply put, it's an easy-to-install system that allowed you to send messages on RC too other servers that use the system. The more servers that start using it, the better. None of the "former" versions of the old system works anymore.



Current version: 1
------------------------
Functions:
* Ability to send global messages to all servers that use this system.
* Ability to send private messages to all servers that use this system.
* Ability to turn on/off the display of the messages.
* Ability to check the current players/playercount on all servers that use this system.
------------------------
Commands:
/npcglobalmsg "text in quotes"
/npcsendmsg servername "text in quotes"
/npcplayers servername

Step-by-step Installation Guide

1) Create a new database NPC, and name it "GlobalSys", then copy and paste this code.

PHP Code:
function onCreated() doConnect();
function 
onInitialized() doConnect();
function 
onServerListerConnect() doConnect();

function 
doConnect()
{
  
enum {
    
//-- EDIT THESE --\\
    
SERVER "SERVER NAME HERE",
    
ACCESS "account1,account2,account3,etc",
    
ENABLEMESSAGES true,

    
//-- DO NOT EDIT --\\
    
VERSION 1,
    
CHANNEL "#GlobalSys",
    
COMMANDS "globalmsg,sendmsg,players",
    
CHECKCOMMANDS "!globalmessagerequest,!servermessagerequest,!players"
  
};
  
sendtext("irc""logout""");
  
sendtext("irc""login"name);
  
sendtext("irc""join"CHANNEL);
  
sendtext("irc""privmsg", {CHANNEL, { "!register"SERVERVERSIONENABLEMESSAGES }});
}

function 
onReceiveText(texttypetextoptionstextlines)
{
  if (
texttype == "irc") {
    switch (
textoptions) {
      case 
"privmsg":
        switch (
textlines[2][0]) {
          case 
"!globalmsg":
            if (
textlines[2][1] != SERVER && ENABLEMESSAGES == true) echo(textlines[2][2]);
          break;
            
          case 
"!servermsg":
            if (
textlines[2][1] != SERVER && textlines[2][2] == SERVER && ENABLEMESSAGES == true) echo(textlines[2][3]);
          break;
          
          case 
"!getplayers":
            if (
textlines[2][1] == SERVER) {
              for (
iallplayers) {
                if (
i.level != NULLtemp.players.add(i.account);
                else 
temp.players.add(i.account SPC "(RC)");
              }
              
sendtext("irc""privmsg", {CHANNEL, {"!updateplayers"temp.players}});
            }
          break;
        }
      break;
      
      case 
"notice":
        if (
textlines[2][1] == SERVER) echo(textlines[2][2]);
      break;
    }
  }
}

public function 
hasAccess(acc) return player.account in ACCESS.tokenize();

public function 
doCommand(commandparam)
{
  if (
command in COMMANDS.tokenize()) (@command)(param[0], param[1]);
}

function 
globalmsg(text)
{
  if (
text != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize()[0], player.accounttext}});
}

function 
sendmsg(svrtext)
{
  if (
text != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize()[1], player.accounttextsvr}});
}

function 
players(svr)
{
  if (
svr != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize()[2], svr}});

Edit the options SERVER, ACCESS and ENABLEMESSAGES to suit your needs. Please, do not alter the other options - doing so might result in a permanent ban from the system.

2) Add the following code inside an onRCChat() function in your Control-NPC.

PHP Code:
  // -- Events Bot Commands -- \\
  
temp.args params;
  
temp.args.delete(0);

  if ((
"GlobalSys").hasAccess(player.account)) ("GlobalSys").doCommand(params[0], temp.args); 

Of course, offensive chat or too much spam, will result in a timed ban from the system. If you violate it too much, you might even get a permanent ban.

Suggestions, feedback, comments - everything is appreciated. And please, use the forums built-in reputation system. If you think this is a horrible idea, give me bad rep, at least then I know its not liked.


Credits too napo who is hosting the HUB on AEON!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 03-01-2008, 07:02 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Added on Ziro's nagging <3
Reply With Quote
  #3  
Old 03-01-2008, 07:44 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Thanks Twinny.

I'd also like to point out that you're helping this to grow by having the NPC on your server, you don't have to have global messages enabled. I plan on making a statistics website connected to the system sometime, and have servers transmit tons of data too it.

So please, upload it on your server. Dont like the spam? Just set ENABLEMESSAGES to false.

Thanks in advance!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 03-01-2008, 07:46 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Instead of using quotes, I would loop through your tokens -- really quite simple.
__________________
Reply With Quote
  #5  
Old 03-01-2008, 08:32 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Done.
__________________
Do it with a DON!
Reply With Quote
  #6  
Old 03-01-2008, 12:22 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by cbkbud View Post
Instead of using quotes, I would loop through your tokens -- really quite simple.
Will not work with commands that needs two tokens or more, like:

/npcsendmsg servername "text in quotes"

So I wont do it, just for simplicity. If you're lazy enough to not use quotes, don't bother sending messages.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #7  
Old 03-01-2008, 03:14 PM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
Nice Ziro I won't use it though..
__________________
Reply With Quote
  #8  
Old 03-01-2008, 04:38 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
Will not work with commands that needs two tokens or more, like:

/npcsendmsg servername "text in quotes"

So I wont do it, just for simplicity. If you're lazy enough to not use quotes, don't bother sending messages.
It's all about convenience and polishing your scripts.

It certainly will work with commands with two or more tokens.
__________________
Reply With Quote
  #9  
Old 03-01-2008, 06:27 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Added on Codein's Dev Circle
Developers Circle
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #10  
Old 03-01-2008, 06:56 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Well, the only thing that I would like to point out, is the use of tokenize without a paremeter, because atm you don't use a parameter, and tokenize without a parameter will tokenize spaces and commas, so if an account with a space in it is listed in the ACCESS enum, the account with a space in it won't function properly,..

PHP Code:
function onCreated() {
  
temp.test "Chompy,Te st,foo";
  
  echo(
test.tokenize());
  echo(
test.tokenize(","));

Output:

PHP Code:
Chompy,Te,st,foo   // size() = 4
Chompy,"Te st",foo // size() = 3 
So it should be ACCESS.tokenize(","); instead of ACCESS.tokenize(); in the hasAccess(acc) function
__________________

Last edited by Chompy; 03-01-2008 at 07:09 PM..
Reply With Quote
  #11  
Old 03-01-2008, 08:18 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Chompy View Post
Well, the only thing that I would like to point out, is the use of tokenize without a paremeter, because atm you don't use a parameter, and tokenize without a parameter will tokenize spaces and commas, so if an account with a space in it is listed in the ACCESS enum, the account with a space in it won't function properly,..

PHP Code:
function onCreated() {
  
temp.test "Chompy,Te st,foo";
  
  echo(
test.tokenize());
  echo(
test.tokenize(","));

Output:

PHP Code:
Chompy,Te,st,foo   // size() = 4
Chompy,"Te st",foo // size() = 3 
So it should be ACCESS.tokenize(","); instead of ACCESS.tokenize(); in the hasAccess(acc) function
Give me a break, I spent all night converting a 2 year old code.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 03-01-2008, 08:40 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by xXziroXx View Post
Give me a break, I spent all night converting a 2 year old code.
I forgot to add smilies to my post as I usually do

anyways, <3
__________________
Reply With Quote
  #13  
Old 03-03-2008, 09:09 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Current servers that's connected:


AEON
Dev Kozmule99
Dev Nocturax
Dev zokemon
Developers Circle
Litheria
Symphonia
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 03-04-2008, 09:10 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Minor update, only one new command added, but meh..



Current version: 1.1
------------------------
Functions:
* Ability to send global messages to all servers that use this system.
* Ability to send private messages to all servers that use this system.
* Ability to turn on/off the display of the messages.
* Ability to check the current players/playercount on all servers that use this system.
* Ability to check servers that uses this system. Displays servers playercount, and if they have global messages disabled or not.
------------------------
Commands:
/npcglobalmsg "text in quotes"
/npcsendmsg servername "text in quotes"
/npcplayers servername
-- New -- /npcservers

Step-by-step Installation Guide

1) If upgrading from an old version, replace your old code with this (might want to NOT replace the editable options). Otherwise, create a new database NPC, and name it "GlobalSys", then copy and paste this code.

PHP Code:
function onCreated() doConnect();
function 
onInitialized() doConnect();
function 
onServerListerConnect() doConnect();

function 
doConnect()
{
  
enum {
    
//-- EDIT THESE --\\
    
SERVER "SERVER NAME HERE",
    
ACCESS "account1,account2,account3,etc",
    
ENABLEMESSAGES true,

    
//-- DO NOT EDIT --\\
    
VERSION 1.1,
    
CHANNEL "#GlobalSys",
    
COMMANDS "globalmsg,sendmsg,players,servers",
    
CHECKCOMMANDS "!globalmessagerequest,!servermessagerequest,!players,!checkservers"
  
};
  
sendtext("irc""logout""");
  
sendtext("irc""login"name);
  
sendtext("irc""join"CHANNEL);
  
sendtext("irc""privmsg", {CHANNEL, { "!register"SERVERVERSIONENABLEMESSAGES }});
}

function 
onReceiveText(texttypetextoptionstextlines)
{
  if (
texttype == "irc") {
    switch (
textoptions) {
      case 
"privmsg":
        switch (
textlines[2][0]) {
          case 
"!globalmsg":
            if (
textlines[2][1] != SERVER && ENABLEMESSAGES == true) echo(textlines[2][2]);
          break;
            
          case 
"!servermsg":
            if (
textlines[2][1] != SERVER && textlines[2][2] == SERVER && ENABLEMESSAGES == true) echo(textlines[2][3]);
          break;
          
          case 
"!getplayers":
            if (
textlines[2][1] == SERVER) {
              for (
iallplayers) {
                if (
i.level != NULLtemp.players.add(i.account);
                else 
temp.players.add(i.account SPC "(RC)");
              }
              
sendtext("irc""privmsg", {CHANNEL, {"!updateplayers"temp.players}});
            }
          break;
        }
      break;
      
      case 
"notice":
        if (
textlines[2][1] == SERVER) echo(textlines[2][2]);
      break;
    }
  }
}

public function 
hasAccess(acc) return player.account in ACCESS.tokenize(",");

public function 
doCommand(commandparam)
{
  if (
command in COMMANDS.tokenize(",")) (@command)(param[0], param[1]);
}

function 
globalmsg(text)
{
  if (
text != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[0], player.accounttext}});
}

function 
sendmsg(svrtext)
{
  if (
text != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[1], player.accounttextsvr}});
}

function 
players(svr)
{
  if (
svr != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[2], svr}});
}

function 
servers()
{
  
sendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[3]}});

Edit the options SERVER, ACCESS and ENABLEMESSAGES to suit your needs. Please, do not alter the other options - doing so might result in a permanent ban from the system.

2) If you're doing a fresh install, add the following code inside an onRCChat() function in your Control-NPC.

PHP Code:
  // -- Events Bot Commands -- \\
  
temp.args params;
  
temp.args.delete(0);

  if ((
"GlobalSys").hasAccess(player.account)) ("GlobalSys").doCommand(params[0], temp.args); 
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #15  
Old 03-04-2008, 10:40 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Step-by-step Guide for customizing commands

1) In your GlobalSys database NPC, change for example the globalmsg command from:

PHP Code:
function globalmsg(text
Too:
PHP Code:
function msg(text
Also change the name of the command in the COMMANDS string, despite it being listed under "DO NOT CHANGE" (it won't be in the next version, heck, I'll even make sure no functions are called unless the name of the function is in that string!).
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #16  
Old 03-06-2008, 03:09 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Just added more commands and a check ensuring no commands that doesn't exist are called, nothing major. But still. Updated the HUB a little too, though.



Current version: 1.2
------------------------
Functions:
* Ability to send global messages to all servers that use this system.
* Ability to send private messages to all servers that use this system.
* Ability to turn on/off the display of the messages.
* Ability to check the current players/playercount on all servers that use this system.
* Ability to check servers that uses this system. Displays servers playercount, and if they have global messages disabled or not.
* Ability to find a player on any of the servers that use this system.
------------------------
Commands:
/npcglobalmsg "text in quotes"
/npcsendmsg servername "text in quotes"
/npcplayers servername
/npcservers
-- New -- /npcfindplayer playeraccount
-- New -- /npcgetlatesturl

Step-by-step Installation Guide

1) If upgrading from an old version, replace your old code with this (might want to NOT replace the editable options). Otherwise, create a new database NPC, and name it "GlobalSys", then copy and paste this code.

PHP Code:
function onCreated() doConnect();
function 
onInitialized() doConnect();
function 
onServerListerConnect() doConnect();

function 
doConnect()
{
  
enum {
    
//-- EDIT THESE --\\
    
SERVER "SERVER NAME HERE",
    
ACCESS "account1,account2,account3,etc",
    
ENABLEMESSAGES true,

    
//-- CUSTOMIZEABLE --\\
    
COMMANDS "globalmsg,sendmsg,players,servers,findplayer,getlatesturl",

    
//-- DO NOT EDIT --\\
    
VERSION 1.2,
    
CHANNEL "#GlobalSys",
    
CHECKCOMMANDS "!globalmessagerequest,!servermessagerequest,!players,!checkservers,!findplayer,!getlatesturl"
  
};
  
sendtext("irc""logout""");
  
sendtext("irc""login"name);
  
sendtext("irc""join"CHANNEL);
  
sendtext("irc""privmsg", {CHANNEL, { "!register"SERVERVERSIONENABLEMESSAGES }});
}

function 
onReceiveText(texttypetextoptionstextlines)
{
  if (
texttype == "irc") {
    switch (
textoptions) {
      case 
"privmsg":
        switch (
textlines[2][0]) {
          case 
"!globalmsg":
            if (
textlines[2][1] != SERVER && ENABLEMESSAGES == true) echo(textlines[2][2]);
          break;
            
          case 
"!servermsg":
            if (
textlines[2][1] != SERVER && textlines[2][2] == SERVER && ENABLEMESSAGES == true) echo(textlines[2][3]);
          break;
          
          case 
"!getplayers":
            if (
textlines[2][1] == SERVER) {
              for (
iallplayers) {
                if (
i.level != NULLtemp.players.add(i.account);
                else 
temp.players.add(i.account SPC "(RC)");
              }
              
sendtext("irc""privmsg", {CHANNEL, {"!updateplayers"temp.players}});
            }
          break;
        }
      break;
      
      case 
"notice":
        if (
textlines[2][1] == SERVER) echo(textlines[2][2]);
      break;
    }
  }
}

public function 
hasAccess(acc) return player.account in ACCESS.tokenize(",");
public function 
validCommand(command) return command in COMMANDS.tokenize(",");

public function 
doCommand(commandparam)
{
  if (
command in COMMANDS.tokenize(",")) (@command)(param[0], param[1]);
}

function 
globalmsg(text)
{
  if (
text != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[0], player.accounttext}});
}

function 
sendmsg(svrtext)
{
  if (
text != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[1], player.accounttextsvr}});
}

function 
players(svr)
{
  if (
svr != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[2], svr}});
}

function 
servers()
{
  
sendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[3]}});
}

function 
findplayer(pl)
{
  if (
pl != NULLsendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[4], pl}});
}

function 
getlatesturl()
{
  
sendtext("irc""privmsg", {CHANNEL, {CHECKCOMMANDS.tokenize(",")[5]}});

Edit the options SERVER, ACCESS and ENABLEMESSAGES to suit your needs. Please, do not alter the other options - doing so might result in a permanent ban from the system.

2) If you're doing a fresh install, add the following code inside an onRCChat() function in your Control-NPC. Otherwise replace your old with this.

PHP Code:
  // -- Events Bot Commands -- \\
  
temp.args params;
  
temp.args.delete(0);

  if ((
"GlobalSys").hasAccess(player.account) && ("GlobalSys").validCommand(params[0])) ("GlobalSys").doCommand(params[0], temp.args); 
__________________
Follow my work on social media post-Graal:Updated august 2025.

Last edited by xXziroXx; 03-06-2008 at 04:31 AM..
Reply With Quote
  #17  
Old 03-06-2008, 04:22 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Script: Function globalmsg not found at line 71 in script of GlobalSys (in level onlinestartlocal.graal at pos (30.5, 30))
I get that error on the new version when I use /npcglobalmsg
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #18  
Old 03-06-2008, 04:30 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Switch View Post
I get that error on the new version when I use /npcglobalmsg
Oops, that's what I get for pasting my own customized command in an update. Just change the function name msg to globalmsg.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #19  
Old 03-06-2008, 05:24 AM
Rapidwolve24 Rapidwolve24 is offline
North*
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
Rapidwolve24 is on a distinguished road
Send a message via AIM to Rapidwolve24 Send a message via MSN to Rapidwolve24
Damn Ziro, you're still working on this?
Reply With Quote
  #20  
Old 03-06-2008, 05:43 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Rapidwolve24 View Post
Damn Ziro, you're still working on this?
More like remade it from scratch.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #21  
Old 03-07-2008, 06:32 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I really wish these updates weren't mandatory. Can't you just add a flag that says if the update is required or not?
__________________
Do it with a DON!
Reply With Quote
  #22  
Old 03-07-2008, 08:20 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by zokemon View Post
I really wish these updates weren't mandatory. Can't you just add a flag that says if the update is required or not?
Problem is, if a server isn't using the latest version, the other servers won't be able to get data from a server with the latest version (if a new command have been added).

However, there won't be so many frequent updates. The last two were basically things I forgot in the initial release.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #23  
Old 03-07-2008, 08:25 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
Problem is, if a server isn't using the latest version, the other servers won't be able to get data from a server with the latest version (if a new command have been added).

However, there won't be so many frequent updates. The last two were basically things I forgot in the initial release.
When they try to use a certian function, just be like "ERROR: Server blah does not have the current version and does not support ..."
__________________
Reply With Quote
  #24  
Old 03-08-2008, 06:14 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by cbkbud View Post
When they try to use a certian function, just be like "ERROR: Server blah does not have the current version and does not support ..."
I'd rather just release new versions less frequently.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #25  
Old 03-08-2008, 06:16 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
I'd rather just release new versions less frequently.
Or you could do that ...
__________________
Reply With Quote
  #26  
Old 03-19-2008, 01:05 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
I'm just curious, because of about 10 minutes ago loads of UC and hosted servers were down/their npcserver was down/laggy

So, I said '/stats' in the rc window, waits 10 secs and it comes up, no npcserver is listed, then 20 secs later the npcserver pops up and the cpu list:

and at number 1:

1. 83.89092337 % GlobalSys (in level symp_onlinestartlocal.nw at pos (30.5, 30))


so.. what's up? :o
__________________
Reply With Quote
  #27  
Old 03-19-2008, 01:24 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Chompy View Post
I'm just curious, because of about 10 minutes ago loads of UC and hosted servers were down/their npcserver was down/laggy

So, I said '/stats' in the rc window, waits 10 secs and it comes up, no npcserver is listed, then 20 secs later the npcserver pops up and the cpu list:

and at number 1:

1. 83.89092337 o/o GlobalSys (in level symp_onlinestartlocal.nw at pos (30.5, 30))


so.. what's up? :o
KuJi all over again ...

Settle it the American way, sue 'em!
__________________
Reply With Quote
  #28  
Old 04-12-2008, 06:24 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
I can't get this work at all. it won't respond with anything and everything apparently is being triggered properly from what I can tell.
__________________
Deep into the Darkness peering...
Reply With Quote
  #29  
Old 04-12-2008, 04:06 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
HUB is currently disabled due to massive abuse. A more secure version is being worked on.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #30  
Old 04-12-2008, 05:57 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
ok thanks
__________________
Deep into the Darkness peering...
Reply With Quote
Reply

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 07:28 AM.


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