summaryrefslogtreecommitdiff
path: root/npc/003-2/lua.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-2/lua.txt')
-rw-r--r--npc/003-2/lua.txt49
1 files changed, 48 insertions, 1 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index 6aac9fc5d..152d2f03d 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,52 @@ 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 & 16) && .@m >= 4500, l("Delicious Cookie")),
+ rif(!(#CRW & 8) && .@m >= 2000, l("Developer Cap")),
+ rif(!(#CRW & 4) && .@m >= 500, l("Contributor Sweater")),
+ rif(!(#CRW & 2) && .@m >= 100, l("Community Shirt")),
+ rif(!(#CRW & 1) && .@m, l("5x Strange Coins")),
+ l("Which rewards are available?"),
+ l("Ok, thanks.");
+
+ mes "";
+ switch (@menu) {
+ case 1:
+ getitem "DeliciousCookie", 1; #CRW=#CRW|16 ; break;
+ case 2:
+ getitem "DEVCap", 1; #CRW=#CRW|8 ; break;
+ case 3:
+ getitem "ContributorSweater", 1; #CRW=#CRW|4 ; break;
+ case 4:
+ getitem "CommunityShirt", 1; #CRW=#CRW|2 ; break;
+ case 5:
+ getitem "StrangeCoin", 5; #CRW=#CRW|1 ; break;
+ case 6:
+ mes l("4500 - @@", getitemlink(DeliciousCookie));
+ mes l("2000 - @@", getitemlink(DEVCap));
+ mes l("500 - @@", getitemlink(ContributorSweater));
+ mes l("100 - @@", getitemlink(CommunityShirt));
+ next;
+ goto L_Contributor;
+ break;
+ }
+ close;
+
L_Close:
close;
@@ -114,7 +161,7 @@ OnInit:
setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
setunitdata(.@npcId, UDT_HEADMIDDLE, GMRobe);
setunitdata(.@npcId, UDT_HEADBOTTOM, LousyMoccasins);
- setunitdata(.@npcId, UDT_WEAPON, PiouSlayer);
+ setunitdata(.@npcId, UDT_WEAPON, BugSlayer);
setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
setunitdata(.@npcId, UDT_HAIRCOLOR, 5);