From 7cf2a44404dc4fd3161daddd988f83ce3f83b7a2 Mon Sep 17 00:00:00 2001 From: depyraken Date: Sat, 2 Apr 2016 18:02:11 +0200 Subject: [PATCH] Troubleshoot --- primitives/newbieland/fisherman.primitive | 27 +++++++++-------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/primitives/newbieland/fisherman.primitive b/primitives/newbieland/fisherman.primitive index cc42281..92abf55 100644 --- a/primitives/newbieland/fisherman.primitive +++ b/primitives/newbieland/fisherman.primitive @@ -1760,19 +1760,24 @@ // $botEid, $playerEid BCaddPlayer(){ BCP = 0; - switch(v0){ - case 0:{ // No one is fishing - v0 = 1; // P1 is now fishing - v1 = 0; // etat initial < 1000, fishing >= 1000 + $ttt = "v0 = " + v0; + ()phraseEndSystemMsg(0, "shout", $ttt); $ttt = "boteid2 = " + $botEid; ()phraseEndSystemMsg(0, "shout", $ttt); $ttt = "botFamily2 = " + $botFamily; ()phraseEndSystemMsg(0, "shout", $ttt); + + switch(v0){ + case 0:{ // No one is fishing + v0 = 1; // P1 is now fishing + v1 = 0; // etat initial < 1000, fishing >= 1000 + $ttt = "boteid3 = " + $botEid; + ()phraseEndSystemMsg(0, "shout", $ttt); + $ttt = "botFamily3 = " + $botFamily; + ()phraseEndSystemMsg(0, "shout", $ttt); ()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"; @@ -1781,9 +1786,7 @@ 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 @@ -1805,18 +1808,10 @@ ($playerEid)getCurrentPlayerEid(); - $ttt = "playerEid = " + $playerEid; - ()phraseEndSystemMsg(0, "shout", $ttt); - range = 200; // allow the max range from the fish playerInRange(); if(playerInRange_ret > 0){ // only work if necessay ($botEid)getBotEid(0); - $ttt = "boteid1 = " + $botEid; - ()phraseEndSystemMsg(0, "shout", $ttt); - $ttt = "botFamily1 = " + $botFamily; - ()phraseEndSystemMsg(0, "shout", $ttt); - BCaddPlayer(); if(BCP != 0){ ()phraseEndSystemMsg(0, "shout", "YOU_ARE_PREPARING_TO_FISH");