summaryrefslogtreecommitdiff
path: root/npc/003-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-03 14:19:23 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-03 14:19:23 -0300
commita0343cfafd2477f2cef58a4736609d7d98a055cf (patch)
treec6dcb8aed9007e247a8903a3f7d64f4384b563d8 /npc/003-2
parenta81f9737b27a6389f4e33252efb0c3a1564569d8 (diff)
downloadserverdata-a0343cfafd2477f2cef58a4736609d7d98a055cf.tar.gz
serverdata-a0343cfafd2477f2cef58a4736609d7d98a055cf.tar.bz2
serverdata-a0343cfafd2477f2cef58a4736609d7d98a055cf.tar.xz
serverdata-a0343cfafd2477f2cef58a4736609d7d98a055cf.zip
NEW atcommand: @strangecoin - receive the 30 daily strange coins for GM Event
Diffstat (limited to 'npc/003-2')
-rw-r--r--npc/003-2/lua.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index 1388d8c1f..606ac8f6e 100644
--- a/npc/003-2/lua.txt
+++ b/npc/003-2/lua.txt
@@ -44,6 +44,11 @@ L_GMItems:
goto L_Menu;
L_GMEvent:
+OnGMCoinClaim:
+ if (!is_gm() || #GMEVENT_T > gettimetick(2)) {
+ dispbottom l("ERROR: You already took the coins today. Please wait @@ more.", FuzzyTime(#GMEVENT_T)), 1;
+ end;
+ }
#GMEVENT_T=gettimetick(2)+(60*60*24);
getitem StrangeCoin, 30;
//logmes(strcharinfo(0)+" just took thirty event coins.");
@@ -398,6 +403,7 @@ OnInit:
setunitdata(.@npcId, UDT_WEAPON, BugSlayer);
setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
setunitdata(.@npcId, UDT_HAIRCOLOR, 5);
+ bindatcmd "strangecoin", "Lua#003-2::OnGMCoinClaim", 60, 100, 1;
.sex = G_FEMALE;
.distance = 4;