Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/cmdtable.h File Reference

#include "nxwcommn.h"
#include "target.h"

Go to the source code of this file.

Defines

#define P_MANAGEDSTEP   void (*)(NXWCLIENT)
#define MANAGEDSTEP(name)   void (*name)(NXWCLIENT)
#define TARGETFUNC(name, min, errmsg, msg)
#define CMD_HANDLER(name)   extern void name ( NXWCLIENT ps )
#define command_time   telltime

Enumerations

enum  CmdType {
  CMD_TARGET = 1, CMD_FUNC, CMD_TARGETN, CMD_TARGETNNN,
  CMD_TARGETS, CMD_MANAGEDCMD = 32
}
 Type of command. More...

enum  { TARG_NONE, TARG_LAST, TARG_SELF }
 Last targeting and self targeting access test there bits. More...


Functions

void command_setGmMoveEff (NXWCLIENT ps)
void command_bounty (NXWCLIENT ps)
void command_post (NXWCLIENT ps)
void command_gpost (NXWCLIENT ps)
void command_rpost (NXWCLIENT ps)
void command_lpost (NXWCLIENT ps)
void command_regspawnall (NXWCLIENT ps)
void command_wipenpcs (NXWCLIENT ps)
void command_gms (NXWCLIENT ps)
void command_who (NXWCLIENT ps)
void command_gmtransfer (NXWCLIENT ps)
void command_stats (NXWCLIENT ps)
void command_options (NXWCLIENT ps)
void command_gotocur (NXWCLIENT ps)
void command_resend (NXWCLIENT ps)
 Resends server data to client.

void command_teleport (NXWCLIENT ps)
 Teleport a client.

void command_where (NXWCLIENT ps)
 Prints your current coordinates + region.

void command_q (NXWCLIENT ps)
 Shows the GM or Counsellor queue.

void command_next (NXWCLIENT ps)
 For Counselors or GM's, goes to next call in queue.

void command_clear (NXWCLIENT ps)
 For Counselor's and GM's, removes current call from queue.

void command_newz (NXWCLIENT ps)
void command_password (NXWCLIENT ps)
void command_goplace (NXWCLIENT ps)
 (d) Teleports you to a location from the LOCATIONS.SCP file.

void command_gochar (NXWCLIENT ps)
 (h h h h) Teleports you to another character.

void command_fix (NXWCLIENT ps)
 Try to compensate for messed up Z coordinates. Use this if you find yourself half-embedded in the ground.

void command_xgoplace (NXWCLIENT ps)
 (d) Send another character to a location in your LOCATIONS.SCP file.

void command_showids (NXWCLIENT ps)
 Display the serial number of every item on your screen.

void command_poly (NXWCLIENT ps)
 (h h) Polymorph yourself into any other creature.

void command_skin (NXWCLIENT ps)
void command_action (NXWCLIENT ps)
 (h) Preform an animated action sequence.

void command_xtele (NXWCLIENT ps)
 Teleport a player to your position.

void command_go (NXWCLIENT ps)
 (d d d) Go to the specified X/Y/Z coordinates

void command_zerokills (NXWCLIENT ps)
 Sets all PK counters to 0.

void command_add (NXWCLIENT ps)
 (h h) Adds a new item, or opens the GM menu if no hex codes are specified.

void command_appetite (NXWCLIENT ps)
 Shows character appetite.

void command_addx (NXWCLIENT ps)
 (h h) Adds a new item to your current location.

void command_cfg (NXWCLIENT ps)
 (text) Renames any dynamic item in the game.

void command_rename (NXWCLIENT ps)
 (text) Renames any dynamic object in the game.

void command_title (NXWCLIENT ps)
void command_save (NXWCLIENT ps)
 Saves the current world data into NXWITEMS.WSC and NXWCHARS.WSC.

