summaryrefslogtreecommitdiff
path: root/npc/005-4
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 /npc/005-4
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.
Diffstat (limited to 'npc/005-4')
-rw-r--r--npc/005-4/tolchi.txt26
1 files changed, 9 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;