Troubleshoot
This commit is contained in:
parent
713201cbe0
commit
7cf2a44404
1 changed files with 11 additions and 16 deletions
|
@ -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 < 1000, fishing >= 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 < 1000, fishing >= 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 => 1 => avant");</STRING>
|
|
||||||
<STRING> BuildPlayerSlot();</STRING>
|
<STRING> BuildPlayerSlot();</STRING>
|
||||||
<STRING> ()phraseEndSystemMsg(0, "shout", "0 => 1 => 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 < 1000, fishing >= 1000</STRING>
|
<STRING> v2 = 0; // etat initial < 1000, fishing >= 1000</STRING>
|
||||||
<STRING> ()phraseEndSystemMsg(0, "shout", "1 => 2 => avant");</STRING>
|
|
||||||
<STRING> BuildPlayerSlot();</STRING>
|
<STRING> BuildPlayerSlot();</STRING>
|
||||||
<STRING> ()phraseEndSystemMsg(0, "shout", "1 => 2 => 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 > 0){ // only work if necessay</STRING>
|
<STRING>if(playerInRange_ret > 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>
|
||||||
|
|
Loading…
Reference in a new issue