Fix the ActorSNO not found when the resquest come from QuestRequest method.

This commit is contained in:
Pablo Rigueto 2025-09-30 13:04:31 -03:00
parent a7901ee2b9
commit 8864741d3d
2 changed files with 30 additions and 26 deletions

View File

@ -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`:

View File

@ -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