void command_dye (NXWCLIENT ps)
void command_setpriv (NXWCLIENT ps)
void command_nodecay (NXWCLIENT ps)
void command_send (NXWCLIENT ps)
void command_showtime (NXWCLIENT ps)
void command_settime (NXWCLIENT ps)
void command_shutdown (NXWCLIENT ps)
void command_skills (NXWCLIENT ps)
void command_playerlist (NXWCLIENT ps)
void command_blt2 (NXWCLIENT ps)
void command_sfx (NXWCLIENT ps)
void command_light (NXWCLIENT ps)
void command_web (NXWCLIENT ps)
void command_disconnect (NXWCLIENT ps)
void command_tell (NXWCLIENT ps)
void command_dry (NXWCLIENT ps)
void command_setseason (NXWCLIENT ps)
void command_rain (NXWCLIENT ps)
void command_snow (NXWCLIENT ps)
void command_gmmenu (NXWCLIENT ps)
void command_itemmenu (NXWCLIENT ps)
void command_additem (NXWCLIENT ps)
void command_dupe (NXWCLIENT ps)
void command_command (NXWCLIENT ps)
void command_gcollect (NXWCLIENT ps)
void command_allmoveon (NXWCLIENT ps)
void command_allmoveoff (NXWCLIENT ps)
void command_showhs (NXWCLIENT ps)
void command_hidehs (NXWCLIENT ps)
void command_set (NXWCLIENT ps)
void command_temp (NXWCLIENT ps)
void command_addnpc (NXWCLIENT ps)
void command_secondsperuominute (NXWCLIENT ps)
void command_brightlight (NXWCLIENT ps)
void command_darklight (NXWCLIENT ps)
void command_dungeonlight (NXWCLIENT ps)
void telltime (NXWCLIENT ps)
void command_restock (NXWCLIENT ps)
void command_restockall (NXWCLIENT ps)
void command_setshoprestockrate (NXWCLIENT ps)
void command_midi (NXWCLIENT ps)
void command_respawn (NXWCLIENT ps)
void command_regspawnmax (NXWCLIENT ps)
void command_regspawn (NXWCLIENT ps)
void command_regedit (NXWCLIENT ps)
void command_reloadserver (NXWCLIENT ps)
void command_loaddefaults (NXWCLIENT ps)
void command_cq (NXWCLIENT ps)
void command_cnext (NXWCLIENT ps)
void command_cclear (NXWCLIENT ps)
void command_minecheck (NXWCLIENT ps)
void command_invul (NXWCLIENT ps)
void command_noinvul (NXWCLIENT ps)
void command_guardson (NXWCLIENT ps)
void command_guardsoff (NXWCLIENT ps)
void command_decay (NXWCLIENT ps)
void command_pdump (NXWCLIENT ps)
void command_gy (NXWCLIENT ps)
void command_yell (NXWCLIENT ps)
void command_squelch (NXWCLIENT ps)
void command_spawnkill (NXWCLIENT ps)
void command_letusin (NXWCLIENT ps)
void command_readaccounts (NXWCLIENT ps)
void command_serversleep (NXWCLIENT ps)
void command_setmurder (NXWCLIENT ps)
void command_jail (NXWCLIENT ps)
void command_sysm (NXWCLIENT ps)
void command_reloadracescript (NXWCLIENT ps)
void command_npcrectcoded (NXWCLIENT ps)
void command_tweak (NXWCLIENT ps)
void target_tele (NXWCLIENT ps, P_TARGET t)
void target_remove (NXWCLIENT ps, P_TARGET t)
void target_jail (NXWCLIENT ps, P_TARGET t)
void target_release (NXWCLIENT ps, P_TARGET t)
void target_xbank (NXWCLIENT ps, P_TARGET t)
void target_xsbank (NXWCLIENT ps, P_TARGET t)
void target_makegm (NXWCLIENT ps, P_TARGET t)
void target_makecns (NXWCLIENT ps, P_TARGET t)
void target_killhair (NXWCLIENT ps, P_TARGET t)
void target_killbeard (NXWCLIENT ps, P_TARGET t)
void target_kill (NXWCLIENT ps, P_TARGET t)
void target_resurrect (NXWCLIENT ps, P_TARGET t)
void target_bolt (NXWCLIENT ps, P_TARGET t)
void target_kick (NXWCLIENT ps, P_TARGET t)
void target_xgo (NXWCLIENT ps, P_TARGET t)
void target_movetobag (NXWCLIENT ps, P_TARGET t)
void target_npcaction (NXWCLIENT ps, P_TARGET t)
void target_setamount (NXWCLIENT ps, P_TARGET t)
void target_freeze (NXWCLIENT ps, P_TARGET t)
void target_unfreeze (NXWCLIENT ps, P_TARGET t)
void target_tiledata (NXWCLIENT ps, P_TARGET t)
void target_heal (NXWCLIENT ps, P_TARGET t)
void target_mana (NXWCLIENT ps, P_TARGET t)
void target_stamina (NXWCLIENT ps, P_TARGET t)
void target_fullstats (NXWCLIENT ps, P_TARGET t)
void target_hide (NXWCLIENT ps, P_TARGET t)
void target_unhide (NXWCLIENT ps, P_TARGET t)
void target_possess (NXWCLIENT ps, P_TARGET t)
void target_telestuff (NXWCLIENT ps, P_TARGET t)
 implements the 'telestuff GM command

