summaryrefslogtreecommitdiff
path: root/npc/003-2/lua.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-28 17:17:49 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-28 17:17:49 -0300
commit52bbfef2b7904279dc9ceef32e878526b9fe8f95 (patch)
tree4859ecd1c01ce0e380c24f511a567db609b2fcfe /npc/003-2/lua.txt
parent7e147599202ad7a7e2e2c27909c489ccf50dcea3 (diff)
downloadserverdata-52bbfef2b7904279dc9ceef32e878526b9fe8f95.tar.gz
serverdata-52bbfef2b7904279dc9ceef32e878526b9fe8f95.tar.bz2
serverdata-52bbfef2b7904279dc9ceef32e878526b9fe8f95.tar.xz
serverdata-52bbfef2b7904279dc9ceef32e878526b9fe8f95.zip
Lua coins + reward repricing
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$);