From b252965292e08718096289d76547d7c68d442e94 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 9 Feb 2019 00:16:10 -0200 Subject: Send chocolate boxes - OK Valentine Day event is officially working, just without rewards --- npc/001-11/Demure.txt | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) (limited to 'npc') diff --git a/npc/001-11/Demure.txt b/npc/001-11/Demure.txt index 8e14066b3..7c00f9e1a 100644 --- a/npc/001-11/Demure.txt +++ b/npc/001-11/Demure.txt @@ -32,10 +32,73 @@ mesn; mesq l("How many chocolate do you want to send? You currenly have: @@", countitem(BoxOfChocolates)); input @Val_Ammo; + mes ""; + if (@Val_Ammo > countitem(BoxOfChocolates)) { mesc l("You don't have that many!"); return; } + + do { + mesn; + mesq l("To whom you want to send @@ boxes? Cannot be yourself!", @Val_Ammo); + mesc l("Leave blank to abort."); + input .@ref$; + //debugmes "Sending chocolate to: "+.@ref$; + mes ""; + if (.@ref$ != "") { + .@ref=gf_accid(strip(.@ref$)); + if (.@ref > 0) { + if (.@ref == getcharid(3)) { + mesn; + mesq l("I said it cannot be yourself...