summaryrefslogtreecommitdiff
path: root/npc/003-2/lua.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-2/lua.txt')
-rw-r--r--npc/003-2/lua.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index 5230ff908..7392a1eec 100644
--- a/npc/003-2/lua.txt
+++ b/npc/003-2/lua.txt
@@ -11,6 +11,7 @@ L_Menu:
menu
l("Ok, see you later."),L_Close,
rif(getgmlevel(), l("I need a GM set, please!")), L_GMItems,
+ rif(getgmlevel() && #GMEVENT_T <= gettimetick(2), l("I plan in doing an event! Give me the coins!")), L_GMEvent,
rif(getgmlevel(), l("Tell people the name of a new hero.")), L_NewHero,
l("What alliance?"),-;
mes "";
@@ -29,6 +30,17 @@ L_GMItems:
mes "";
goto L_Menu;
+L_GMEvent:
+ #GMEVENT_T=gettimetick(2)+(60*60*24);
+ getitem "StrangeCoin", 20;
+ logmes(strcharinfo(0)+" just took twenty event coins.");
+ logmes(strcharinfo(0)+" just took twenty event coins.", LOGMES_ATCOMMAND);
+ mes "";
+ mesn;
+ mesq lg("Here they are, miss.", "Here they are, mister.");
+ mes "";
+ goto L_Menu;
+
L_NewHero:
mes "";
mes l("Current hero: @@", $MOST_HEROIC$);