From 4778e38e957a6dbacbd5a653538ce7844ac8369c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 26 Apr 2020 12:53:20 -0300 Subject: And, this should do it >.> --- npc/005-4/tolchi.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'npc/005-4/tolchi.txt') diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt index ed461cbd4..a28f33b91 100644 --- a/npc/005-4/tolchi.txt +++ b/npc/005-4/tolchi.txt @@ -316,7 +316,7 @@ function tolchi_tweaks { // Re-roll: Easier for lower levels. Equip based. deletearray(@csys_attr[.@popindex], 2); - if (rand2(1000) < 250-((.@lv+BaseLevel*REBIRTH)*2)) { + if (rand2(1000) < 250-((.@lv+BaseLevel*(REBIRTH+1))*2)) { .@vartp=relative_array_random(@csys_attr); .@popindex=getarrayindex(.@vartp); .@bonus=csys_Multiplier(.@lv); @@ -325,13 +325,15 @@ function tolchi_tweaks { // Final re-roll: Easier for lower levels. Equip based. Nearly impossible. deletearray(@csys_attr[.@popindex], 2); - if (rand2(10000) < 250-((.@lv+BaseLevel*REBIRTH)*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, 1, .@vartp, .@bonus); + setitemoptionbyindex(.@id, 2, .@vartp, .@bonus); } + if (BaseLevel*(REBIRTH+1) > 25) + setitemoptionbyindex(.@id, 3, IOPT_WALKSPEED, rand2(-10, -5)); mesn; mesc l("Well, here you are. I hope you enjoy ^^", 3); next; -- cgit v1.2.3-60-g2f50