troubleshouting again
This commit is contained in:
parent
f66dca454b
commit
2c6a482063
1 changed files with 8 additions and 2 deletions
|
@ -1760,13 +1760,17 @@
|
||||||
<STRING>// $botEid, $playerEid</STRING>
|
<STRING>// $botEid, $playerEid</STRING>
|
||||||
<STRING>BCaddPlayer(){</STRING>
|
<STRING>BCaddPlayer(){</STRING>
|
||||||
<STRING> BCP = 0;</STRING>
|
<STRING> BCP = 0;</STRING>
|
||||||
|
<STRING> $tttt = "v0 = " + v0;</STRING>
|
||||||
|
<STRING> ()phraseEndSystemMsg(0, "shout", $tttt);</STRING>
|
||||||
<STRING> switch(v0){</STRING>
|
<STRING> switch(v0){</STRING>
|
||||||
<STRING> case 0:{ // No one is fishing</STRING>
|
<STRING> case 0:{ // No one is fishing</STRING>
|
||||||
<STRING> v0 = 1; // P1 is now fishing</STRING>
|
<STRING> v0 = 1; // P1 is now fishing</STRING>
|
||||||
<STRING> v1 = 0; // etat initial < 1000, fishing >= 1000</STRING>
|
<STRING> v1 = 0; // etat initial < 1000, fishing >= 1000</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>
|
||||||
|
@ -1775,7 +1779,9 @@
|
||||||
<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>
|
||||||
|
@ -1785,7 +1791,9 @@
|
||||||
<STRING> v0 = 3; // P1 and P2 are now fishing</STRING>
|
<STRING> v0 = 3; // P1 and P2 are now fishing</STRING>
|
||||||
<STRING> BCP = 1;</STRING>
|
<STRING> BCP = 1;</STRING>
|
||||||
<STRING> v1 = 0; // etat initial < 1000, fishing >= 1000</STRING>
|
<STRING> v1 = 0; // etat initial < 1000, fishing >= 1000</STRING>
|
||||||
|
<STRING> ()phraseEndSystemMsg(0, "shout", "2 => 1 => avant");</STRING>
|
||||||
<STRING> BuildPlayerSlot();</STRING>
|
<STRING> BuildPlayerSlot();</STRING>
|
||||||
|
<STRING> ()phraseEndSystemMsg(0, "shout", "2 => 1 => apres");</STRING>
|
||||||
<STRING> }</STRING>
|
<STRING> }</STRING>
|
||||||
<STRING> }</STRING>
|
<STRING> }</STRING>
|
||||||
<STRING> case 3: // P1 and P2 are already fishing</STRING>
|
<STRING> case 3: // P1 and P2 are already fishing</STRING>
|
||||||
|
@ -1799,9 +1807,7 @@
|
||||||
<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> ()phraseEndSystemMsg(0, "shout", "WE_GET_HERE");</STRING>
|
|
||||||
<STRING> BCaddPlayer();</STRING>
|
<STRING> BCaddPlayer();</STRING>
|
||||||
<STRING> ()phraseEndSystemMsg(0, "shout", "AND_HERE");</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>
|
||||||
<STRING> ()setTimer(10, BCP);</STRING>
|
<STRING> ()setTimer(10, BCP);</STRING>
|
||||||
|
|
Loading…
Reference in a new issue