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
*delwall now give a friendly warning to remind non-existent wall #2017
Conversation
ehh .... woot ... why go to stable branch ... let me recheck what happening ... EDIT: okies ~ |
rathena/rathena@6ceb1bd |
|
||
if (!map->iwall_remove(name)) { | ||
ShowWarning("buildin_delwall: Non-existent '%s' provided.\n", name); | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you already showing warning, isn't it better to return true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rathena there also SCRIPT_CMD_FAILURE, so what's wrong ?
return false just means print an info message of the source npc
#868
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cos spammy on console kinda
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that printing the message about the source NPC makes sense (so you can easily find and fix the broken script that causes the warnings)
Pull Request Prelude
Changes Proposed
*delwall now give a friendly warning to remind non-existent wall
Affected Branches:
master
Issues addressed:
rathena/rathena#3025
in my battleground script, after I *setwall, but I delwall twice,
and the server didn't even print any error message
Known Issues and TODO List
check the 3rd commit, I missed that delwall thing
and I blame it on the script command itself XD