void target_emptypack (NXWCLIENT ps, P_TARGET t)
void target_ban (NXWCLIENT ps, P_TARGET t)
void target_spy (NXWCLIENT ps, P_TARGET t)
void target_title (NXWCLIENT ps, P_TARGET t)


Define Documentation

#define CMD_HANDLER name       extern void name ( NXWCLIENT ps )
 

#define command_time   telltime
 

#define MANAGEDSTEP name       void (*name)(NXWCLIENT)
 

#define P_MANAGEDSTEP   void (*)(NXWCLIENT)
 

#define TARGETFUNC name,
min,
errmsg,
msg   
 

Value:

void name(NXWCLIENT client) { \
                if(client->cmdParams.size()<min) \
                        client->sysmsg(errmsg); \
                else \
                        client->doTargeting(msg); \
        }
Defines a target function: name: is the name of the function you want to create min: is the minimum number of parameters you must supply errmsg: message sent to the client if not all parameters supplied msg: message for target selection (eg what to target)


Enumeration Type Documentation

anonymous enum
 

Last targeting and self targeting access test there bits.

Enumeration values:
TARG_NONE  No special modifiers for this command.
TARG_LAST  Can accept last target.
TARG_SELF  Can accept self as a target.

enum CmdType
 

Type of command.

Enumeration values:
CMD_TARGET  Call target struct specified in cmd_extra.
CMD_FUNC  Call function specified in cmd_extra, must be of type GMFUNC.
CMD_TARGETN  target with 1 param
CMD_TARGETNNN  target with 3 param
CMD_TARGETS  target with 1 string param
CMD_MANAGEDCMD  command is full self managed


Function Documentation

void command_action NXWCLIENT    ps
 

(h) Preform an animated action sequence.

void command_add NXWCLIENT    ps
 

(h h) Adds a new item, or opens the GM menu if no hex codes are specified.

void command_additem NXWCLIENT    ps
 

void command_addnpc NXWCLIENT    ps
 

void command_addx NXWCLIENT    ps
 

(h h) Adds a new item to your current location.

void command_allmoveoff NXWCLIENT    ps
 

void command_allmoveon NXWCLIENT    ps
 

void command_appetite NXWCLIENT    ps
 

Shows character appetite.

void command_blt2 NXWCLIENT    ps
 

void command_bounty NXWCLIENT    ps
 

void command_brightlight NXWCLIENT    ps
 

void command_cclear NXWCLIENT    ps
 

void command_cfg NXWCLIENT    ps
 

(text) Renames any dynamic item in the game.

void command_clear NXWCLIENT    ps
 

For Counselor's and GM's, removes current call from queue.

void command_cnext NXWCLIENT    ps
 

void command_command NXWCLIENT    ps
 

void command_cq NXWCLIENT    ps
 

void command_darklight NXWCLIENT    ps
 

void command_decay NXWCLIENT    ps
 

void command_disconnect NXWCLIENT    ps
 

void command_dry NXWCLIENT    ps
 

void command_dungeonlight NXWCLIENT    ps
 

void command_dupe NXWCLIENT    ps
 

void command_dye NXWCLIENT    ps
 

void command_fix NXWCLIENT    ps
 

Try to compensate for messed up Z coordinates. Use this if you find yourself half-embedded in the ground.

void command_gcollect NXWCLIENT    ps
 

void command_gmmenu NXWCLIENT    ps
 

void command_gms NXWCLIENT    ps
 

void command_gmtransfer NXWCLIENT    ps
 

void command_go NXWCLIENT    ps
 

(d d d) Go to the specified X/Y/Z coordinates

