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

Optimized Swordsman tutorial quest #8251

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Daegaladh
Copy link
Member

@Daegaladh Daegaladh commented Apr 13, 2024

  • Addressed Issue(s): N/A
  • Server Mode: Both
  • Description of Pull Request: Several optimizations to Swordsman tutorial quest

@Daegaladh Daegaladh 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 labels Apr 13, 2024
@Daegaladh Daegaladh changed the title Optimized check in Swordsman tutorial quest Optimized Swordsman tutorial quest Apr 13, 2024
npc/quests/first_class/tu_sword.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@Atemo Atemo left a comment

Choose a reason for hiding this comment

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

(Quick review)

mes "should go second?";
next;
.@select = select(implode(.@menu$, ":")) - 1;
.@code$[1] = inarray(.@names_array$, .@menu$[.@select]);
Copy link
Contributor

Choose a reason for hiding this comment

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

inarray return int it's strange to store it in str

.@code$[1] = inarray(.@names_array$, .@menu$[.@select]);
deletearray .@menu$[.@select], 1;
mes "[Dequ'ee]";
mes .@names_array$[.@code$[1]] +"'s...?";
Copy link
Contributor

Choose a reason for hiding this comment

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

index can't be string in this engine

@@ -2068,7 +1428,8 @@ geffen,154,143,3 script Dequ'ee 734,{
mes "be the message I'm supposed to receive from Shurack. I need his exact message or I can't send";
mes "a response...";
close;
case 2:
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

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

For me else / else if should only be used if the code continue after the previous condition.

@Daegaladh Daegaladh added the status:inprogress Issue that has begun resolution by a developer label Apr 15, 2024
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 status:inprogress Issue that has begun resolution by a developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants