I am making a script so you can go to a server and use / commands like /help /rpgversion and /credits
It does not seem to work, here is the code:
function serverCmdHelp(%client)
{
messageClient(%client,'',"\c6Type any of the following commands to get more info:");
messageClient(%client,'',"\c6 - /helpmoney - About money.");
messageClient(%client,'',"\c6 - /helptasks - About earning money.");
messageClient(%client,'',"\c6 - /helpworld - About the world.");
messageClient(%client,'',"\c6 - /helpnpcs - About the AI.");
messageClient(%client,'',"\c6 - /helpshop - About the shops.");
}
function serverCmdHelpMoney(%client)
{
messageClient(%client,'',"\c6Money is displayed at the bottom right and is used to buy items, weapons and to travel, for information on how to make money, see /helptasks.");
}
function serverCmdHelpTasks(%client)
{
messageClient(%client,'',"\c6Tasks are things you can do to make money such as Scavenging (finding broken parts and selling them), killing enemies, quests, mining or by just finding it on the ground.");
}
function serverCmdHelpWorld(%client)
{
messageClient(%client,'',"\c6Most of the world around you is interactive, almost everything you click on will have something to read or a sound, plus it might help you somtimes");
}
function serverCmdHelpNPCs(%client)
{
messageClient(%client,'',"\c6The NPC's (bots) will say something to you if you talk to them, some are hostile and will attack you if you get near them, while others will be friendly and only want to talk."\c6");
messageClient(%client,'',"\c6Some might have a quest for you, or a story to tell.");
messageClient(%client,'',"\c6 (After killing a hostile AI, they will drop their items and you will receive some money.)");
}
function serverCmdHelpShop(%client)
{
messageClient(%client,'',"\c6When at a shop there will be 4 things, melee weapons, ranged weapons, items, and tools. To see what each one does or how much they cost, click the ?");
messageClient(%client,'',"\c6To buy the weapon or item, click the green button, if you don't have enough money you wont be able to buy it.");
messageClient(%client,'',"\c6Some shops will allow you to sell scrap parts, and ore for money.");
}
function serverCmdCredits(%client)
{
messageClient(%client,'',"\c6Credits:");
messageClient(%client,'',"\c6 - Deadzone");
messageClient(%client,'',"\c6 - Lizard");
messageClient(%client,'',"\c6 - FireFish");
}
function serverCmdRPGVersion(%client)
{
messageClient(%client,'',"\c6RPG Version: v1");
}