Dernière mise à jour
Dernière mise à jour
Dans notre exemple, nous souhaitons lancer un échange au personnage nommé "Bob". Mais la fonction launchExchangeWithPlayer demande un identifiant. Afin de récupérer cet identifiant, il suffit de taper /id Bob dans la console de SnowBot. [...] Nous avons récupéré l'identifiant 123456789 que nous pouvons désormais utiliser.
Attention, par défaut, les échanges sont automatiquement bloqués par SnowBot (le personnage ciblé va refuser l'échange). Plus d'informations sur la section .
Name
Type
Description
playerId
int
Identifiant du personnage cible.
Type
Value
Description
bool
true
L'échange a été accepté.
bool
false
L'échange a été refusé.
Name
Type
Description
playerName
string
Nom du personnage cible.
Type
Value
Description
bool
true
L'échange a été accepté.
bool
false
L'échange a été refusé.
Méthode permettant de lancer un échange au personnage sélectionné.