/player
Posted: Thu Apr 11, 2013 12:30 am
Added a /player command, the goal of the command, in the long run, is to allow a GM to modify himself or another player in game. The syntax I chose was "/player type action" and use subcommands in the DB for the type. So far the only thing this command does is add coins to the player.
I would like to point out that I will not be actively developing this command, just adding to it as I need to (got tired of manually editing the DB to give my chars money to repair equipment after hundreds of /kill self to test various things, or to play the lotto goblin...) If any one else wants to add to the /player command please do, it might even be a good starting point for any new devs to learn some of the server core but that is just my opinion.
I chose to use subcommands in the DB so all the code related to coins will be in one function, can add another subcommand and function to handle xp, and another for quests./player coins add 1 - adds 1 copper to the player
/player coins add copper 1 - same as the previous statement
/player coins add silver 1 - adds 1 silver to the player, same as /player add coins 100
/player coins add gold 1 - adds 1 gold to the player, same as /player add coins 10000
/player coins add plat 1 - adds 1 plat to the player, same as /player add coins 1000000
I would like to point out that I will not be actively developing this command, just adding to it as I need to (got tired of manually editing the DB to give my chars money to repair equipment after hundreds of /kill self to test various things, or to play the lotto goblin...) If any one else wants to add to the /player command please do, it might even be a good starting point for any new devs to learn some of the server core but that is just my opinion.