void command_gochar NXWCLIENT    ps
 

(h h h h) Teleports you to another character.

void command_goplace NXWCLIENT    ps
 

(d) Teleports you to a location from the LOCATIONS.SCP file.

void command_gotocur NXWCLIENT    ps
 

void command_gpost NXWCLIENT    ps
 

void command_guardsoff NXWCLIENT    ps
 

void command_guardson NXWCLIENT    ps
 

void command_gy NXWCLIENT    ps
 

void command_hidehs NXWCLIENT    ps
 

void command_invul NXWCLIENT    ps
 

void command_itemmenu NXWCLIENT    ps
 

void command_jail NXWCLIENT    ps
 

void command_letusin NXWCLIENT    ps
 

void command_light NXWCLIENT    ps
 

void command_loaddefaults NXWCLIENT    ps
 

void command_lpost NXWCLIENT    ps
 

void command_midi NXWCLIENT    ps
 

void command_minecheck NXWCLIENT    ps
 

void command_newz NXWCLIENT    ps
 

void command_next NXWCLIENT    ps
 

For Counselors or GM's, goes to next call in queue.

void command_nodecay NXWCLIENT    ps
 

void command_noinvul NXWCLIENT    ps
 

void command_npcrectcoded NXWCLIENT    ps
 

void command_options NXWCLIENT    ps
 

void command_password NXWCLIENT    ps
 

void command_pdump NXWCLIENT    ps
 

void command_playerlist NXWCLIENT    ps
 

void command_poly NXWCLIENT    ps
 

(h h) Polymorph yourself into any other creature.

void command_post NXWCLIENT    ps
 

void command_q NXWCLIENT    ps
 

Shows the GM or Counsellor queue.

void command_rain NXWCLIENT    ps
 

void command_readaccounts NXWCLIENT    ps
 

void command_regedit NXWCLIENT    ps
 

void command_regspawn NXWCLIENT    ps
 

void command_regspawnall NXWCLIENT    ps
 

void command_regspawnmax NXWCLIENT    ps
 

void command_reloadracescript NXWCLIENT    ps
 

void command_reloadserver NXWCLIENT    ps
 

void command_rename NXWCLIENT    ps
 

(text) Renames any dynamic object in the game.

void command_resend NXWCLIENT    ps
 

Resends server data to client.

void command_respawn NXWCLIENT    ps
 

void command_restock NXWCLIENT    ps
 

void command_restockall NXWCLIENT    ps
 

void command_rpost NXWCLIENT    ps
 

void command_save NXWCLIENT    ps
 

Saves the current world data into NXWITEMS.WSC and NXWCHARS.WSC.

void command_secondsperuominute NXWCLIENT    ps
 

void command_send NXWCLIENT    ps
 

void command_serversleep NXWCLIENT    ps
 

void command_set NXWCLIENT    ps
 

void command_setGmMoveEff NXWCLIENT    ps
 

void command_setmurder NXWCLIENT    ps
 

void command_setpriv NXWCLIENT    ps
 

void command_setseason NXWCLIENT    ps
 

void command_setshoprestockrate NXWCLIENT    ps
 

void command_settime NXWCLIENT    ps
 

void command_sfx NXWCLIENT    ps
 

void command_showhs NXWCLIENT    ps
 

void command_showids NXWCLIENT    ps
 

Display the serial number of every item on your screen.

void command_showtime NXWCLIENT    ps
 

void command_shutdown NXWCLIENT    ps
 

void command_skills NXWCLIENT    ps
 

void command_skin NXWCLIENT    ps
 

void command_snow NXWCLIENT    ps
 

void command_spawnkill NXWCLIENT    ps
 

void command_squelch NXWCLIENT    ps
 

void command_stats NXWCLIENT    ps
 

void command_sysm NXWCLIENT    ps
 

void command_teleport NXWCLIENT    ps
 

Teleport a client.

void command_tell NXWCLIENT    ps
 

void command_temp NXWCLIENT    ps
 

void command_title NXWCLIENT    ps
 

void command_tweak NXWCLIENT    ps
 

void command_web NXWCLIENT    ps
 

void command_where NXWCLIENT    ps
 

Prints your current coordinates + region.

void command_who NXWCLIENT    ps
 

void command_wipenpcs