API Lua Social

38 entradas — Referencia del bot WGRetro para Dofus Retro

Documentación completa
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étodoTipoDescripción
bot.say(channel, message)voidEnvoyer un message
bot.whisper(name, message)voidMessage prive
bot.general(msg)voidCanal general (*)
bot.team(msg)voidCanal equipe (#)
bot.guild(msg)voidCanal guilde (%)
bot.trade(msg)voidCanal commerce (:)
bot.recruit(msg)voidCanal recrutement (?)
bot.partyChat(msg)voidCanal groupe (^)

Groupe

Propiedad / MétodoTipoDescripción
bot.inviteToParty(name)voidInviter un joueur
bot.acceptParty()voidAccepter une invitation
bot.declineParty()voidRefuser une invitation
bot.leaveParty()voidQuitter le groupe
bot.getPartyMembers()tableMembres du groupe
bot.getPartyCount()numberNombre de membres
bot.isInParty()booleanDans un groupe ?
bot.getPartyLeaderId()string\nil | ID du leader
bot.isPartyLeader()booleanSuis-je le leader ?

Echange joueur

Propiedad / MétodoTipoDescripción
bot.exchangeRequestByName(name)voidDemander un echange
bot.waitForExchangeRequest(timeout?)numberAttendre une demande (retourne senderId)
bot.putItem(templateId, qty)booleanMettre un item dans l'echange
bot.putKamas(amount)voidMettre des kamas
bot.exchangeGetItem(templateId, qty)booleanRecuperer un item
bot.exchangeReady()voidValider
bot.acceptExchange()voidAccepter
bot.refuseExchange()voidRefuser
bot.exchangeLeave()voidQuitter l'echange
bot.isExchangeActive()booleanEchange en cours ?

Groupe avance

Propiedad / MétodoTipoDescripción
bot.broadcastToGroup(command, data)voidEnvoyer commande aux followers (leader only)
bot.waitForPartyOnMap(timeout?)voidAttendre les membres sur la map

Groupe — Pods

Propiedad / MétodoTipoDescripción
bot.requestGroupPods()voidDemander les pods de tous les membres du groupe

Echange — Alias

Propiedad / MétodoTipoDescripción
bot.exchangePlayer(id)voidEchange par ID joueur
bot.launchExchangeWithPlayerByName(name)voidAlias exchangeRequestByName
bot.waitForRequest(timeout?)numberAlias waitForExchangeRequest

Groupe — Alias

Propiedad / MétodoTipoDescripción
bot.inviteToGroup(name)voidAlias inviteToParty
bot.acceptGroupInvite()voidAlias acceptParty
bot.declineGroupInvite()voidAlias declineParty
bot.leaveGroup()voidAlias leaveParty
bot.party()tableAlias 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.