mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
parent
f8c2e85f3e
commit
fb8539e679
@ -884,19 +884,30 @@ void command_worldwide(Client *c, const Seperator *sep)
|
|||||||
c->Message(Chat::White, "Usage: #worldwide moveinstance [Instance ID]");
|
c->Message(Chat::White, "Usage: #worldwide moveinstance [Instance ID]");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void command_endurance(Client *c, const Seperator *sep)
|
void command_endurance(Client *c, const Seperator *sep)
|
||||||
{
|
{
|
||||||
Mob *t;
|
auto target = c->GetTarget() ? c->GetTarget() : c;
|
||||||
|
if (target->IsClient()) {
|
||||||
|
target->CastToClient()->SetEndurance(target->CastToClient()->GetMaxEndurance());
|
||||||
|
} else {
|
||||||
|
target->SetEndurance(target->GetMaxEndurance());
|
||||||
|
}
|
||||||
|
|
||||||
t = c->GetTarget() ? c->GetTarget() : c;
|
if (c != target) {
|
||||||
|
c->Message(
|
||||||
if (t->IsClient())
|
Chat::White,
|
||||||
t->CastToClient()->SetEndurance(t->CastToClient()->GetMaxEndurance());
|
fmt::format(
|
||||||
else
|
"Set {} ({}) to full Endurance.",
|
||||||
t->SetEndurance(t->GetMaxEndurance());
|
target->GetCleanName(),
|
||||||
|
target->GetID()
|
||||||
t->Message(Chat::White, "Your endurance has been refilled.");
|
).c_str()
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
c->Message(Chat::White, "Restored your Endurance to full.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void command_setstat(Client* c, const Seperator* sep){
|
void command_setstat(Client* c, const Seperator* sep){
|
||||||
if(sep->arg[1][0] && sep->arg[2][0] && c->GetTarget()!=0 && c->GetTarget()->IsClient()){
|
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]));
|
c->GetTarget()->CastToClient()->SetStats(atoi(sep->arg[1]),atoi(sep->arg[2]));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user