summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/005-4/tolchi.txt26
-rw-r--r--npc/functions/clientversion.txt1
2 files changed, 10 insertions, 17 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt
index a6608acff..6e64c054d 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -315,32 +315,24 @@ function tolchi_tweaks {
// Select a bonus and purge it
.@vartp=relative_array_random(@csys_attr);
- .@popindex=getarrayindex(.@vartp);
+
+ // First time player bonus
+ if (!#FIRST_TIME) {
+ .@vartp=IOPT_RICHNESS;
+ }
// Apply the bonus
.@bonus=csys_Multiplier(.@lv);
setitemoptionbyindex(.@id, 0, .@vartp, .@bonus);
- /*
- // Re-roll: Easier for lower levels. Equip based.
- deletearray(@csys_attr[.@popindex], 2);
- if (rand2(1000) < 250-((.@lv+BaseLevel*(REBIRTH+1))*2)) {
- .@vartp=relative_array_random(@csys_attr);
- .@popindex=getarrayindex(.@vartp);
+ // First time item bonus
+ if (!#FIRST_TIME) {
+ .@vartp=IOPT_EXPGAIN;
.@bonus=csys_Multiplier(.@lv);
setitemoptionbyindex(.@id, 1, .@vartp, .@bonus);
+ #FIRST_TIME=true;
}
- // Final re-roll: Easier for lower levels. Equip based. Nearly impossible.
- deletearray(@csys_attr[.@popindex], 2);
- if (rand2(10000) < 250-((.@lv+BaseLevel*(REBIRTH+1))*2)) {
- .@vartp=relative_array_random(@csys_attr);
- .@popindex=getarrayindex(.@vartp);
- .@bonus=csys_Multiplier(.@lv);
- setitemoptionbyindex(.@id, 2, .@vartp, .@bonus);
- }
- */
-
if (BaseLevel*(REBIRTH+1) > 25)
setitemoptionbyindex(.@id, 3, IOPT_WALKSPEED, rand2(-10, -5));
mesn;
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index b75d22577..e357cbff0 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -816,6 +816,7 @@ function script clientupdater {
// dom jun 21 05:55:00 BRT 2020
if (UPDATE < 1592729700) {
UPDATE=1592729700;
+ #FIRST_TIME=true;
if (getskilllv(TMW2_CRAFT) > 5) {
// Refund part of the money spent