From bfea966e720beed6b78d9c22104c041c435806c0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 28 May 2020 19:31:56 -0300 Subject: More optional debug --- npc/003-5/jeweler.txt | 5 ++++- npc/003-6/cyndala.txt | 6 +++++- npc/017-1/drowned_man.txt | 6 +++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/npc/003-5/jeweler.txt b/npc/003-5/jeweler.txt index 9b37ae1a4..21639ffe9 100644 --- a/npc/003-5/jeweler.txt +++ b/npc/003-5/jeweler.txt @@ -141,9 +141,12 @@ L_Clear: goto L_Menu; // Check if we received an item - getinventorylist; + getinventorylist(); .@item=@inventorylist_id[.@item_index]; + if (is_staff()) + mesf "Item Index %d (%s) - ID %d", .@item_index, getitemlink(.@item), .@item; + // Is it the one we're looking for? if (.@item != GoldenRing && .@item != SilverRing) { mesn; diff --git a/npc/003-6/cyndala.txt b/npc/003-6/cyndala.txt index 6e50b2088..4fc303760 100644 --- a/npc/003-6/cyndala.txt +++ b/npc/003-6/cyndala.txt @@ -26,7 +26,11 @@ if (.@item_index < 0) return false; - getinventorylist; + getinventorylist(); + if (is_staff()) + mesf "Item Index %d (%s) - ID %d", .@item_index, + getitemlink(@inventorylist_id[.@item_index]), + @inventorylist_id[.@item_index]; if (@inventorylist_card1[.@item_index] != 0) { diff --git a/npc/017-1/drowned_man.txt b/npc/017-1/drowned_man.txt index bd3c693a2..ec808ef73 100644 --- a/npc/017-1/drowned_man.txt +++ b/npc/017-1/drowned_man.txt @@ -119,9 +119,9 @@ OnInit: next; if (askyesno() == ASK_YES) { // Can't jump with pets - getinventorylist(); - for (.@i=4000; .@i < 4015 ; .@i++) { - if (array_find(@inventorylist_id, .@i) >= 0) { + // FIXME: Move it elsewhere - resist pet_Detective updates + for (.@i=PiouEgg; .@i <= BatEgg ; .@i++) { + if (countitem(.@i) >= 0) { mesc l("Can't bring pets with you..."), 1; next; mesc l("Do you really think the poor creature should jump a bridge in water and DIE?"), 1; -- cgit v1.2.3-60-g2f50