From 61da291f366dcd35384bd6a935de5c203234c641 Mon Sep 17 00:00:00 2001 From: jesusalva Date: Thu, 8 Mar 2018 14:35:49 -0300 Subject: Ishi now works - thanks @Crazyfefe --- npc/003-1/ishi.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc/003-1/ishi.txt') diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt index 91459b243..7d63c04e7 100644 --- a/npc/003-1/ishi.txt +++ b/npc/003-1/ishi.txt @@ -124,11 +124,11 @@ L_Items: debugmes "Testing rares"; for (.@b = 0; .@b < getarraysize(@Rares$); .@b=.@b+2) { .@lucky = rand(10000); // 0 - 99999 - debugmes "Checking "+@Rares$[b]+" - b is now "+.@b; - debugmes l("Check @@ <= @@", .@lucky, @Rares$[b+1]); - if (.@lucky <= atoi(@Rares$[b+1])) { + debugmes "Checking "+@Rares$[.@b]+" - b is now "+.@b; + debugmes l("Check @@ <= @@", .@lucky, @Rares$[.@b+1]); + if (.@lucky <= atoi(@Rares$[.@b+1])) { .@lucked=1; - .@reward$ = @Rares$[b]; + .@reward$ = @Rares$[.@b]; } } -- cgit v1.2.3-70-g09d2