mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Merge branch 'master' into ww
This commit is contained in:
@@ -206,6 +206,7 @@ int command_init(void)
|
||||
command_add("emotesearch", "Searches NPC Emotes", 80, command_emotesearch) ||
|
||||
command_add("emoteview", "Lists all NPC Emotes", 80, command_emoteview) ||
|
||||
command_add("enablerecipe", "[recipe_id] - Enables a recipe using the recipe id.", 80, command_enablerecipe) ||
|
||||
command_add("endurance", "Restores you or your target's endurance.", 50, command_endurance) ||
|
||||
command_add("equipitem", "[slotid(0-21)] - Equip the item on your cursor into the specified slot", 50, command_equipitem) ||
|
||||
command_add("face", "- Change the face of your target", 80, command_face) ||
|
||||
command_add("faction", "[Find (criteria | all ) | Review (criteria | all) | Reset (id)] - Resets Player's Faction", 80, command_faction) ||
|
||||
@@ -748,6 +749,19 @@ void command_wwcast(Client *c, const Seperator *sep)
|
||||
else
|
||||
c->Message(Chat::Yellow, "Usage: #wwcast <spellid>");
|
||||
}
|
||||
void command_endurance(Client *c, const Seperator *sep)
|
||||
{
|
||||
Mob *t;
|
||||
|
||||
t = c->GetTarget() ? c->GetTarget() : c;
|
||||
|
||||
if (t->IsClient())
|
||||
t->CastToClient()->SetEndurance(t->CastToClient()->GetMaxEndurance());
|
||||
else
|
||||
t->SetEndurance(t->GetMaxEndurance());
|
||||
|
||||
t->Message(Chat::White, "Your endurance has been refilled.");
|
||||
}
|
||||
void command_setstat(Client* c, const Seperator* sep){
|
||||
if(sep->arg[1][0] && sep->arg[2][0] && c->GetTarget()!=0 && c->GetTarget()->IsClient()){
|
||||
c->GetTarget()->CastToClient()->SetStats(atoi(sep->arg[1]),atoi(sep->arg[2]));
|
||||
|
||||
Reference in New Issue
Block a user