Skip to content
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

Cleaned up custom battleground scripts #3025

Merged
merged 4 commits into from Apr 11, 2018
Merged

Conversation

secretdataz
Copy link
Member

Cleaned up AnnieRuru's BG scripts.

@secretdataz secretdataz added the status:code-review Pull Request that requires reviewing from other developers before being pushed to master label Apr 2, 2018
Copy link
Contributor

@AnnieRuru AnnieRuru left a comment

Choose a reason for hiding this comment

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

sry I should've use single line comment, not request change


// delay before match begins
sleep 6000;
mapannounce "bat_a01", "The rules are simple. The first team to break the opponent's Emperium wins!", bc_map;
sleep 3000;
for ( .@i = 5; .@i > 0; .@i-- ) {
for ( .@i = 5; .@i > 0; --.@i ) {
Copy link
Contributor

@AnnieRuru AnnieRuru Apr 2, 2018

Choose a reason for hiding this comment

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

just want you guys to know why I did this
HerculesWS/Hercules#872

By the way, on an unrelated note, you might want to replace .@i++ with ++.@i, since it's more efficient (the first one needs to cache the previous value of .@i to return it, while the second one doesn't)

* Turn the GvG flag off before setting the Battleground flag to avoid stack warning.
@Atemo
Copy link
Contributor

Atemo commented Apr 10, 2018

Anything left to be done?

@AnnieRuru
Copy link
Contributor

I thought I look through the script over 5 times before I press the open issue button
yet the delwall thing still can slip through my eyes ~ give you a rep

now this is interesting .... delwall should throw an error if the wall has never been set
I guess this is another bug ?

void map_iwall_remove(const char *wall_name)
hmm ... maybe should change to bool map_iwall_remove and return true/false

See Hercules/Hercules#2017
@Lemongrass3110 Lemongrass3110 merged commit e2b9e42 into master Apr 11, 2018
@Lemongrass3110 Lemongrass3110 deleted the cleanup/annieruru_bg branch April 11, 2018 09:22
@Lemongrass3110 Lemongrass3110 added component:script A fault that lies within the scripts of rAthena mode:renewal A fault that exists within the renewal mode mode:prerenewal A fault that exists within the pre-renewal mode type:enhancement Issue that is an enhancement to rAthena and removed status:code-review Pull Request that requires reviewing from other developers before being pushed to master labels Apr 11, 2018
CrazyBS pushed a commit to CrazyBS/rathena that referenced this pull request Apr 16, 2018
Added a warning to script command delwall
CrazyBS added a commit to CrazyBS/rathena that referenced this pull request Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:script A fault that lies within the scripts of rAthena mode:prerenewal A fault that exists within the pre-renewal mode mode:renewal A fault that exists within the renewal mode type:enhancement Issue that is an enhancement to rAthena
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants