Postado Junho 7, 2014 11 anos Olá , com o comando /clean ele dá um erro , alguém poderia me ajudar ? local cleanEvent = 0 function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Collected " .. doCleanMap() .. " items.") return true end if(param == 'tile') then local removeLoaded, t = false, string.explode(param, ",") if(t[2]) then removeLoaded = getBooleanFromString(t[2]) end doCleanTile(getCreaturePosition(cid), removeLoaded) return true end if(not tonumber(param)) then doPlayerSendCancel(cid, "Command requires numeric param.") return true end stopEvent(cleanEvent) prepareClean(tonumber(param), cid) return true end function prepareClean(minutes, cid) if(minutes == 0) then if(isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cleaned " .. doCleanMap() .. " items.") end doBroadcastMessage("Game map cleaned.") elseif(minutes > 0) then if(minutes == 1) then doBroadcastMessage("Game map cleaning in " .. minutes .. " minute, please pick up all your items.") else doBroadcastMessage("Game map cleaning in " .. minutes .. " minutes.") end cleanEvent = addEvent(prepareClean, 60000, minutes - 1, cid) end end Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 7, 2014 11 anos Tenta trocar por esse : local cleanEvent = 0 function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Collected " .. doCleanMap() .. " items.") return true end local t = string.explode(param, ",") if(t[1] == 'tile') then local removeLoaded = false if(t[2]) then removeLoaded = getBooleanFromString(t[2]) end doCleanTile(getCreaturePosition(cid), removeLoaded) return true end if(not tonumber(param)) then doPlayerSendCancel(cid, "Command numeric param required.") return true end stopEvent(cleanEvent) prepareClean(tonumber(param), cid) return true end function prepareClean(minutes, cid) if(minutes == 0) then if(isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cleaned " .. doCleanMap() .. " items.") end doBroadcastMessage("Game map cleaned.") elseif(minutes > 0) then if(minutes == 1) then doBroadcastMessage("Game map cleaning in " .. minutes .. " minute, please pick up all your items.") else doBroadcastMessage("Game map cleaning in " .. minutes .. " minutes.") end cleanEvent = addEvent(prepareClean, 60000, minutes - 1, cid) end end Ajudei = REP+ Não dou suporte por PM qualquer dúvida procure no fórum,caso não encontre oque procura crie um tópico. [email protected]" /> | TFS 0.4 DEV | %5Bcreaturescript%5D Icones no minimap com descrição%5Btalkaction%5D Adicionar ou remover VIP do player.%5Bcreaturescripts%5D Senha para porta%5Btalkaction%5D Mandar mensagem para pasta do servidorMapa Evento War Castle%5Baction%5D Canoa em MovimentoTeleport Scroll System%5Bcreaturescripts%5D Recompensa por level para X vocations%5Btalkaction%5D Adicionar X item para o player%5Btalkactions%5D Adicionar item para todos players online%5Baction%5D Item que teleporta o player para house[action+movement] Passaporte para entrar no barco
Postado Junho 7, 2014 11 anos tenta troca por esse local cleanEvent = 0 function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Collected " .. doCleanMap() .. " items.") return true end if(param == 'tile') then local removeLoaded, t = false, string.explode(param, ",") if(t[2]) then removeLoaded = getBooleanFromString(t[2]) end doCleanTile(getCreaturePosition(cid), removeLoaded) return true end if(not tonumber(param)) then doPlayerSendCancel(cid, "Command requires numeric param.") return true end stopEvent(cleanEvent) prepareClean(tonumber(param), cid) return true end function prepareClean(minutes, cid) if(minutes == 0) then if(isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cleaned " .. doCleanMap() .. " items.") end doBroadcastMessage("Game map cleaned.") elseif(minutes > 0) then if(minutes == 1) then doBroadcastMessage("Game map cleaning in " .. minutes .. " minute, please pick up all your items.") else doBroadcastMessage("Game map cleaning in " .. minutes .. " minutes.") end cleanEvent = addEvent(prepareClean, 60000, minutes - 1, cid) end end O sexo é bom o amor, melhor, os dois então perfeito ♫
Postado Junho 7, 2014 11 anos Autor Tenta trocar por esse : local cleanEvent = 0 function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Collected " .. doCleanMap() .. " items.") return true end local t = string.explode(param, ",") if(t[1] == 'tile') then local removeLoaded = false if(t[2]) then removeLoaded = getBooleanFromString(t[2]) end doCleanTile(getCreaturePosition(cid), removeLoaded) return true end if(not tonumber(param)) then doPlayerSendCancel(cid, "Command numeric param required.") return true end stopEvent(cleanEvent) prepareClean(tonumber(param), cid) return true end function prepareClean(minutes, cid) if(minutes == 0) then if(isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cleaned " .. doCleanMap() .. " items.") end doBroadcastMessage("Game map cleaned.") elseif(minutes > 0) then if(minutes == 1) then doBroadcastMessage("Game map cleaning in " .. minutes .. " minute, please pick up all your items.") else doBroadcastMessage("Game map cleaning in " .. minutes .. " minutes.") end cleanEvent = addEvent(prepareClean, 60000, minutes - 1, cid) end end Ainda não deu .. Vou postar a foto do erro aqui : Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Junho 7, 2014 11 anos Deve ser erro no editor. Tente abrit e salvar com um editor diferente, tipo se vc usa bloco de notas use o notepad++ Te ajudei?? REP + e ficamos quites... http://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'> Atenciosamente, Daniel. Abraços! Meus tutoriais: Programação: Resolvendo QUALQUER erro na data base. Scripts (system's, creaturescripts, mod's, NPC's, etc): (Sistema) GOD Ambient Light Full. Adicionando novas mounts ao servidor [NPC] Papai Noel que dá presente todo ano. Web-site: Resolvendo problema de caracteres especiais em PHP Formatando textos em PHP! Mudando a cor, tamanho, fonte, etc. Criando e configurando tabelas para paginas PHP
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.