Ir para conteúdo

Featured Replies

Postado
  • Autor

Ok, estarei aguardando Adriano Swatt.

Snow tive um probleminha com o seu, como a formatação esta diferente, não consegui nem ao menos descobrir onde é.

O erro no Tfs é este:

[14/09/2014 11:21:40] Warning: [Event::loadScript] Event onSay not found. data/talkactions/scripts/dancing.lua

 

  • Respostas 13
  • Visualizações 2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Bem, cara, modifiquei seu script, só que continua em talkaction, mas, não dará mais este erro(creio eu). Testa ai.

  • Lol, ficou sem formatação, como... Desculpe, acho que foi o spoiler junto ao code que bugou...   Sem spoiler: local conf = {} -- // config // --- conf.outfitSpeed = 250 -- outfit changer speed con

  • Nao tem como criar uma condicao OnDeath ou OnLogout para desligar o script quando a pessoa logar/morrer? Nao to com tempo pra mexer em scripts agora, mas é uma ideia ai pra voces pensarem. Se quiser

Postado

Lol, ficou sem formatação, como... Desculpe, acho que foi o spoiler junto ao code que bugou...

 

Sem spoiler:

local conf = {}
-- // config // ---
conf.outfitSpeed = 250 -- outfit changer speed
conf.outfitMale = {128, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325} -- all male outfits
conf.outfitFemale = {136, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324} -- all female outfits
-- // end // --

local condition_infight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition_infight, CONDITION_PARAM_TICKS, -1)

function outfitChanger(tab)
if isPlayer(tab[1]) then
if getPlayerSex(tab[1]) == PLAYERSEX_FEMALE then
outs = conf.outfitFemale
else
outs = conf.outfitMale
end

local outfit = {
lookType = outs[math.random(1, #outs)],
lookHead = math.random(1,133),
lookBody = math.random(1,133),
lookLegs = math.random(1,133),
lookFeet = math.random(1,133),
lookTypeEx = math.random(1,133),
lookAddons = math.random(0,3)}
doCreatureChangeOutfit(tab[1], outfit)
tab[2].outfitChanger = addEvent(outfitChanger,conf.outfitSpeed, tab)
end
end
backOutfit = {}
local backOutfit = {}
local storage = 38417


function onSay(cid, words, param, channel)
if isCreature(cid) then
local pidCheck = getPlayerStorageValue(cid, storage)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end

local pid = getPlayerGUID(cid)

if type(events[pid]) ~= "table" then
events[pid] = {}
end

if (param == "start") then
if (pidCheck == -1) then
if (isPlayer(cid)) then
end
outBack = getCreatureOutfit(cid)
backOutfit[pid] = outBack
backOutfit[pid].lookType = outBack.lookType
backOutfit[pid].lookAddons = outBack.lookAddons
doPlayerSendCancel(cid, "Ai Que Loucuuura ")
outfitChanger({cid, events[pid]})
doAddCondition(cid, condition_infight)
doCreatureSetNoMove(cid, true)
setPlayerStorageValue(cid, storage, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você está com o DANCE ligado, digite !dance stop.")
end
elseif (param == "stop") then
stopEvent(events[pid].outfitChanger)
stopEvent(events[pid].messager)
events[pid] = {}
doCreatureChangeOutfit(cid, backOutfit[pid])
doRemoveCondition(cid, CONDITION_INFIGHT)
doCreatureSetNoMove(cid, false)
setPlayerStorageValue(cid, storage, -1)
doPlayerSendCancel(cid, "Ai Que Loucuuura ")
end
else
return true
end
return TRUE
end

Editado por Snowsz (veja o histórico de edições)

                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Postado
  • Autor

Então, o script rodou normalmente, ainda adiciona o battle para evitar que o player deslogue. Mas infelizmente, ao morrer o erro ainda persiste.  :wacko:  :wallbash:

Olha o erro:

[14/09/2014 16:01:07] Lua Script Error: [TalkAction Interface]


[14/09/2014 16:01:08] in a timer event called from:
[14/09/2014 16:01:08] data/talkactions/scripts/dancing tomara.lua:onSay

[14/09/2014 16:01:08] luaDoCreatureChangeOutfit(). Creature not found

Editado por eviltox (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96k
  • Posts 512.6k

Informação Importante

Confirmação de Termo