diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-05-05 21:10:17 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-05-05 21:10:17 -0300 |
commit | 7d3d3ce8d9243594e7e79e118b4714aaccd17dba (patch) | |
tree | f8d07983f36759dc0e44e43c79d68f8004a004f6 /npc/003-2 | |
parent | 8bb5f860abd1f85f8d062294cad947210ed42617 (diff) | |
download | serverdata-7d3d3ce8d9243594e7e79e118b4714aaccd17dba.tar.gz serverdata-7d3d3ce8d9243594e7e79e118b4714aaccd17dba.tar.bz2 serverdata-7d3d3ce8d9243594e7e79e118b4714aaccd17dba.tar.xz serverdata-7d3d3ce8d9243594e7e79e118b4714aaccd17dba.zip |
Initial version of Sponsor Necklace
Diffstat (limited to 'npc/003-2')
-rw-r--r-- | npc/003-2/lua.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt index c4207157e..cd06751e8 100644 --- a/npc/003-2/lua.txt +++ b/npc/003-2/lua.txt @@ -16,6 +16,7 @@ L_Menu: rif(is_gm(), l("I need a GM set, please!")), L_GMItems, rif(is_gm() && #GMEVENT_T <= gettimetick(2), l("I plan in doing an event! Give me the coins!")), L_GMEvent, rif(is_staff(), l("Tell people the name of a new hero.")), L_NewHero, + rif((getgmlevel() == 1 || is_admin()) && #T_SPONSOR <= gettimetick(2), l("I want a Sponsor Necklace.")), L_Sponsor, l("What alliance?"),-; mes ""; mesn; @@ -53,6 +54,19 @@ L_NewHero: $MOST_HEROIC$ = .@MH$; goto L_Menu; +L_Sponsor: + #T_SPONSOR=gettimetick(2)+(60*60*24*30); + rentitem "SponsorNecklace", (60*60*24*30); + logmes(strcharinfo(0)+" just took a Sponsor Necklace."); + logmes(strcharinfo(0)+" just took a Sponsor Necklace.", LOGMES_ATCOMMAND); + mes ""; + mesn; + mesq lg("Here it is, miss.", "Here it is, mister."); + mes col("This item will be returned in 30 days counting from now, and you will need to take another.", 9); + mes col("It cannot be dropped, traded, sold, but you can store it and use with same account.", 9); + mes ""; + goto L_Menu; + L_Info: mes ""; mesn; |