/skill command

Old feature requests stored here for reference.
Locked
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:

/skill command

Post by John Adams » Sun Aug 09, 2009 10:40 am

Can we get a manual /skill command added that will list, add, and remove skills from players?

Code: Select all

/skill [ add | remove | list ] [skill_name] {target}
Where:

/skill list Dagger -- will show me a list of skill_name's related to daggers

/skill add dagger Scatman -- will add the Dagger skill to Scatman's character_skills record

/skill remove dagger Scatman -- will remove the Dagger skill from Scatman's character_skills record



If {target} is not a name, make it add / remove the skill to the current targeted character.


TIA

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: /skill command

Post by LethalEncounter » Sun Aug 09, 2009 1:16 pm

Yah good idea :)

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: /skill command

Post by John Adams » Sun Aug 09, 2009 1:20 pm

Scatman has started looking into this, but had to run for a while. Not sure if he started it, or is just thinking it over. If you have any ideas, let's lay them out.

One thing he considered that I didn't, /skill remove skill_name {Player} might be a detriment if a malicious player decided to strip someone's skills heh... so we've decided that the {Player} param will only work if you are a GM.

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: /skill command

Post by Scatman » Mon Aug 10, 2009 12:18 am

I haven't started implementing it but I can get to it today. Also, what about a /skill list command or something similar to list all the commands from the DB?

Edit: Nvm, just saw you already mentioned that :P

User avatar
Scatman
Retired
Posts: 1688
Joined: Wed Apr 16, 2008 5:44 am
EQ2Emu Server: Scatman's Word
Characters: Scatman
Location: New Jersey

Re: /skill command

Post by Scatman » Mon Aug 10, 2009 8:03 am

Hmm, looking at how we handle the required status for commands I don't think we'll be able to allow only clients with the required status to use the command differently. We check the required status before we even enter the command handler and if it's not enough, we exit.

I could tell the check to ignore checking the admin status up front if the command is 'skill'. Otherwise we only allow GMs to use the command.

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: /skill command

Post by John Adams » Mon Aug 10, 2009 8:09 am

Nah Scat, let's just do it like a normal command, and make it self-only.

We can make a second command for GMs: /giveskill or something, if we need to.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Re: /skill command

Post by LethalEncounter » Wed Aug 12, 2009 2:46 pm

Or just add a check in the command block that only allows flagged accts access to certain features.

Locked

Who is online

Users browsing this forum: No registered users and 1 guest