From 38645fbaa5914cb27953e2e3ed9ec8e180ed177e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Jun 2020 23:25:25 -0300 Subject: 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. --- npc/005-4/tolchi.txt | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'npc/005-4') 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; -- cgit v1.2.3-60-g2f50