Skip to content

Conversation

@Emistry
Copy link
Member

@Emistry Emistry commented May 17, 2019

Pull Request Prelude

Changes Proposed

  • @reloadnpc <path> - unloads all NPCs in a file and reload it again.
  • Be aware that mapflags and monster spawned directly are not removed.

Issues addressed:
none

@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

@Emistry Emistry added component:core Affecting the Hercules core (i.e. not the game mechanics directly) component:documentation Affecting the documentation in the doc/ folder labels May 17, 2019

FILE *fp;
// check if script file exists
if ((fp = fopen(message, "r")) == NULL) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code fp = fopen(message, "r") can be moved into line with FILE *fp as FILE *fp = fopen(message, "r")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- `@reloadnpc <path>` - unloads all NPCs in a file and reload it again.
- Be aware that mapflags and monster spawned directly are not removed.
@Emistry Emistry force-pushed the atcommand_reloadnpc branch from da788c0 to f909e40 Compare May 18, 2019 14:16
@Cyanide0210
Copy link
Contributor

This probably could be merged with @unloadnpcfile and @loadnpcfile maybe? something like..

@npcfile load npc/lols/fasdfas.txt or @npcfile 1 npc/lols/fasdfas.txt
@npcfile reload npc/lols/fasdfas.txt or @npcfile 2 npc/lols/fasdfas.txt
@npcfile unload npc/lols/fasdfas.txt or @npcfile 3 npc/lols/fasdfas.txt

prob a single command with arguments, I dont think this command is used on anything so we should be allowed to change them

maybe with constants or maybe just @file making it possible to do more things with it? idk why 3 commands but i guess thats how things are?

@MishimaHaruna MishimaHaruna added this to the Release v2019.06.30 milestone Jun 30, 2019
@MishimaHaruna MishimaHaruna merged commit 33b0658 into HerculesWS:master Jun 30, 2019
@Emistry Emistry deleted the atcommand_reloadnpc branch July 1, 2019 02:32
@dastgirp dastgirp mentioned this pull request Jul 30, 2019
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:core Affecting the Hercules core (i.e. not the game mechanics directly) component:documentation Affecting the documentation in the doc/ folder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants