summaryrefslogtreecommitdiff
path: root/npc/quests/quests_prontera.txt
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2019-06-16 18:44:45 +0800
committerHaru <haru@dotalux.com>2019-07-28 18:17:09 +0200
commit371d056df80b6f83484534f64883c3d020c4112d (patch)
tree20d38a8581f3a6159157bfa6644027d4007485bc /npc/quests/quests_prontera.txt
parentef8bc3a8375d4fe9a5f75faf951b3deecb891d57 (diff)
downloadhercules-371d056df80b6f83484534f64883c3d020c4112d.tar.gz
hercules-371d056df80b6f83484534f64883c3d020c4112d.tar.bz2
hercules-371d056df80b6f83484534f64883c3d020c4112d.tar.xz
hercules-371d056df80b6f83484534f64883c3d020c4112d.zip
Sanitize handling of the input() values.
- avoid potential hacks for old scripts that use `input()` script commands. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'npc/quests/quests_prontera.txt')
-rw-r--r--npc/quests/quests_prontera.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/quests/quests_prontera.txt b/npc/quests/quests_prontera.txt
index b2fefb3cf..f2743233b 100644
--- a/npc/quests/quests_prontera.txt
+++ b/npc/quests/quests_prontera.txt
@@ -1043,7 +1043,7 @@ morocc_in,45,126,3 script Historian#prt02 4_F_GON,{
mes "^FF0000*swallowed the serpent.*^000000";
mes "......................";
next;
- input .@answer$;
+ input(.@answer$);
if (.@answer$ == "Then the eagle built its nest.") {
mes "[Historian Rodafrian]";
mes "Really? That makes";
@@ -1078,7 +1078,7 @@ morocc_in,45,126,3 script Historian#prt02 4_F_GON,{
mes "that you heard from Karlomoff.^000000";
next;
mes "["+strcharinfo(PC_NAME)+"]";
- input .@line$;
+ input(.@line$);
if (.@line$ == "The great serpent swallowed the sea.") {
.@total += 1;
mes "*The great serpent*";
@@ -1086,7 +1086,7 @@ morocc_in,45,126,3 script Historian#prt02 4_F_GON,{
}
else mes "* "+.@line$+"*";
- input .@line$;
+ input(.@line$);
if (.@line$ == "The eagle of the rainbow swallowed the serpent.") {
.@total += 1;
mes "*The eagle of the rainbow*";
@@ -1094,14 +1094,14 @@ morocc_in,45,126,3 script Historian#prt02 4_F_GON,{
}
else mes "*"+.@line$+"*";
- input .@line$;
+ input(.@line$);
if (.@line$ == "Then the eagle built its nest.") {
.@total += 1;
mes "*Then the eagle built its nest.*";
}
else mes "*"+.@line$+"*";
- input .@line$;
+ input(.@line$);
if (.@line$ == "A nest upon the swallowed sea.") {
.@total += 1;
mes "*A nest upon the swallowed sea.*";
@@ -1514,7 +1514,7 @@ mjolnir_01,135,168,3 script Historian#prt03 4_M_SAGE_A,{
S_Song:
mes "["+strcharinfo(PC_NAME)+"]";
- input .@line$;
+ input(.@line$);
if (.@line$ == "The great serpent swallowed the sea.") {
.@total += 1;
mes "*The great serpent*";
@@ -1522,7 +1522,7 @@ S_Song:
}
else mes "*"+.@line$+"*";
- input .@line$;
+ input(.@line$);
if (.@line$ == "The eagle of the rainbow swallowed the serpent.") {
.@total += 1;
mes "*The eagle of the rainbow*";
@@ -1530,11 +1530,11 @@ S_Song:
}
else mes "*"+.@line$+"*";
- input .@line$;
+ input(.@line$);
if (.@line$ == "Then the eagle built its nest.") .@total += 1;
mes "*"+.@line$+"*";
- input .@line$;
+ input(.@line$);
if (.@line$ == "A nest upon the swallowed sea.") .@total += 1;
mes "*"+.@line$+"*";