New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-opening: Unloadnpc does not allow re-loading of NPC #203
Comments
|
why don't just remove that personally I never use that command nowadays, I prefer |
|
Ah, thanks for clarifying that up, Cydh. Perhaps @unloadnpc should be depreciated in favor of @unloadnpcfile then? |
|
i added @reloadnpc a long time ago on my server, and i think it would be a good idea to implement it on rathena. all it does is just @unloadnpcfile and @loadnpc (copy&pasta) |
|
I believe @unloadnpcfile wouldnt remove any permanent monster spawn script. rightclick > kill , doesnt alway work. I mean under certain circumstance it is not available depend on client diff I think. ** but I like the idea for using @reloadnpc too xD |
|
I created my own reload - @refreshfile I took both @unloadnpcfile and @loadnpc commands from source code and combined it into the one command. Which runs both unloadnpcfile first and load npcs automatically. Saves huge amount of time when testing an NPC and need it to refresh. |
|
thats exactly what i wrote xD |
|
I see, nice to know others have the same idea. This should be added, don't know why not. Also @unloadnpc is very handy when you have a set of npcs in one file but need to emergency kill one due to exploit or bug, not that it happens often but nice option to have. |
|
@refreshnpc will be awesome command for different purposes on the fly. |
|
Is anyone else experiencing @unloadnpcfile sometimes failing after a reload of a script? @unloadnpcfile npc/custom/warper.txt It seems like when it fails, it never works again. |
|
@raynra hmm never |
|
err yea, somehow confirmed for CentOS. for @loadnpc -> @unloadnpcfile, the failed to @loadnpc again. |
|
When @loadnpc fails because the file is already loaded, the current message is: Suggestion - change the message to something like "File is already loaded." or "Script is already loaded." |
|
This issue still exists. my current revision is: 0d8a7c0 |
confirm |
|
Hope this will be fixed soon... |
|
confirmed Ruining my day since > 1 Year |

For example:
@loadnpc npc/custom/resetnpc.txt
@unloadnpc Reset Girl
@loadnpc npc/custom/resetnpc.txt <-- will not work second time
This was broken back in August due to:
402170c
This was supposed to fix it:
https://rathena.org/board/tracker/issue-9311-loadnpcfile-bug/?gopid=28440#entry28440
The text was updated successfully, but these errors were encountered: