Ir para conteúdo

System de montarias no 8.6


thokito

Posts Recomendados

fala galera blz? consegui trazer tudo do 8.7 pro meu ot 8.6.

estou usando uma script de mount doll

 

aqui está o script.lua

local montConfig =

{

['widow queen'] = {item = xx, id = 1},

['racing bird'] = {item = xx, id = 2},

['war bear'] = {item = xx, id = 3},

['black sheep'] = {item = xx, id = 4},

['midnight panther'] = {item = xx, id = 5},

['draptor'] = {item = xx, id = 6},

['titanica'] = {item = xx, id = 7},

['tin lizard'] = {item = xx, id = 8},

['blazebringer'] = {item = xx, id = 9},

['rapid boar'] = {item = xx, id = 10},

['stampor'] = {item = xx, id = 11},

['undead cavebear'] = {item = xx, id = 12}

}

local xx = 3954 --- id do item

function onSay(cid, words, param)

if(param == '') then

local str = ""

for name, options in pairs(montConfig) do

str = str .. "\n" .. name

end


doPlayerPopupFYI(cid, "List of mounts:\n\n" .. str)

return true

end


local mount = montConfig[param]

if(mount ~= nil) then

if doPlayerRemoveItem(cid,mount.item,1) then

doPlayerSendCancel(cid, "Sorry, you dont have a mont doll for buy this mont " .. param .. "")

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)

return true

end


player:addMount(cid, mountid)

doPlayerRemoveItem(cid, xx,1)

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)

else

doPlayerSendCancel(cid, "The mount not found in list. Please use '!mount' to see the mounts list.")

end

return true

end

 

o erro é esse 

 

27/3/2021 22:23:33] [Error - TalkAction Interface] 
[27/3/2021 22:23:33] data/talkactions/scripts/mounts.lua:onSay
[27/3/2021 22:23:33] Description: 
[27/3/2021 22:23:33] data/talkactions/scripts/mounts.lua:68: attempt to index global 'getplayer' (a nil value)
[27/3/2021 22:23:33] stack traceback:
[27/3/2021 22:23:33]     data/talkactions/scripts/mounts.lua:68: in function <data/talkactions/scripts/mounts.lua:33>

 

 

ALGUEM PODE ME AJUDAR?!

Link para o comentário
Compartilhar em outros sites

  • 1 year later...

You'll see birds, boxes, extra spaces, mixes and different things that you royal match hack should watch out for. Change into a joyful and productive player with the assistance you with canning get from this contraption.There is no doubt that you'll like this new Royal Match Hack Cheat since the only one adds all of the Coins you are searching for.

Link para o comentário
Compartilhar em outros sites

  • 9 months later...
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...