From 8864741d3d78a6a3440da4ff9d67e2c31bc48d09 Mon Sep 17 00:00:00 2001 From: Pablo Rigueto Date: Tue, 30 Sep 2025 13:04:31 -0300 Subject: [PATCH] Fix the ActorSNO not found when the resquest come from QuestRequest method. --- docs/commands-list.md | 44 +++++++++---------- .../GSSystem/ActorSystem/Spawner.cs | 12 +++-- 2 files changed, 30 insertions(+), 26 deletions(-) diff --git a/docs/commands-list.md b/docs/commands-list.md index 311c4e0..9dd4de6 100644 --- a/docs/commands-list.md +++ b/docs/commands-list.md @@ -2,31 +2,31 @@ ## Account Commands -| Command Group | Command | Example | Description | -| -------------- | -------------- | ----------------------------------- | ---------------------------------------------- | -| Account Group | `show` | `!account show test@` | Shows information about given account | -| | `add` | `!account add test@ 123456 test` | Allows you to add a new user account | -| | `setpassword` | `!account setpassword test@ 123654` | Allows you to set a new password for account | -| | `setbtag` | `!account setbtag test@ NonTest` | Allows you to change battle tag for account | -| | `setuserlevel` | `!account setuserlevel admin` | Allows you to set a new user level for account | -| Mute Command | `mute` | `!mute test@` | Disable chat functions for user | +| Command Group | Command | Example | Description | +| -------------- | -------------- | --------------------------------------| ---------------------------------------------- | +| Account Group | `show` | `!account show test@` | Shows information about given account | +| | `add` | `!account add test@ 12345678 test` | Allows you to add a new user account | +| | `setpassword` | `!account setpassword test@ 12345678` | Allows you to set a new password for account | +| | `setbtag` | `!account setbtag test@ NonTest` | Allows you to change battle tag for account | +| | `setuserlevel` | `!account setuserlevel admin test@` | Allows you to set a new user level for account | +| Mute Command | `mute` | `!mute test@` | Disable chat functions for user | ## Game Commands -| Command Group | Command | Example | Description | -| ----------------------- | ----------- | ------------------------ | ------------------------------------------------------------ | -| Spawn command | `spawn` | `!spawn 6632` | Spawn a mob by ID | -| Level up command | `levelup` | `!levelup 2` | Levels you character | -| Unlock Artisans command | `unlockart` | `!unlockart` | Unlock all artisans for you in Campaign | -| Platinum command | `platinum` | `!platinum 100` | Platinum for you | -| Gold command | `gold` | `!gold 100` | Gold for you? | -| Item command | `item` | `!item p71_ethereal_10` | Get any Item by Name | -| Teleport command | `tp` | `!tp 71150` | Teleport character to World by ID | -| SpeedHack command | `speed` | `!speed 2` | Increase you speed character | -| Lookup Command | `lookup` | `!lookup item axe` | Display all founded in game objects with entered text in Name | -| | | `!lookup world Tristram` | | -| | | `!lookup actor zombie` | | -| | | `!lookup power Punch` | | +| Command Group | Command | Example | Description | +| ----------------------- | ----------- | ------------------------ | ---------------------------------------------------------------| +| Spawn command | `spawn` | `!spawn 6632` | Spawn a mob by ID | +| Level up command | `levelup` | `!levelup 2` | Levels you character | +| Unlock Artisans command | `unlockart` | `!unlockart` | Unlock all artisans for you in Campaign | +| Platinum command | `platinum` | `!platinum 100` | Platinum for you | +| Gold command | `gold` | `!gold 100` | Gold for you? | +| Item command | `item` | `!item p71_ethereal_10` | Get any Item by Name see the file items-identification-doc.md | +| Teleport command | `tp` | `!tp 71150` | Teleport character to World by ID | +| SpeedHack command | `speed` | `!speed 2` | Increase you speed character | +| Lookup Command | `lookup` | `!lookup item axe` | Display all founded in game objects with entered text in Name | +| | | `!lookup world Tristram` | | +| | | `!lookup actor zombie` | | +| | | `!lookup power Punch` | | # All Commands Available commands from `!commands`: diff --git a/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Spawner.cs b/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Spawner.cs index db30e04..dcf5a7b 100644 --- a/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Spawner.cs +++ b/src/DiIiS-NA/D3-GameServer/GSSystem/ActorSystem/Spawner.cs @@ -7,6 +7,7 @@ using DiIiS_NA.GameServer.Core.Types.TagMap; using DiIiS_NA.GameServer.GSSystem.MapSystem; using DiIiS_NA.GameServer.GSSystem.PlayerSystem; using DiIiS_NA.GameServer.MessageSystem; +using System; namespace DiIiS_NA.GameServer.GSSystem.ActorSystem { @@ -48,9 +49,12 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem protected override void QuestProgress() { if (SNO == ActorSno._spawner_zolt_centerpiece) return; - //Spawn if this is spawner - try - { + + ActorToSpawnSNO = new SNOHandle(SNOGroup.Actor, (int)SNO); + + //Spawn if this is spawner + try + { if (World.Game.QuestManager.IsInQuestRange(_questRange) && !triggered) { Spawn(); @@ -74,7 +78,7 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem { triggered = true; - if (ActorToSpawnSNO == null) + if (ActorToSpawnSNO == null) { Logger.Trace("Triggered spawner with no ActorToSpawnSNO found."); //Try revealing this