Troubleshoot

This commit is contained in:
depyraken 2016-04-02 18:02:11 +02:00
parent 713201cbe0
commit 7cf2a44404

View file

@ -1760,19 +1760,24 @@
<STRING>// $botEid, $playerEid</STRING> <STRING>// $botEid, $playerEid</STRING>
<STRING>BCaddPlayer(){</STRING> <STRING>BCaddPlayer(){</STRING>
<STRING> BCP = 0;</STRING> <STRING> BCP = 0;</STRING>
<STRING> switch(v0){</STRING> <STRING>$ttt = "v0 = " + v0;</STRING>
<STRING> case 0:{ // No one is fishing</STRING> <STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING> v0 = 1; // P1 is now fishing</STRING>
<STRING> v1 = 0; // etat initial &lt; 1000, fishing &gt;= 1000</STRING>
<STRING>$ttt = "boteid2 = " + $botEid;</STRING> <STRING>$ttt = "boteid2 = " + $botEid;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING> <STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING>$ttt = "botFamily2 = " + $botFamily;</STRING> <STRING>$ttt = "botFamily2 = " + $botFamily;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING> <STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING></STRING>
<STRING> switch(v0){</STRING>
<STRING> case 0:{ // No one is fishing</STRING>
<STRING> v0 = 1; // P1 is now fishing</STRING>
<STRING> v1 = 0; // etat initial &lt; 1000, fishing &gt;= 1000</STRING>
<STRING>$ttt = "boteid3 = " + $botEid;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING>$ttt = "botFamily3 = " + $botFamily;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING> ()setNamedEntityProp($botEid, "state", $botFamily); // botFamily requirement</STRING> <STRING> ()setNamedEntityProp($botEid, "state", $botFamily); // botFamily requirement</STRING>
<STRING> BCP = 1;</STRING> <STRING> BCP = 1;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", "0 =&gt; 1 =&gt; avant");</STRING>
<STRING> BuildPlayerSlot();</STRING> <STRING> BuildPlayerSlot();</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", "0 =&gt; 1 =&gt; apres");</STRING>
<STRING> }</STRING> <STRING> }</STRING>
<STRING> case 1:{ // P1 is fishing</STRING> <STRING> case 1:{ // P1 is fishing</STRING>
<STRING> $BCVar = $botEid + "_P11";</STRING> <STRING> $BCVar = $botEid + "_P11";</STRING>
@ -1781,9 +1786,7 @@
<STRING> v0 = 3; // P1 and P2 are now fishing</STRING> <STRING> v0 = 3; // P1 and P2 are now fishing</STRING>
<STRING> BCP = 2;</STRING> <STRING> BCP = 2;</STRING>
<STRING> v2 = 0; // etat initial &lt; 1000, fishing &gt;= 1000</STRING> <STRING> v2 = 0; // etat initial &lt; 1000, fishing &gt;= 1000</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", "1 =&gt; 2 =&gt; avant");</STRING>
<STRING> BuildPlayerSlot();</STRING> <STRING> BuildPlayerSlot();</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", "1 =&gt; 2 =&gt; apres");</STRING>
<STRING> }</STRING> <STRING> }</STRING>
<STRING> }</STRING> <STRING> }</STRING>
<STRING> case 2:{ // P2 is fishing</STRING> <STRING> case 2:{ // P2 is fishing</STRING>
@ -1805,18 +1808,10 @@
<STRING></STRING> <STRING></STRING>
<STRING></STRING> <STRING></STRING>
<STRING>($playerEid)getCurrentPlayerEid();</STRING> <STRING>($playerEid)getCurrentPlayerEid();</STRING>
<STRING>$ttt = "playerEid = " + $playerEid;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING></STRING>
<STRING>range = 200; // allow the max range from the fish</STRING> <STRING>range = 200; // allow the max range from the fish</STRING>
<STRING>playerInRange();</STRING> <STRING>playerInRange();</STRING>
<STRING>if(playerInRange_ret &gt; 0){ // only work if necessay</STRING> <STRING>if(playerInRange_ret &gt; 0){ // only work if necessay</STRING>
<STRING> ($botEid)getBotEid(0);</STRING> <STRING> ($botEid)getBotEid(0);</STRING>
<STRING>$ttt = "boteid1 = " + $botEid;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING>$ttt = "botFamily1 = " + $botFamily;</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", $ttt);</STRING>
<STRING></STRING>
<STRING> BCaddPlayer();</STRING> <STRING> BCaddPlayer();</STRING>
<STRING> if(BCP != 0){</STRING> <STRING> if(BCP != 0){</STRING>
<STRING> ()phraseEndSystemMsg(0, "shout", "YOU_ARE_PREPARING_TO_FISH");</STRING> <STRING> ()phraseEndSystemMsg(0, "shout", "YOU_ARE_PREPARING_TO_FISH");</STRING>