Created
July 29, 2015 13:07
-
-
Save mariogeiger/dbc6a7155f396fc38cfb to your computer and use it in GitHub Desktop.
getMessages() plante
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global DATA; | |
DATA = []; | |
for (var message in getMessages()) { // à cette ligne : Interruption IA : Erreur d'execution : Trop d'opérations éxécutées pour ce tour | |
var author = getMessageAuthor(message); | |
if (getFarmerID(author) !== getFarmerID()) continue; | |
if (getMessageType(message) !== MESSAGE_CUSTOM) continue; | |
var content = getMessageParams(message); | |
if (typeOf(content) !== TYPE_ARRAY or count(content) !== 2) continue; | |
DATA[content[0]] = content[1]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment