19 #ifndef __ADMINMANAGER_H__ 20 #define __ADMINMANAGER_H__ 25 #include <csutil/ref.h> 42 #define PETITION_GM 0xFFFFFFFF 55 class psAdminGameEvent;
174 psRewardDataSkill(csString pskillName,
int pskillDelta,
int pskillCap,
bool prelativeSkill);
281 : command(commandName), help(false), valid(true)
306 virtual csString GetHelpMessage();
314 void ParseError(
MsgEntry* me,
const char* errmsg);
321 virtual bool LogGMCommand(
Client* gmClient,
const char* cmd);
341 bool LogGMCommand(
Client* gmClient, PID playerID,
const char* cmd);
350 help = (word ==
"help");
379 : targetObject(NULL), targetActor(NULL), targetClient(NULL),
380 area(false), duplicateActor(false), target(), targetID(),
408 return (allowedTargetTypes & targetType);
417 return (targetTypes & targetType);
436 virtual csString GetHelpMessagePartForTarget();
442 virtual AccountID GetAccountID(
size_t gmClientNum);
449 return (targetObject != NULL);
464 bool GetPlayerAccountIDByPID(
size_t gmClientNum,
const csString &word);
474 bool GetPlayerAccountIDByPIDFromName(
size_t gmClientNum,
const csString &word,
bool reporterror);
487 bool GetPlayerAccountIDByName(
size_t gmClientNum,
const csString &word,
bool reporterror);
497 bool GetPlayerClient(
AdminManager* msgManager,
size_t gmClientNum,
const csString &playerName,
bool allowduplicate);
503 virtual void Reset();
533 virtual csString GetHelpMessage();
538 virtual csString GetHelpMessage(
const csString &subcommand);
544 bool IsSubCommand(
const csString &word);
551 void Push(csString subcommand, csString helpmsg);
578 bool ParseWords(
size_t index,
const WordArray &words);
583 virtual csString GetHelpMessage();
598 ADMINCMD_SETTING_UNKNOWN = 0,
599 ADMINCMD_SETTING_ON = 1,
601 ADMINCMD_SETTING_TOGGLE
612 csString GetHelpMessage();
636 bool ParseWord(
const csString &word);
683 virtual csString GetHelpMessage();
690 virtual bool LogGMCommand(
Client* gmClient,
const char* cmd);
741 virtual csString GetHelpMessage();
781 virtual csString GetHelpMessage();
821 virtual csString GetHelpMessage();
862 virtual csString GetHelpMessage();
906 virtual csString GetHelpMessage();
948 virtual csString GetHelpMessage();
990 virtual csString GetHelpMessage();
1031 virtual csString GetHelpMessage();
1072 virtual csString GetHelpMessage();
1115 virtual csString GetHelpMessage();
1157 virtual csString GetHelpMessage();
1198 virtual csString GetHelpMessage();
1239 virtual csString GetHelpMessage();
1282 virtual csString GetHelpMessage();
1300 subCommandList(
"make makemaster copy clearlocks skel"),
1301 subTargetCommandList(
"changelock makeunlockable securitylockable addlock removelock")
1329 virtual csString GetHelpMessage();
1371 virtual csString GetHelpMessage();
1416 virtual csString GetHelpMessage();
1469 virtual csString GetHelpMessage();
1513 virtual csString GetHelpMessage();
1557 virtual csString GetHelpMessage();
1600 virtual csString GetHelpMessage();
1641 virtual csString GetHelpMessage();
1682 virtual csString GetHelpMessage();
1727 virtual csString GetHelpMessage();
1770 virtual csString GetHelpMessage();
1811 virtual csString GetHelpMessage();
1855 virtual csString GetHelpMessage();
1894 virtual csString GetHelpMessage();
1910 :
AdminCmdData(command), isClientSector(false), sectorInfo(NULL)
1939 virtual csString GetHelpMessage();
1956 virtual bool GetSectorOfClient(
Client* client);
1998 virtual csString GetHelpMessage();
2044 virtual csString GetHelpMessage();
2063 :
AdminCmdDataSectorTarget(
"/fog"), enabled(false), density(200), fadeTime(10000), interval(0), r(200), g(200), b(200)
2091 virtual csString GetHelpMessage();
2144 virtual csString GetHelpMessage();
2188 virtual csString GetHelpMessage();
2230 virtual csString GetHelpMessage();
2282 virtual csString GetHelpMessage();
2328 virtual csString GetHelpMessage();
2371 virtual csString GetHelpMessage();
2415 virtual csString GetHelpMessage();
2434 :
AdminCmdData(
"/location"), subCommandList(
"help adjust display hide")
2462 virtual csString GetHelpMessage();
2495 :
AdminCmdData(
"/path"), subCommandList(
"adjust alias display format help hide info point start stop"), aliasSubCommandList(
"add remove"), wpList(
"waypoints points"), subCmd(), defaultRadius(2.0)
2523 virtual csString GetHelpMessage();
2575 virtual csString GetHelpMessage();
2595 :
AdminCmdData(
"/hire"), subCommandList(
"help list"), subCmd(), owner(NULL), hiredNPC(NULL)
2623 virtual csString GetHelpMessage();
2665 virtual csString GetHelpMessage();
2681 subCommandList(
"complete list discard assign")
2709 virtual csString GetHelpMessage();
2751 virtual csString GetHelpMessage();
2795 virtual csString GetHelpMessage();
2837 virtual csString GetHelpMessage();
2880 virtual csString GetHelpMessage();
2919 virtual csString GetHelpMessage();
2961 virtual csString GetHelpMessage();
3002 virtual csString GetHelpMessage();
3044 virtual csString GetHelpMessage();
3086 virtual csString GetHelpMessage();
3125 virtual csString GetHelpMessage();
3167 virtual csString GetHelpMessage();
3214 virtual csString GetHelpMessage();
3266 virtual csString GetHelpMessage();
3284 :
AdminCmdData(
"/time"), subCommandList(
"show set"), hour(0), minute(0)
3318 virtual csString GetHelpMessage();
3379 void Admin(
int clientnum,
Client* client,
int requestedLevel = -1);
3386 void AwardExperienceToTarget(
int gmClientnum,
Client* target,
int ppAward);
3394 void AdjustFactionStandingOfTarget(
int gmClientnum,
Client* target, csString factionName,
int standingDelta);
3405 bool ApplySkill(
int gmClientNum,
Client* target,
psSkillInfo* skill,
int value,
bool relative =
false,
int cap = 0);
3420 bool GetStartOfMap(
int clientnum,
const csString &map, iSector* &targetSector, csVector3 &targetPoint);
3449 bool IsReseting(
const csString &command);
3814 int PathPointCreate(
int pathID,
int prevPointId, csVector3 &pos, csString §orName);
3834 void FindPath(csVector3 &pos, iSector* sector,
float radius,
3836 psPath** path,
float* rangePath,
int* indexPath,
float* fraction,
3837 psPath** pointPath,
float* rangePoint,
int* indexPoint);
3841 virtual uint32_t GetEffectID();
3848 void HideAllPaths(
bool clearSelected);
3855 void HidePaths(
Client* client);
3862 void HideWaypoints(
Client* client);
3870 void HidePaths(
Client* client, iSector* sector);
3878 void HideWaypoints(
Client* client, iSector* sector);
3883 void RedisplayAllPaths();
3890 void ShowPaths(
Client* client);
3897 void ShowWaypoints(
Client* client);
3905 void ShowPaths(
Client* client, iSector* sector);
3913 void ShowWaypoints(
Client* client, iSector* sector);
3923 void UpdateDisplayWaypoint(
Waypoint* wp);
3944 int LocationCreate(
int typeID, csVector3 &pos, csString §orName, csString &name,
int radius);
3949 void ShowLocations(
Client* client);
3954 void ShowLocations(
Client* client, iSector* sector);
3961 void HideAllLocations(
bool clearSelected);
3965 void HideLocations(
Client* client);
3969 void HideLocations(
Client* client, iSector* sector);
3974 void RedisplayAllLocations();
3978 void UpdateDisplayLocation(
Location* location);
4017 void BroadcastDirtyPetitions(
int clientNum,
bool includeSelf=
false);
4027 bool GetPetitionsArray(csArray<psPetitionInfo> &petitions,
Client* client,
bool IsGMrequest =
false);
4334 void SendAwardInfo(
size_t gmClientnum,
Client* target,
const char* awardname,
const char* awarddesc,
int awarded);
4454 int GetTrueSecurityLevel(AccountID accountID);
4626 bool AddPetition(PID playerID,
const char* petition);
4636 iResultSet* GetPetitions(PID playerID, PID gmID =
PETITION_GM);
4646 bool CancelPetition(PID playerID,
int petitionID,
bool isGMrequest =
false);
4657 bool ChangePetition(PID playerID,
int petitionID,
const char* petition);
4667 bool ClosePetition(PID gmID,
int petitionID,
const char* desc);
4676 bool AssignPetition(PID gmID,
int petitionID);
4686 bool DeassignPetition(PID gmID,
int gmLevel,
int petitionID);
4697 bool EscalatePetition(PID gmID,
int gmLevel,
int petitionID);
4708 bool DescalatePetition(PID gmID,
int gmLevel,
int petitionID);
4719 bool LogGMCommand(AccountID accountID, PID gmID, PID playerID,
const char* cmd);
4738 const char* GetLastSQLError();
4750 void SendGMAttribs(
Client* client);
PSCHARACTER_GENDER gender
gender of the character
Class for storing subcommands for a specific word position.
Class for commands with a sector target.
csString raceName
name of the race to morph to
AdminCmdSubCommandParser subCommandList
list of subcommands
AdminCmdRewardParser rewardList
rewards parser and storage
csString questName
name of the specified quest
InstanceID destInstance
id for the destination instance (when given)
virtual ~AdminCmdDataSetLabelColor()
csString typeNPCType
type NPC type storage
csString newName
new guildname
Class for terminating the server.
int duration
The duration of the anim if any (0 default one run)
int amount
amount of items
csString place
named place to respawn (currently 'here' or nothing)
csString newLastName
new Lastname
virtual ~AdminCmdDataPercept()
csString perception
the perception to fire.
AdminCmdSubCommandParser subCommandList
list of valid subcommands
Class for setting quality for an item command.
bool banIP
true if the IP address is to ban
csPDelArray< psRewardData > rewards
extracted rewards
RewardDataPractice holds practice reward data.
Manages CEL entities on the server.
virtual ~AdminCmdDataChangeName()
psPathNetwork * pathNetwork
Holds the entire PathNetwork for editing of paths.
AdminCmdDataSetKillExp()
Creates obj for specified command that sets the killing exp.
virtual ~AdminCmdDataImpersonate()
int density
density of the fog
AdminCmdDataSetTrait()
Creates obj for specified command that sets/displays traits.
AdminCmdSubCommandParser attributeList
virtual ~AdminCmdDataServerQuit()
Class for location command.
AdminCmdDataSetQuality()
Creates obj for specified command that changes item quality.
AdminCmdSubCommandParser subTargetCommandList
list of sub commands requiring a target
csString dest
destination command (when not a generic target)
Class for killing and reloading a npc.
csString guildName
guildname whos leader is to change
int first
first textline to fetch from npc
virtual ~AdminCmdSubCommandParser()
csString waypoint
waypoint name
virtual bool IsQuietInvalid()
Used to invalidate commands with area as they will be handled elsewhere.
unsigned short stackCount
number of items to award
csString itemName
name of the item to award
Represents a skill an NPC, player or pet can learn.
int moneyCount
relativ amount of money to adjust by if this is 0, a random value is used
AdminCmdDataScale()
Creates obj for specified command that needs a reason.
virtual ~AdminCmdDataKillNPC()
AdminCmdDataQuest()
Creates obj for specified command that examine/modify quests.
AdminCmdDataChangeGuildLeader()
Creates obj for specified command that changes a guild leader.
AdminCmdDataAction()
Creates obj for specified command creating a guildentrance.
csString subCmd
subcommand storage
bool uniqueFirstName
whether the first name should be unique
virtual ~AdminCmdDataSetTrait()
virtual ~AdminCmdDataWeather()
bool IsHelp(const csString &word)
Test for help word and store help state when found.
Class for changing tribe debug level.
AdminCmdDataRndMsgTest()
Creates obj for specified command sending test message.
csString locationType
type of the location
csString flagName
single flag name
bool IsAllowedTargetType(ADMINCMD_TARGET_TYPES targetType)
Test whether the given target type is allowed or not.
AdminCmdTargetParser player
when a playertarget needs to be parsed
csString scale
optional scale
float newRadius
The radius to set for new radius for wps.
float z
point to teleport to z coordinate
AccountID targetAccountID
internal cache value for accountID
float searchRadius
The radius to search for the location.
virtual bool IsZero()
checks if the reward is zero returns bool: true when reward is a zero gain, otherwise false ...
virtual ~AdminCmdDataDisableQuest()
float rotationAngle
The rotation angle of a alias.
Base class for on, off, toggle string Parser.
csString command
command name this obj contains data for
csString pathFlags
path flags
virtual bool IsQuietInvalid()
Used for overriding.
Class for issuing player warnings.
int stackCount
amount to transfer
int qualityMax
qualitymax for the item
the targeted object of the client issuing the admincomman
bool wpOrPathIsIndex
True when an index is used.
virtual ~AdminCmdDataDebugTribe()
Destructor.
virtual ~AdminCmdDataChangeGuildName()
csString aliasSubCmd
storage for alias subcommand
Class for handling path commands.
Class for deputize command.
ADMINCMD_TARGET_TYPES
The different generic target types of admin command targets.
csString subCommand
subcommand (copy)
int r
fog color, red component
AdminCmdDataAward()
Creates obj for specified command that awards rewards.
AdminCmdDataImpersonate()
Creates obj for specified command that impersonates someone.
bool help
flag for displaying help (true for displaying help)
int allowedTargetTypes
allowed destination types
csString alias
waypoint alias name
csString direction
direction where the slide should done
int b
fog color, blue component
The structure of 1 queue entry (pointer to a message)
Class for disabling/enabling a quest.
int skillDelta
value to adjust the skill by/set it to
Simple one word commands.
Class containing object factory for AdminCmdData objects.
virtual ~AdminCmdDataList()
csString target
player that is target for the command
AdminCmdDataTargetReason(csString command)
Creates obj for specified command that needs a reason.
csString requestor
gm requesting this deletion command
PID targetID
stores PID when target is a player/npc/???? specified by PID
Class for setting attributes on a player.
csString skillName
name of the skill picked
csString text
msg to test send
int hours
hours part of the time to ban
Class for setting the killing exp.
Class for searching for bad npc text.
csString locationName
name of the location
int targetTypes
type of the parsed target
Class for setting item names and descriptions.
csString itemName
name of the item to hunt
Base class for all the data classes for admin commands.
virtual ~AdminCmdDataLocation()
AdminCmdSubCommandParser aliasSubCommandList
subsubcmds of alias
csString subCommand
storage for the given subcommand
float y
movement related data, y coordinate
AdminCmdDataRunScript()
Creates obj for specified command that execute a script.
AdminCmdSubCommandParser subCommandList
list of subcommands
A waypoint is a specified circle on the map with a name, location, and a list of waypoints it is conn...
virtual ~AdminCmdDataPath()
GM_LEVEL
List of GM levels and their security level.
AdminCmdDataGameMasterEvent()
Creates obj for specified command that concern game events.
AdminCmdSubCommandParser subCommandList
list of subcommands
bool area
is set to true if a character was found by name and multiple name instances were found.
csString subCmd
subcommand storage
AdminCmdDataWeatherEffect(csString command)
Creates obj for specified command that change weather effects.
Class for modifying command.
bool enabled
whether to enable/disable the effect
int debugLevel
The debug level to set for npc.
AdminCmdDataDeputize()
Creates obj for specified command that elevates someones rights.
AdminCmdTargetParser sourcePlayer
target parser for possible source player can also be optional, but then the target player must be spe...
virtual ~AdminCmdDataCrystal()
ADMINCMD_SETTING_ONOFF
detected settings recognized by the parser.
csString subCmd
possibly one subcommand here
Class for commands deleting a player.
virtual ~AdminCmdDataTarget()
Class for commands creating items.
csString subCommand
the parsed subcommand if any
bool IsTargetType(ADMINCMD_TARGET_TYPES targetType)
Test whether the given target type is of the supplied type or not.
csString reason
reason for the shutdown
AdminCmdDataFog()
Creates obj for specified command that control fog.
AdminCmdDataLoadQuest()
Creates obj for specified command that needs a reason.
float range
range to search for targets
AdminCmdDataSectorTarget(csString command)
Creates obj for specified command that target a sector.
Class for commands for instantly killing a user (player).
virtual ~AdminCmdDataItem()
csString attribute
the parsed attribute name if any
RangeSpecifier rangeSpecifier
range type
int level
level for a skill
csString destSector
sectorname
AdminCmdDataModify()
Creates obj for specified command that modifies an item.
when the target does not need to be any of the above defined targets
Class for some action (guildentrance creation).
csString stackableAction
subcommand storage
csString subCmd
storage for subcommand
int quantity
quantity of the item
virtual ~AdminCmdDataLoadQuest()
int interval
interval value
Class for game event command.
AdminCmdDataItem()
Creates obj for specified command that needs a reason.
Class for banning a player.
AdminCmdSubCommandParser wpList
targetnames of hide/show
virtual ~AdminCmdDataSetKillExp()
int expValue
experience to set
virtual ~AdminCmdDataBadText()
Base class for creating treasure hunts.
AdminCmdSubCommandParser subCommandList
list of subcommands
AdminCmdDataSetLabelColor()
Creates obj for specified command setting labels.
AdminCmdSubCommandParser subCommandList
possible sub commands
bool saveToDb
whether to save this to the db or not
AdminCmdDataNPCClientQuit()
Creates obj for specified command that ends the server.
bool IsOnline()
Returns true when the 'target' is online.
csString typeName
type name storage
csString npcType
The type of npc which will be assigned.
csString moneyType
name of the money type to award (circles, hexas, ...)
virtual ~AdminCmdDataRunScript()
csString description
description for the guild entrance
Admin manager that handles GM commands and general game control.
AdminCmdSubCommandParser()
initializes subcommands list without any commands.
AdminCmdTargetParser(int targetTypes)
default constructor.
csString scale
optional scale
Any semi-autonomous object, either a player or an NPC.
Class for sliding a player command.
ADMINCMD_SETTING_ONOFF value
stores on,off,toggle
AdminCmdDataLocation()
Creates obj for specified command that needs a reason.
virtual ~AdminCmdDataMorph()
Class for teleport command.
csString itemName
name of the item to transfer
AdminCmdTargetParser destObj
when specified at the cmd line, that an ingame object is the destination
csString reason
reason for the ban
csString race
specifier for the race of the character
virtual ~AdminCmdDataInfo()
float radius
radius of the location
gemObject * targetObject
set to the object of the target when possible
csString labelType
name of the label 'color'
Class for assigning awards for factions.
virtual ~AdminCmdDataSetStackable()
AdminCmdSubCommandParser destList
list of destination commands
virtual ~AdminCmdDataDebugNPC()
csString guildName
guildname for create_entrance
Class for a command running a script.
Class for awarding rewards command.
Manager that manage all locations and location types.
int waypointPathIndex
Index of the wp or point.
csString subCommand
subcommand (if any)
unsigned int skillCap
maximum value the skill should have
bool destInstanceValid
true when the instance is valid
csString questName
quest to disable
WordArray is class that parses text command (e.g.
virtual ~AdminCmdDataSetQuality()
csString error
set to error message when parsing failed
Class for item check command.
csString scriptName
name of the script to execute
AdminCmdDataReload()
Creates obj for specified command that reloads item stats.
float x
point to teleport to x coordinate
AdminCmdDataUpdateRespawn()
Creates obj for specified command that updates a respawn point.
Class for terminating the server.
psSectorInfo * sectorInfo
sector either found by sectorname or client position
AdminCmdDataSimple(csString commandName)
Creates obj for specified command that ends the server.
float defaultRadius
default radius for the case radius == 0.0
float damage
If <> 0 than only do this damage.
virtual ~AdminCmdDataSimple()
csString subCommand
given subcommand
AdminCmdDataWeather()
Creates obj for specified command that change the weather.
virtual ~AdminCmdDataDeleteChar()
when it's allowed to lookup the database.
virtual ~AdminCmdDataListWarnings()
virtual ~AdminCmdDataAward()
csString subCmd
subcommand
AdminCmdDataPetition()
Creates obj for specified command that creates petitions.
float rot
movement related data, rotation
Class for setskill command.
bool enabled
whether the weather effect is enabled or not
int factionDelta
relative value to adjust faction by
csString gmeventDesc
description of the event
AdminCmdDataCheckItem()
Creates obj for specified item check command.
csString commandMod
whether say,shout,worldshout should be used
Class for key (lock) related commands.
Class for commands that only need a target and a reason.
csString newName
new Firstname
csString traitName
name of the trait to add (if adding is possible)
int particleCount
number of particles for the effect
float slideAmount
the distance to slide
virtual ~AdminCmdDataSetSkill()
AdminCmdDataAssignFaction()
Creates obj for specified command that assigns factions.
virtual ~AdminCmdDataGameMasterEvent()
virtual ~AdminCmdDataUpdateRespawn()
This is a wrapper class for result sets which makes syntax for getting at the data easier and also us...
int minutes
minutes part of the time to ban
#define PETITION_GM
This is used for petitions to choose if it's a player or a gm asking to do a certain operation...
Class for name changing of a player.
int days
days part of the time to ban
AdminCmdDataPercept()
Creates obj for specified command that kills/reloads a npc.
csString guildName
name of the guild
csString lasterror
internal string used for formating and passing back errormessages
Base class for all commands that need a target to work on.
Class for weather command.
AdminCmdDataCrystal()
Creates obj for specified command that define a treasure hunt.
Class for un/setting, displaying information on stackable items.
int quality
quality in numbers for the item
AdminCmdSubCommandParser subCommandList
List of possible sub commands.
csString gmeventName
name of the event
Class for commands creating items.
This class collects data of a netclient.
csString securityLevel
security level to grant temporarily
gemActor * targetActor
set to the targets actor when possible
psRewardDataSkill skillData
data about the skill to set
virtual ~AdminCmdDataBan()
int interval
lenght of the weather effect
AdminCmdDataChangeName()
Creates obj for specified command that changes a players name.
AdminCmdSubCommandParser attributeList
list of valid attributes
Class for transfering items.
bool random
whether the amount should be randomized or fix
AdminCmdDataInfo()
Creates obj for specified command that needs a reason.
AdminCmdOnOffToggleParser setting
the specified setting on|off|toggle
float radius
radius for waypoint/path operations
virtual ~AdminCmdDataChangeNPCType()
int debugLevel
The debug level to set for npc.
AdminCmdDataKey()
Creates obj for specified command managing locks.
virtual ~AdminCmdDataRndMsgTest()
AdminCmdDataSlide()
Creates obj for specified command that needs a reason.
AdminCmdDataList()
Creates obj for specified command that needs a reason.
ClientConnectionSet * clients
internal list of clients connected to the server
AdminCmdDataKillNPC()
Creates obj for specified command that kills/reloads a npc.
virtual ~AdminCmdDataAction()
int interval
lenght of the weather effect
AdminCmdDataPath()
Creates obj for specified command that manipulate paths.
int interval
respawn interval ??
csString questName
name of quest to modify/examine
AdminCmdDataDeleteChar()
Creates obj for specified command that needs a reason.
virtual ~AdminCmdDataSectorTarget()
virtual ~AdminCmdDataDeputize()
AdminCmdDataDisableQuest()
Creates obj for specified command for quest dis-/en-abling.
virtual ~AdminCmdDataPetition()
int quality
quality for the item
Class for percepting a npc.
float range
spawn range ??
Helper interface to allocate effect IDs.
AdminCmdDataSetItem()
Creates obj for specified command changing item name/description.
AdminCmdDataListWarnings()
Creates obj for specified command that issues a player warning.
csString subCommand
given subcommand
AdminCmdSubCommandParser labelTypeList
list of valid label types
This class exists per NPC, and holds all dialog triggers, responses and scripts for this particular N...
Messages that are sent to the GM GUI windowManager.
csString subCommand
subcommand storage
AdminCmdDataBan()
Creates obj for specified command that bans a player.
csString description
description for the item
Class for parsing rewards data from a command string and storing it.
bool uniqueName
whether the name should be unique
AdminCmdTargetParser origObj
Optional argument to specify a different origin for the script being run.
Class for guild leader changing command.
RewardDataItem holds item reward data.
csString type
the type data for the perception.
Class for reloading item stats.
virtual ~AdminCmdDataScale()
virtual ~AdminCmdDataTime()
bool sequential
true is for sending messages in sequende, otherwise randomly
int expDelta
relative value to adjust exp by
AdminCmdData(csString commandName)
creates data object for the specified command.
Class for changing npc debug level.
Class for changing npc types.
csString subCommand
sub command envoked
AdminCmdDataServerQuit()
Creates obj for specified command that ends the server.
virtual ~AdminCmdDataChangeGuildLeader()
int practice
value to adjust the practice by/set it to
AdminCmdSubCommandParser subCommandList
allowed subcommands
AdminCmdDataChangeNPCType()
Creates obj for specified command that changes npctype of a npc.
AdminCmdDataChangeGuildName()
Creates obj for specified command that changes a guild name.
csString commandMod
subsubcommand
Class for sending sequenced test message.
virtual ~AdminCmdTargetParser()
the default destructor.
Class for impersonation command.
float rotAngle
rotation angle for this location
Class for setting traits or retrieving info.
virtual ~AdminCmdDataCheckItem()
virtual ~AdminCmdDataQuest()
virtual ~AdminCmdDataTargetReason()
Class for examing/modifying quests.
bool enabled
enable or disable a setting
when the target word gives an account name
virtual ~psRewardData()
Destructor.
virtual ~AdminCmdDataTeleport()
AdminCmdDataTarget(csString commandName, int targetTypes)
Creates obj for the given command and allowed target types.
Client * targetClient
set to the targets client when possible
csString waypointFlags
waypoint flags
A gemObject is any solid, graphical object visible in PS with normal physics and normal collision det...
Reward_Type
The different types of rewards that can be assigned.
bool random
random item modifiers are added
csString name
name for the item
when setting is 'off'
when not recognized as any of the below types
AdminCmdSubCommandParser subCommandList
list of subcommands
csString subCommand
subcommand storage
csHash< csString, csString > subCommands
list of subcommands
RewardDataMoney holds money reward data.
bool relativeSkill
determines whether the value to adjust the skill is relative or not
AdminCmdDataSetStackable()
Creates obj for specified command that needs a reason.
virtual ~AdminCmdDataDeath()
bool isClientSector
true when sector of client is stored
float y
point to teleport to y coordinate
AdminCmdSubCommandParser subCommandList
List of possible sub commands.
AdminCmdDataDebugTribe()
Creates obj for specified command that changes Tribe Debug level.
virtual ~AdminCmdDataSetItem()
virtual ~AdminCmdDataAssignFaction()
csPDelArray< AdminCmdData > adminCmdDatas
storage for command data factory functions
psPathNetwork * GetPathNetwork()
return the path network
int g
fog color, green component
AdminCmdDataDeath()
Creates obj for specified command that needs a requestor.
Class for setting labels.
csString genderName
name of the gender to morph to
int firstIndex
index for waypoint paths
float x
movement related data, x coordinate
csString cmdTarget
'W' or 'P' as a target for hide/show
csString factionName
faction name to assign
csString subCommand
subcommand (if any)
csString petition
text of the petition
This class is a list of several CLient objects, it's designed for finding clients very fast based on ...
csString sectorName
name of the sector (when parsed successfully)
Contains information about sectors from the server perspective.
bool valid
flag for setting content valid/invalid
AdminCmdDataTeleport()
Creates obj for teleport command data.
AdminCmdDataItemTarget(csString command)
Creates obj for specified command that transfers items.
virtual ~AdminCmdDataWeatherEffect()
Messages sent by the user to the server with requests for petition information.
csString waypointPathName
pathname for waypoints
virtual ~AdminCmdDataItemTarget()
A Location is a named place on the map, located dynamically by NPCs as scripted.
RewardDataExperience holds experience reward data.
psNPCDialog * npcdlg
Holds a dummy dialog.
virtual ~AdminCmdDataNPCClientQuit()
csString text
text to send impersonated
int factionPoints
faction points to assign
virtual ~AdminCmdDataKey()
RewardDataSkill holds skill reward data.
A network of Waypoint and psPath objects.
Class for game event command.
virtual ~AdminCmdDataSlide()
AdminCmdDataMorph()
Creates obj for specified command that needs a reason.
csString skillName
name of the skill to adjust.
Reward_Type rewardType
stores the reward type /see Reward_Type
RewardDataFaction holds faction reward data.
bool enabled
whether the weather effect is enabled or not
bool wpOrPathIsWP
Is it the path or the wp that should be updated.
csString subCmd
Sub of commands.
AdminCmdDataFactory * dataFactory
Data object factory for parsing command data.
AdminCmdRewardParser rewardList
rewards parser and storage
AdminCmdTargetParser requestor
gm requesting this deletion command
LocationManager * GetLocationManager()
float z
movement related data, z coordinate
AdminCmdSubCommandParser subCommandList
list of sub commands
AdminCmdDataHire()
Creates obj for specified command that concern hire.
This class handles all queueing and invoking of timed events, such as combat, spells, NPC dialog responses, range weapons, or NPC respawning.
Represents a point on a path between two waypoints.
virtual ~AdminCmdDataModify()
virtual ~AdminCmdDataHire()
Base class for manipulating weather effects.
Class for loading/reloading quests.
csString skillName
name of the practice to adjust.
Class for name changing a guild.
AdminCmdSubCommandParser rewardTypes
reward types
int fadeTime
in millisecs the time to have the particles fade
csString subCmd
sub command
bool reload
whether NPC should be reloaded after the kill or not
int type
Which weather effect we should disable or enable.
AdminCmdDataSetSkill()
Creates obj for specified command that change skill levels.
int time
time until shutdown
virtual ~AdminCmdDataFog()
Class for parsing a target of a admin command.
AdminCmdDataBadText()
Creates obj for specified command examine npc dialogs.
LocationManager * locations
Hold every location in the world for editing of locations.
int fadeTime
in millisecs the time to have the particles fade
AdminCmdDataTime()
Creates obj for specified command that needs a reason.
bool IsTargetTypeUnknown()
Test for unparsable targettype.
virtual ~AdminCmdDataReload()
int last
last textline to fetch
AdminCmdDataDebugNPC()
Creates obj for specified command that changes NPC Debug level.
AdminCmdSubCommandParser subCommandList
list of allowed subcommands
psRewardData(Reward_Type prewardType)
Only initializes the rewardType.
PID masterPID
master PID storage
AdminCmdDataSet()
Creates obj for specified command that set attribute values.
virtual ~AdminCmdDataSet()
Reward Data is an abstract structure for all kinds of rewards.
csString factionName
name of the faction to adjust
Class for player/npc respawn update.
This class embodies item instances in the game.
csString reason
reason for this deletion command
csString error
only set when an error occured during parsing
Provides a manager to facilitate subscriptions.