From b5e054a319f3164627df38787feaacd86c07b591 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 21:34:05 -0300 Subject: I trust inventoryplace() more --- npc/003-1/ishi.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'npc/003-1/ishi.txt') diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt index 0894f174d..be652f44d 100644 --- a/npc/003-1/ishi.txt +++ b/npc/003-1/ishi.txt @@ -136,9 +136,6 @@ L_Items: //debugmes "Items: "+str(@var); .@lucked=0; .@reward=0; - getinventorylist; - if (@inventorylist_count == 100) - goto L_NoPlace; if (BaseLevel > 25) { //debugmes "Testing rares"; @@ -162,9 +159,7 @@ L_Items: .@reward=any_of(@Items); //debugmes "Check weight"; - .@weight = checkweight(.@reward,1); - if (!.@weight) - goto L_NoPlaceWeight; + inventoryplace .@reward, 1; //debugmes "Processing..."; Mobpt = Mobpt - @mpq_cost; @@ -203,13 +198,6 @@ L_Continue: } } while (@menu != 2); -L_NoPlace: - mesq l("You seem to run out of place, you should go to the storage."); - close; - -L_NoPlaceWeight : - mesq l("You can't carry more items, you should go to the storage."); - close; L_Give_all: @var = Mobpt / @mpq_cost; -- cgit v1.2.3-60-g2f50