Merge pull request #217 from rgto/community

Fix the ActorSNO not found when the resquest come from QuestRequest method
This commit is contained in:
Enthusiast 2025-09-30 13:45:04 -03:00 committed by GitHub
commit 191408757f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 26 deletions

View File

@ -2,31 +2,31 @@
## Account Commands ## Account Commands
| Command Group | Command | Example | Description | | Command Group | Command | Example | Description |
| -------------- | -------------- | ----------------------------------- | ---------------------------------------------- | | -------------- | -------------- | --------------------------------------| ---------------------------------------------- |
| Account Group | `show` | `!account show test@` | Shows information about given account | | 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 | | | `add` | `!account add test@ 12345678 test` | Allows you to add a new user account |
| | `setpassword` | `!account setpassword test@ 123654` | Allows you to set a new password for 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 | | | `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 | | | `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 | | Mute Command | `mute` | `!mute test@` | Disable chat functions for user |
## Game Commands ## Game Commands
| Command Group | Command | Example | Description | | Command Group | Command | Example | Description |
| ----------------------- | ----------- | ------------------------ | ------------------------------------------------------------ | | ----------------------- | ----------- | ------------------------ | ---------------------------------------------------------------|
| Spawn command | `spawn` | `!spawn 6632` | Spawn a mob by ID | | Spawn command | `spawn` | `!spawn 6632` | Spawn a mob by ID |
| Level up command | `levelup` | `!levelup 2` | Levels you character | | Level up command | `levelup` | `!levelup 2` | Levels you character |
| Unlock Artisans command | `unlockart` | `!unlockart` | Unlock all artisans for you in Campaign | | Unlock Artisans command | `unlockart` | `!unlockart` | Unlock all artisans for you in Campaign |
| Platinum command | `platinum` | `!platinum 100` | Platinum for you | | Platinum command | `platinum` | `!platinum 100` | Platinum for you |
| Gold command | `gold` | `!gold 100` | Gold for you? | | Gold command | `gold` | `!gold 100` | Gold for you? |
| Item command | `item` | `!item p71_ethereal_10` | Get any Item by Name | | 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 | | Teleport command | `tp` | `!tp 71150` | Teleport character to World by ID |
| SpeedHack command | `speed` | `!speed 2` | Increase you speed character | | 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 Command | `lookup` | `!lookup item axe` | Display all founded in game objects with entered text in Name |
| | | `!lookup world Tristram` | | | | | `!lookup world Tristram` | |
| | | `!lookup actor zombie` | | | | | `!lookup actor zombie` | |
| | | `!lookup power Punch` | | | | | `!lookup power Punch` | |
# All Commands # All Commands
Available commands from `!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.MapSystem;
using DiIiS_NA.GameServer.GSSystem.PlayerSystem; using DiIiS_NA.GameServer.GSSystem.PlayerSystem;
using DiIiS_NA.GameServer.MessageSystem; using DiIiS_NA.GameServer.MessageSystem;
using System;
namespace DiIiS_NA.GameServer.GSSystem.ActorSystem namespace DiIiS_NA.GameServer.GSSystem.ActorSystem
{ {
@ -48,9 +49,12 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem
protected override void QuestProgress() protected override void QuestProgress()
{ {
if (SNO == ActorSno._spawner_zolt_centerpiece) return; 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) if (World.Game.QuestManager.IsInQuestRange(_questRange) && !triggered)
{ {
Spawn(); Spawn();
@ -74,7 +78,7 @@ namespace DiIiS_NA.GameServer.GSSystem.ActorSystem
{ {
triggered = true; triggered = true;
if (ActorToSpawnSNO == null) if (ActorToSpawnSNO == null)
{ {
Logger.Trace("Triggered spawner with no ActorToSpawnSNO found."); Logger.Trace("Triggered spawner with no ActorToSpawnSNO found.");
//Try revealing this //Try revealing this