API Lua Social
38 entradas — Referencia del bot WGRetro para Dofus Retro
Chat
bot.general("Bonjour !")
bot.whisper("Joueur", "Salut")Groupe avance
-- Leader envoie un ordre de mouvement
bot.broadcastToGroup("moveCell", { cellId = 250 })
bot.broadcastToGroup("navigateTo", { mapId = "7411" })
bot.broadcastToGroup("bank", {})Groupe / Party
bot.inviteToParty("Nom")
bot.waitForPartyOnMap(10000)
bot.broadcastToGroup("moveCell", { cellId = 250 })
bot.broadcastToGroup("navigateTo", { mapId = "7411" })
bot.broadcastToGroup("bank", {})
local members = bot.getPartyMembers()Chat
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.say(channel, message) | void | Envoyer un message |
| bot.whisper(name, message) | void | Message prive |
| bot.general(msg) | void | Canal general (*) |
| bot.team(msg) | void | Canal equipe (#) |
| bot.guild(msg) | void | Canal guilde (%) |
| bot.trade(msg) | void | Canal commerce (:) |
| bot.recruit(msg) | void | Canal recrutement (?) |
| bot.partyChat(msg) | void | Canal groupe (^) |
Groupe
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.inviteToParty(name) | void | Inviter un joueur |
| bot.acceptParty() | void | Accepter une invitation |
| bot.declineParty() | void | Refuser une invitation |
| bot.leaveParty() | void | Quitter le groupe |
| bot.getPartyMembers() | table | Membres du groupe |
| bot.getPartyCount() | number | Nombre de membres |
| bot.isInParty() | boolean | Dans un groupe ? |
| bot.getPartyLeaderId() | string\ | nil | ID du leader |
| bot.isPartyLeader() | boolean | Suis-je le leader ? |
Echange joueur
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.exchangeRequestByName(name) | void | Demander un echange |
| bot.waitForExchangeRequest(timeout?) | number | Attendre une demande (retourne senderId) |
| bot.putItem(templateId, qty) | boolean | Mettre un item dans l'echange |
| bot.putKamas(amount) | void | Mettre des kamas |
| bot.exchangeGetItem(templateId, qty) | boolean | Recuperer un item |
| bot.exchangeReady() | void | Valider |
| bot.acceptExchange() | void | Accepter |
| bot.refuseExchange() | void | Refuser |
| bot.exchangeLeave() | void | Quitter l'echange |
| bot.isExchangeActive() | boolean | Echange en cours ? |
Groupe avance
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.broadcastToGroup(command, data) | void | Envoyer commande aux followers (leader only) |
| bot.waitForPartyOnMap(timeout?) | void | Attendre les membres sur la map |
Groupe — Pods
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.requestGroupPods() | void | Demander les pods de tous les membres du groupe |
Echange — Alias
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.exchangePlayer(id) | void | Echange par ID joueur |
| bot.launchExchangeWithPlayerByName(name) | void | Alias exchangeRequestByName |
| bot.waitForRequest(timeout?) | number | Alias waitForExchangeRequest |
Groupe — Alias
| Propiedad / Método | Tipo | Descripción |
|---|---|---|
| bot.inviteToGroup(name) | void | Alias inviteToParty |
| bot.acceptGroupInvite() | void | Alias acceptParty |
| bot.declineGroupInvite() | void | Alias declineParty |
| bot.leaveGroup() | void | Alias leaveParty |
| bot.party() | table | Alias getPartyMembers |
Estas funciones se usan en los scripts Lua del bot WGRetro — probables con el plan gratis (1 bot, sin límite de tiempo). Scripts listos para usar en el marketplace.