From 7d3d3ce8d9243594e7e79e118b4714aaccd17dba Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 5 May 2018 21:10:17 -0300 Subject: Initial version of Sponsor Necklace --- npc/003-2/lua.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'npc/003-2/lua.txt') 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; -- cgit v1.2.3-60-g2f50