summaryrefslogtreecommitdiff
path: root/npc/005-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-26 12:53:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-26 12:53:20 -0300
commit4778e38e957a6dbacbd5a653538ce7844ac8369c (patch)
treef604afc47b42e008622f525891d4c1207b3e93d7 /npc/005-4
parent844cd70f74252426a4b07f854e6ae4eb197a19d3 (diff)
downloadserverdata-4778e38e957a6dbacbd5a653538ce7844ac8369c.tar.gz
serverdata-4778e38e957a6dbacbd5a653538ce7844ac8369c.tar.bz2
serverdata-4778e38e957a6dbacbd5a653538ce7844ac8369c.tar.xz
serverdata-4778e38e957a6dbacbd5a653538ce7844ac8369c.zip
And, this should do it >.>
Diffstat (limited to 'npc/005-4')
-rw-r--r--npc/005-4/tolchi.txt8
1 files changed, 5 insertions, 3 deletions
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;