launchExchangeWithPlayer
Méthode permettant de lancer un échange au personnage sélectionné.
🔧 Méthode
exchange:launchExchangeWithPlayer(playerId)📪 Argument
Name
Type
Description
playerId
int
Identifiant du personnage cible.
📪 Valeur de retour
Type
Value
Description
bool
true
L'échange a été accepté.
bool
false
L'échange a été refusé.
Exemple d'utilisation :
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.
exchange:launchExchangeWithPlayer(123456789)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 Bot Banque.
🔧 Méthode
exchange:launchExchangeWithPlayer(playerName)📪 Argument
Name
Type
Description
playerName
string
Nom du personnage cible.
📪 Valeur de retour
Type
Value
Description
bool
true
L'échange a été accepté.
bool
false
L'échange a été refusé.
Exemple d'utilisation :
Dans notre exemple, nous souhaitons lancer un échange au personnage nommé "Bob".
exchange:launchExchangeWithPlayer("Bob")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 Bot Banque.
Mis à jour
Ce contenu vous a-t-il été utile ?