summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-25 23:25:25 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-25 23:25:25 -0300
commit38645fbaa5914cb27953e2e3ed9ec8e180ed177e (patch)
tree8ab68414a797e03aa13901205c0ff7f4dbfe4706
parentea005300e37dc136192336ece561bbf4a1f0bdba (diff)
downloadserverdata-38645fbaa5914cb27953e2e3ed9ec8e180ed177e.tar.gz
serverdata-38645fbaa5914cb27953e2e3ed9ec8e180ed177e.tar.bz2
serverdata-38645fbaa5914cb27953e2e3ed9ec8e180ed177e.tar.xz
serverdata-38645fbaa5914cb27953e2e3ed9ec8e180ed177e.zip
Tolchi: First special request will, with 100% chance, give two bonuses:
GP Drop and EXP Gain. This only happens once per account, and already existing accounts are excluded.
-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