Minor fixes to spell and mount init (#863)

* Make summon imp non-temporary

* Remove horse mount from troll

* Set facing to during spell casting

* Allow rpg status command

* Init unarmed skill and fix skill clear

* Cast delay after interrupt spell
This commit is contained in:
Yunfan Li
2025-01-13 01:03:27 +08:00
committed by GitHub
parent 4311dabe24
commit 568592f188
5 changed files with 24 additions and 12 deletions

View File

@@ -18,8 +18,11 @@
bool TellRpgStatusAction::Execute(Event event)
{
Player* owner = event.getOwner();
if (!owner)
return false;
std::string out = botAI->rpgInfo.ToString();
botAI->TellMasterNoFacing(out);
bot->Whisper(out.c_str(), LANG_UNIVERSAL, owner);
return true;
}

View File

@@ -24,7 +24,7 @@ protected:
// const int32 setGrindInterval = 5 * 60 * 1000;
// const int32 setNpcInterval = 1 * 60 * 1000;
const int32 statusNearNpcDuration = 5 * 60 * 1000;
const int32 statusNearRandomDuration = 2 * 60 * 1000;
const int32 statusNearRandomDuration = 5 * 60 * 1000;
const int32 statusRestDuration = 30 * 1000;
WorldPosition SelectRandomGrindPos();
WorldPosition SelectRandomInnKeeperPos();