summaryrefslogtreecommitdiff
path: root/npc/other/marriage.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/other/marriage.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/other/marriage.txt')
-rw-r--r--npc/other/marriage.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/other/marriage.txt b/npc/other/marriage.txt
index 0f640af2a..42c817957 100644
--- a/npc/other/marriage.txt
+++ b/npc/other/marriage.txt
@@ -188,7 +188,7 @@ prt_church,97,100,4 script Wedding Staff#w 1_F_LIBRARYGIRL,{
mes "name of your partner using";
mes "the method I just described.";
next;
- input .@partner$;
+ input(.@partner$);
mes "[Marry Happy]";
mes "Alright, after you've";
mes "decided to get married,";
@@ -329,7 +329,7 @@ prt_church,97,100,4 script Wedding Staff#w 1_F_LIBRARYGIRL,{
mes "down your exact name here.";
next;
while(1) {
- input .@name$;
+ input(.@name$);
if (.@name$ == strcharinfo(PC_NAME))
break;
mes "[Marry Happy]";
@@ -599,7 +599,7 @@ prt_church,100,128,4 script Bishop#w 1_M_PASTOR,{
mes "her and protect her. Now, may";
mes "I know the name of your bride?";
next;
- input $@wed_bride$;
+ input($@wed_bride$);
mes "[Vomars]";
mes "Mr. " + strcharinfo(PC_NAME) + "...";
mes "Do you swear on your life";