/player

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

/player

Post by Jabantiz » 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.
/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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: /player

Post by John Adams » Thu Apr 11, 2013 12:06 pm

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:

Lokked
Retired
Posts: 20
Joined: Tue Mar 26, 2013 4:14 pm
Location: Alberta, Canada

Re: /player

Post by Lokked » Thu Apr 11, 2013 12:08 pm

Thanks Jab. I haven't looked at how the / commands work or are coded, so I will start learning through this command.

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Re: /player

Post by Zcoretri » Thu Apr 11, 2013 12:52 pm

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:

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: /player

Post by John Adams » Thu Apr 11, 2013 1:12 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests