|
|
|
@ -1292,7 +1292,7 @@ void command_viewpetition(Client *c, const Seperator *sep)
|
|
|
|
if (!results.Success())
|
|
|
|
if (!results.Success())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "View petition request from %s, petition number: %i", c->GetName(), atoi(sep->argplus[1]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "View petition request from %s, petition number: %i", c->GetName(), atoi(sep->argplus[1]) );
|
|
|
|
|
|
|
|
|
|
|
|
if (results.RowCount() == 0) {
|
|
|
|
if (results.RowCount() == 0) {
|
|
|
|
c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again.");
|
|
|
|
c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again.");
|
|
|
|
@ -1317,7 +1317,7 @@ void command_petitioninfo(Client *c, const Seperator *sep)
|
|
|
|
if (!results.Success())
|
|
|
|
if (!results.Success())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Petition information request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Petition information request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) );
|
|
|
|
|
|
|
|
|
|
|
|
if (results.RowCount() == 0) {
|
|
|
|
if (results.RowCount() == 0) {
|
|
|
|
c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again.");
|
|
|
|
c->Message(13,"There was an error in your request: ID not found! Please check the Id and try again.");
|
|
|
|
@ -1343,7 +1343,7 @@ void command_delpetition(Client *c, const Seperator *sep)
|
|
|
|
if (!results.Success())
|
|
|
|
if (!results.Success())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Delete petition request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Delete petition request from %s, petition number:", c->GetName(), atoi(sep->argplus[1]) );
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1566,7 +1566,7 @@ void command_permaclass(Client *c, const Seperator *sep)
|
|
|
|
c->Message(0,"Target is not a client.");
|
|
|
|
c->Message(0,"Target is not a client.");
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
c->Message(0, "Setting %s's class...Sending to char select.", t->GetName());
|
|
|
|
c->Message(0, "Setting %s's class...Sending to char select.", t->GetName());
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Class change request from %s for %s, requested class:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Class change request from %s for %s, requested class:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
|
|
|
|
t->SetBaseClass(atoi(sep->arg[1]));
|
|
|
|
t->SetBaseClass(atoi(sep->arg[1]));
|
|
|
|
t->Save();
|
|
|
|
t->Save();
|
|
|
|
t->Kick();
|
|
|
|
t->Kick();
|
|
|
|
@ -1588,7 +1588,7 @@ void command_permarace(Client *c, const Seperator *sep)
|
|
|
|
c->Message(0,"Target is not a client.");
|
|
|
|
c->Message(0,"Target is not a client.");
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
c->Message(0, "Setting %s's race - zone to take effect",t->GetName());
|
|
|
|
c->Message(0, "Setting %s's race - zone to take effect",t->GetName());
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Permanant race change request from %s for %s, requested race:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Permanant race change request from %s for %s, requested race:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
|
|
|
|
uint32 tmp = Mob::GetDefaultGender(atoi(sep->arg[1]), t->GetBaseGender());
|
|
|
|
uint32 tmp = Mob::GetDefaultGender(atoi(sep->arg[1]), t->GetBaseGender());
|
|
|
|
t->SetBaseRace(atoi(sep->arg[1]));
|
|
|
|
t->SetBaseRace(atoi(sep->arg[1]));
|
|
|
|
t->SetBaseGender(tmp);
|
|
|
|
t->SetBaseGender(tmp);
|
|
|
|
@ -1612,7 +1612,7 @@ void command_permagender(Client *c, const Seperator *sep)
|
|
|
|
c->Message(0,"Target is not a client.");
|
|
|
|
c->Message(0,"Target is not a client.");
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
c->Message(0, "Setting %s's gender - zone to take effect",t->GetName());
|
|
|
|
c->Message(0, "Setting %s's gender - zone to take effect",t->GetName());
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Permanant gender change request from %s for %s, requested gender:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Permanant gender change request from %s for %s, requested gender:%i", c->GetName(), t->GetName(), atoi(sep->arg[1]) );
|
|
|
|
t->SetBaseGender(atoi(sep->arg[1]));
|
|
|
|
t->SetBaseGender(atoi(sep->arg[1]));
|
|
|
|
t->Save();
|
|
|
|
t->Save();
|
|
|
|
t->SendIllusionPacket(atoi(sep->arg[1]));
|
|
|
|
t->SendIllusionPacket(atoi(sep->arg[1]));
|
|
|
|
@ -1954,7 +1954,7 @@ void command_dbspawn2(Client *c, const Seperator *sep)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
if (sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3)) {
|
|
|
|
if (sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3)) {
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Spawning database spawn");
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Spawning database spawn");
|
|
|
|
uint16 cond = 0;
|
|
|
|
uint16 cond = 0;
|
|
|
|
int16 cond_min = 0;
|
|
|
|
int16 cond_min = 0;
|
|
|
|
if(sep->IsNumber(4)) {
|
|
|
|
if(sep->IsNumber(4)) {
|
|
|
|
@ -2274,7 +2274,7 @@ void command_setlanguage(Client *c, const Seperator *sep)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Set language request from %s, target:%s lang_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Set language request from %s, target:%s lang_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) );
|
|
|
|
uint8 langid = (uint8)atoi(sep->arg[1]);
|
|
|
|
uint8 langid = (uint8)atoi(sep->arg[1]);
|
|
|
|
uint8 value = (uint8)atoi(sep->arg[2]);
|
|
|
|
uint8 value = (uint8)atoi(sep->arg[2]);
|
|
|
|
c->GetTarget()->CastToClient()->SetLanguageSkill( langid, value );
|
|
|
|
c->GetTarget()->CastToClient()->SetLanguageSkill( langid, value );
|
|
|
|
@ -2299,7 +2299,7 @@ void command_setskill(Client *c, const Seperator *sep)
|
|
|
|
c->Message(0, " x = 0 to %d", HIGHEST_CAN_SET_SKILL);
|
|
|
|
c->Message(0, " x = 0 to %d", HIGHEST_CAN_SET_SKILL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Set skill request from %s, target:%s skill_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) );
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Set skill request from %s, target:%s skill_id:%i value:%i", c->GetName(), c->GetTarget()->GetName(), atoi(sep->arg[1]), atoi(sep->arg[2]) );
|
|
|
|
int skill_num = atoi(sep->arg[1]);
|
|
|
|
int skill_num = atoi(sep->arg[1]);
|
|
|
|
uint16 skill_value = atoi(sep->arg[2]);
|
|
|
|
uint16 skill_value = atoi(sep->arg[2]);
|
|
|
|
if(skill_num < HIGHEST_SKILL)
|
|
|
|
if(skill_num < HIGHEST_SKILL)
|
|
|
|
@ -2319,7 +2319,7 @@ void command_setskillall(Client *c, const Seperator *sep)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if (c->Admin() >= commandSetSkillsOther || c->GetTarget()==c || c->GetTarget()==0) {
|
|
|
|
if (c->Admin() >= commandSetSkillsOther || c->GetTarget()==c || c->GetTarget()==0) {
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Set ALL skill request from %s, target:%s", c->GetName(), c->GetTarget()->GetName());
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Set ALL skill request from %s, target:%s", c->GetName(), c->GetTarget()->GetName());
|
|
|
|
uint16 level = atoi(sep->arg[1]);
|
|
|
|
uint16 level = atoi(sep->arg[1]);
|
|
|
|
for(SkillUseTypes skill_num=Skill1HBlunt;skill_num <= HIGHEST_SKILL;skill_num=(SkillUseTypes)(skill_num+1)) {
|
|
|
|
for(SkillUseTypes skill_num=Skill1HBlunt;skill_num <= HIGHEST_SKILL;skill_num=(SkillUseTypes)(skill_num+1)) {
|
|
|
|
c->GetTarget()->CastToClient()->SetSkill(skill_num, level);
|
|
|
|
c->GetTarget()->CastToClient()->SetSkill(skill_num, level);
|
|
|
|
@ -3114,7 +3114,7 @@ void command_listpetition(Client *c, const Seperator *sep)
|
|
|
|
if (!results.Success())
|
|
|
|
if (!results.Success())
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Petition list requested by %s", c->GetName());
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Petition list requested by %s", c->GetName());
|
|
|
|
|
|
|
|
|
|
|
|
if (results.RowCount() == 0)
|
|
|
|
if (results.RowCount() == 0)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -3771,7 +3771,7 @@ void command_lastname(Client *c, const Seperator *sep)
|
|
|
|
|
|
|
|
|
|
|
|
if(c->GetTarget() && c->GetTarget()->IsClient())
|
|
|
|
if(c->GetTarget() && c->GetTarget()->IsClient())
|
|
|
|
t=c->GetTarget()->CastToClient();
|
|
|
|
t=c->GetTarget()->CastToClient();
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "#lastname request from %s for %s", c->GetName(), t->GetName());
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "#lastname request from %s for %s", c->GetName(), t->GetName());
|
|
|
|
|
|
|
|
|
|
|
|
if(strlen(sep->arg[1]) <= 70)
|
|
|
|
if(strlen(sep->arg[1]) <= 70)
|
|
|
|
t->ChangeLastName(sep->arg[1]);
|
|
|
|
t->ChangeLastName(sep->arg[1]);
|
|
|
|
@ -4869,7 +4869,7 @@ void command_manaburn(Client *c, const Seperator *sep)
|
|
|
|
target->Damage(c, nukedmg, 2751, SkillAbjuration/*hackish*/);
|
|
|
|
target->Damage(c, nukedmg, 2751, SkillAbjuration/*hackish*/);
|
|
|
|
c->Message(4,"You unleash an enormous blast of magical energies.");
|
|
|
|
c->Message(4,"You unleash an enormous blast of magical energies.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Manaburn request from %s, damage: %d", c->GetName(), nukedmg);
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Manaburn request from %s, damage: %d", c->GetName(), nukedmg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@ -5221,7 +5221,7 @@ void command_scribespells(Client *c, const Seperator *sep)
|
|
|
|
t->Message(0, "Scribing spells to spellbook.");
|
|
|
|
t->Message(0, "Scribing spells to spellbook.");
|
|
|
|
if(t != c)
|
|
|
|
if(t != c)
|
|
|
|
c->Message(0, "Scribing spells for %s.", t->GetName());
|
|
|
|
c->Message(0, "Scribing spells for %s.", t->GetName());
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Scribe spells request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level);
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Scribe spells request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level);
|
|
|
|
|
|
|
|
|
|
|
|
for(curspell = 0, book_slot = t->GetNextAvailableSpellBookSlot(), count = 0; curspell < SPDAT_RECORDS && book_slot < MAX_PP_SPELLBOOK; curspell++, book_slot = t->GetNextAvailableSpellBookSlot(book_slot))
|
|
|
|
for(curspell = 0, book_slot = t->GetNextAvailableSpellBookSlot(), count = 0; curspell < SPDAT_RECORDS && book_slot < MAX_PP_SPELLBOOK; curspell++, book_slot = t->GetNextAvailableSpellBookSlot(book_slot))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -5278,7 +5278,7 @@ void command_scribespell(Client *c, const Seperator *sep) {
|
|
|
|
if(t != c)
|
|
|
|
if(t != c)
|
|
|
|
c->Message(0, "Scribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName());
|
|
|
|
c->Message(0, "Scribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName());
|
|
|
|
|
|
|
|
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Scribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName());
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Scribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName());
|
|
|
|
|
|
|
|
|
|
|
|
if (spells[spell_id].classes[WARRIOR] != 0 && spells[spell_id].skill != 52 && spells[spell_id].classes[t->GetPP().class_ - 1] > 0 && !IsDiscipline(spell_id)) {
|
|
|
|
if (spells[spell_id].classes[WARRIOR] != 0 && spells[spell_id].skill != 52 && spells[spell_id].classes[t->GetPP().class_ - 1] > 0 && !IsDiscipline(spell_id)) {
|
|
|
|
book_slot = t->GetNextAvailableSpellBookSlot();
|
|
|
|
book_slot = t->GetNextAvailableSpellBookSlot();
|
|
|
|
@ -5325,7 +5325,7 @@ void command_unscribespell(Client *c, const Seperator *sep) {
|
|
|
|
if(t != c)
|
|
|
|
if(t != c)
|
|
|
|
c->Message(0, "Unscribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName());
|
|
|
|
c->Message(0, "Unscribing spell: %s (%i) for %s.", spells[spell_id].name, spell_id, t->GetName());
|
|
|
|
|
|
|
|
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Unscribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName());
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Unscribe spell: %s (%i) request for %s from %s.", spells[spell_id].name, spell_id, t->GetName(), c->GetName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
t->Message(13, "Unable to unscribe spell: %s (%i) from your spellbook. This spell is not scribed.", spells[spell_id].name, spell_id);
|
|
|
|
t->Message(13, "Unable to unscribe spell: %s (%i) from your spellbook. This spell is not scribed.", spells[spell_id].name, spell_id);
|
|
|
|
@ -7862,7 +7862,7 @@ void command_traindisc(Client *c, const Seperator *sep)
|
|
|
|
t->Message(0, "Training disciplines");
|
|
|
|
t->Message(0, "Training disciplines");
|
|
|
|
if(t != c)
|
|
|
|
if(t != c)
|
|
|
|
c->Message(0, "Training disciplines for %s.", t->GetName());
|
|
|
|
c->Message(0, "Training disciplines for %s.", t->GetName());
|
|
|
|
Log.Log(EQEmuLogSys::Normal, "Train disciplines request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level);
|
|
|
|
Log.DebugCategory(EQEmuLogSys::General, EQEmuLogSys::Normal, "Train disciplines request for %s from %s, levels: %u -> %u", t->GetName(), c->GetName(), min_level, max_level);
|
|
|
|
|
|
|
|
|
|
|
|
for(curspell = 0, count = 0; curspell < SPDAT_RECORDS; curspell++)
|
|
|
|
for(curspell = 0, count = 0; curspell < SPDAT_RECORDS; curspell++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|