From 2c6a4820633be6a0bbcd5a3da72bf204d4306e8f Mon Sep 17 00:00:00 2001 From: depyraken Date: Sat, 2 Apr 2016 17:17:32 +0200 Subject: [PATCH] troubleshouting again --- primitives/newbieland/fisherman.primitive | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/primitives/newbieland/fisherman.primitive b/primitives/newbieland/fisherman.primitive index 021238f..5338de2 100644 --- a/primitives/newbieland/fisherman.primitive +++ b/primitives/newbieland/fisherman.primitive @@ -1760,13 +1760,17 @@ // $botEid, $playerEid BCaddPlayer(){ BCP = 0; + $tttt = "v0 = " + v0; + ()phraseEndSystemMsg(0, "shout", $tttt); switch(v0){ case 0:{ // No one is fishing v0 = 1; // P1 is now fishing v1 = 0; // etat initial < 1000, fishing >= 1000 ()setNamedEntityProp($botEid, "state", $botFamily); // botFamily requirement BCP = 1; + ()phraseEndSystemMsg(0, "shout", "0 => 1 => avant"); BuildPlayerSlot(); + ()phraseEndSystemMsg(0, "shout", "0 => 1 => apres"); } case 1:{ // P1 is fishing $BCVar = $botEid + "_P11"; @@ -1775,7 +1779,9 @@ v0 = 3; // P1 and P2 are now fishing BCP = 2; v2 = 0; // etat initial < 1000, fishing >= 1000 + ()phraseEndSystemMsg(0, "shout", "1 => 2 => avant"); BuildPlayerSlot(); + ()phraseEndSystemMsg(0, "shout", "1 => 2 => apres"); } } case 2:{ // P2 is fishing @@ -1785,7 +1791,9 @@ v0 = 3; // P1 and P2 are now fishing BCP = 1; v1 = 0; // etat initial < 1000, fishing >= 1000 + ()phraseEndSystemMsg(0, "shout", "2 => 1 => avant"); BuildPlayerSlot(); + ()phraseEndSystemMsg(0, "shout", "2 => 1 => apres"); } } case 3: // P1 and P2 are already fishing @@ -1799,9 +1807,7 @@ playerInRange(); if(playerInRange_ret > 0){ // only work if necessay ($botEid)getBotEid(0); - ()phraseEndSystemMsg(0, "shout", "WE_GET_HERE"); BCaddPlayer(); - ()phraseEndSystemMsg(0, "shout", "AND_HERE"); if(BCP != 0){ ()phraseEndSystemMsg(0, "shout", "YOU_ARE_PREPARING_TO_FISH"); ()setTimer(10, BCP);