summaryrefslogtreecommitdiff
path: root/npc/003-2
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-09 10:29:13 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-09 10:29:13 -0200
commit9c62487ed041c77229562fa822995d771a39c79b (patch)
tree1728fe2d08a304823c7d1fdb9560de1629eef824 /npc/003-2
parent1c1008f0dcc1c1d2c18b37c3df78865bf6986e85 (diff)
downloadserverdata-9c62487ed041c77229562fa822995d771a39c79b.tar.gz
serverdata-9c62487ed041c77229562fa822995d771a39c79b.tar.bz2
serverdata-9c62487ed041c77229562fa822995d771a39c79b.tar.xz
serverdata-9c62487ed041c77229562fa822995d771a39c79b.zip
Remaster GM gift box prices
Diffstat (limited to 'npc/003-2')
-rw-r--r--npc/003-2/lua.txt36
1 files changed, 16 insertions, 20 deletions
diff --git a/npc/003-2/lua.txt b/npc/003-2/lua.txt
index 2959a302a..77acefe1a 100644
--- a/npc/003-2/lua.txt
+++ b/npc/003-2/lua.txt
@@ -55,14 +55,10 @@ L_GMEvent:
goto L_Menu;
L_GMEvent2:
- // Inflaction: Non-admins pay more, and out of main events price is higher
- .@inflact=0;
- if (!is_admin())
- .@inflact+=1;
- if ($EVENT$ == "")
- .@inflact+=1;
- if (.@inflact == 0)
- .@inflact=1;
+ // Inflaction: Non-admins pay more out of main events (for whatever reasons)
+ .@inf=1;
+ if (!is_admin() && $EVENT$ == "")
+ .@inf+=1;
// Main Code
.@s=countitem(StrangeCoin);
@@ -70,19 +66,19 @@ L_GMEvent2:
mesn;
mesq l("You currently have @@ @@.", getitemlink(StrangeCoin));
mes "";
- mesc l("@@ - @@ coins", getitemlink(BronzeGift), 10*.@inflact);
- mesc l("@@ - @@ coins", getitemlink(SilverGift), 20*.@inflact);
- mesc l("@@ - @@ coins", getitemlink(GoldenGift), 40*.@inflact);
- mesc l("@@ - @@ coins", getitemlink(PrismGift), 60*.@inflact);
- mesc l("@@ - @@ coins", getitemlink(SupremeGift), 80*.@inflact);
+ mesc l("@@ - @@ coins", getitemlink(BronzeGift), 10*.@inf);
+ mesc l("@@ - @@ coins", getitemlink(SilverGift), 20*.@inf);
+ mesc l("@@ - @@ coins", getitemlink(GoldenGift), 40*.@inf);
+ mesc l("@@ - @@ coins", getitemlink(PrismGift), 80*.@inf);
+ mesc l("@@ - @@ coins", getitemlink(SupremeGift), 160*.@inf);
mes "";
menuint
"Return to main menu", -1,
- rif(.@s > 10*.@inflact, "Bronze Gift"), 10,
- rif(.@s > 20*.@inflact, "Silver Gift"), 20,
- rif(.@s > 40*.@inflact, "Golden Gift"), 40,
- rif(.@s > 60*.@inflact, "Prism Gift"), 60,
- rif(.@s > 80*.@inflact, "Supreme Gift"), 80;
+ rif(.@s > 10*.@inf, "Bronze Gift"), 10,
+ rif(.@s > 20*.@inf, "Silver Gift"), 20,
+ rif(.@s > 40*.@inf, "Golden Gift"), 40,
+ rif(.@s > 80*.@inf, "Prism Gift"), 80,
+ rif(.@s > 160*.@inf, "Supreme Gift"), 160;
if (@menuret == -1)
goto L_Menu;
@@ -95,9 +91,9 @@ L_GMEvent2:
getitem SilverGift, 1; break;
case 40:
getitem GoldenGift, 1; break;
- case 60:
- getitem PrismGift, 1; break;
case 80:
+ getitem PrismGift, 1; break;
+ case 160:
getitem SupremeGift, 1; break;
default:
mesc(l("A script error happened, please report: @@", @menuret), 1); break;