diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-17 21:56:29 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-17 21:56:29 -0300 |
commit | d0c98e038a9652be3b3a6fcaeb0e255b08e322b1 (patch) | |
tree | c986a60b620850141b4549f287f853e39ec74a0f /npc/003-2/lua.txt | |
parent | db1160472421a4d1db83f5ac60314b58539538dc (diff) | |
download | serverdata-d0c98e038a9652be3b3a6fcaeb0e255b08e322b1.tar.gz serverdata-d0c98e038a9652be3b3a6fcaeb0e255b08e322b1.tar.bz2 serverdata-d0c98e038a9652be3b3a6fcaeb0e255b08e322b1.tar.xz serverdata-d0c98e038a9652be3b3a6fcaeb0e255b08e322b1.zip |
Rewards for Contributors, and some rules. @Saulc please review.
Diffstat (limited to 'npc/003-2/lua.txt')
-rw-r--r-- | npc/003-2/lua.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt index e3e78e021..7edae28c4 100644 --- a/npc/003-2/lua.txt +++ b/npc/003-2/lua.txt @@ -20,6 +20,7 @@ L_Menu: 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("I am a contributor, and I want contributor stuff."), L_Contributor, l("What alliance?"),-; mes ""; mesn; @@ -106,6 +107,38 @@ L_Info: setq General_Narrator, 2; close; +L_Contributor: + mes ""; + .@m = htget($@CONTRIBUTORS, strtolower(strcharinfo(0)), 0); + if (!.@m) { + mesn; + mesq l("Ah... Sorry, your name is not on the contributor list."); + next; + mesn; + mesq l("You can colaborate with our project though! Just ask on #tmw2-dev, be it on Discord or IRC!"); + close; + } + mesn; + mesq l("Ah, welcome @@. You have @@ Contributor Points.", strcharinfo(0), .@m); + mesq l("Let's see if you can pick a reward!"); + select + //rif(#CRW < 5, l("Dev Cap")), + //rif(#CRW < 4, l("Dev Cap")), + rif(#CRW & 4 && .@m >= 2500, l("Developer Cap")), + rif(#CRW & 2 && .@m >= 500, l("Contributor Sweater")), + rif(#CRW & 1 && .@m >= 100, l("Community Shirt")), + l("Ok, thanks."); + + switch (@menu) { + case 1: + getitembound "DEVCap", 1, 1; #CRW=#CRW|4 ; break; + case 2: + getitembound "ContributorSweater", 1, 1; #CRW=#CRW|2 ; break; + case 3: + getitembound "CommunityShirt", 1, 1; #CRW=#CRW|1 ; break; + } + close; + L_Close: close; |