Page 1 of 1

/player

Posted: Thu Apr 11, 2013 12:30 am
by Jabantiz
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.
/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 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.

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.

Re: /player

Posted: Thu Apr 11, 2013 12:06 pm
by John Adams
FYI, I added the /modify command for this exact purpose years ago. Handler 1000 I believe. I also have not actively developed it.

My goal with /modify was to cover all bases. /modify [player|item|spell|guild|zone|etc]


Were you running low on plat, Jab? :mrgreen:

Re: /player

Posted: Thu Apr 11, 2013 12:08 pm
by Lokked
Thanks Jab. I haven't looked at how the / commands work or are coded, so I will start learning through this command.

Re: /player

Posted: Thu Apr 11, 2013 12:52 pm
by Zcoretri
John Adams wrote:Were you running low on plat, Jab? :mrgreen:
He was, then i started to kill myself repeatedly and went to repair and realized I had no coin :cry:

Re: /player

Posted: Thu Apr 11, 2013 1:12 pm
by John Adams
I had the same problem trying to send Foof an in-game mail once... so I tried hacking the code to allow GMs to mail for free. Not sure I ever succeeded :D