summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-28 19:31:56 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-28 19:31:56 -0300
commitbfea966e720beed6b78d9c22104c041c435806c0 (patch)
tree25da42f3a79752adb892c4a6e0e2095bc5c04781
parent64becb1b9ddcb7cf7ed297b4b3a8bf014e2d159d (diff)
downloadserverdata-bfea966e720beed6b78d9c22104c041c435806c0.tar.gz
serverdata-bfea966e720beed6b78d9c22104c041c435806c0.tar.bz2
serverdata-bfea966e720beed6b78d9c22104c041c435806c0.tar.xz
serverdata-bfea966e720beed6b78d9c22104c041c435806c0.zip
More optional debug
-rw-r--r--npc/003-5/jeweler.txt5
-rw-r--r--npc/003-6/cyndala.txt6
-rw-r--r--npc/017-1/drowned_man.txt6
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;