Ir para conteúdo
Banner com Efeitos

Fabio Leandro

Membro
  • Registro em

  • Última visita

Tudo que Fabio Leandro postou

  1. data/movements/events/dtt.lua data/lib/dtt.lua data/creaturescripts/events/dtt.lua Não aparece nenhum erro na DISTRO. TFS 0.4 REV 3777
  2. Erro da distro: [18:28:40.344] [Error - CreatureScript Interface] [18:28:40.344] data/creaturescripts/scripts/ga1.lua:onDeath [18:28:40.344] Description: [18:28:40.360] (luaDoRemoveItem) Item not found [18:28:40.360] [Error - CreatureScript Interface] [18:28:40.375] data/creaturescripts/scripts/ga1.lua:onDeath [18:28:40.375] Description: [18:28:40.375] (luaDoRemoveItem) Item not found [18:28:40.375] [Error - CreatureScript Interface] [18:28:40.375] data/creaturescripts/scripts/ga1.lua:onDeath [18:28:40.375] Description: [18:28:40.375] (luaDoRemoveItem) Item not found [18:28:40.375] [Error - CreatureScript Interface] [18:28:40.375] data/creaturescripts/scripts/ga1.lua:onDeath [18:28:40.375] Description: [18:28:40.375] (luaDoRemoveItem) Item not found [18:28:40.375] [Error - CreatureScript Interface] [18:28:40.391] data/creaturescripts/scripts/ga1.lua:onDeath [18:28:40.391] Description: [18:28:40.391] (luaDoRemoveItem) Item not found > Broadcasted message: "[Evento Dota] Gerador Azul I Foi Destruido!". creaturescripts/scripts/ga1 function onDeath(cid, corpse, killer) local M ={ ["Gerador Azul I"] = {Pos = {x=613,y=42,z=8},id= 1353, Pos2 = {x=613,y=41,z=8},id2= 1353, Pos3 = {x=613,y=40,z=8},id3= 1353, Pos4 = {x=613,y=43,z=8},id4= 1353, Pos5 = {x=613,y=44,z=8},id5= 1353}, } local mensage1 = "[Evento Dota] Gerador Azul I Foi Destruido!" -- Mensagem depois que o Gerador for Destruido local monster1 = "Gerador Azul II" -- Boss que irá aparecer na invasão! local x = M[getCreatureName(cid)] if x then local parede = getTileItemById(x.Pos, x.id) local parede2 = getTileItemById(x.Pos2, x.id2) local parede3 = getTileItemById(x.Pos3, x.id3) local parede4 = getTileItemById(x.Pos4, x.id4) local parede5 = getTileItemById(x.Pos5, x.id5) if parede then doRemoveItem(parede.uid, 1) doRemoveItem(parede2.uid, 1) doRemoveItem(parede3.uid, 1) doRemoveItem(parede4.uid, 1) doRemoveItem(parede5.uid, 1) doSummonCreature(monster1, {x=619, y=41, z=8}) broadcastMessage(mensage1, MESSAGE_EVENT_ADVANCE) end end return TRUE end monsters/dota/geradorazul1 <?xml version="1.0" encoding="UTF-8"?> <monster name="Gerador Azul I" nameDescription="a Gerador Azul I" race="undead" experience="12000" speed="0" manacost="0"> <health now="150000" max="150000"/> <look typeex="9785" /> <targetchange interval="5000" chance="0"/> <strategy attack="100" defense="0"/> <script> <event name="ga1"/> </script> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="0"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="100"/> </flags> <attacks> <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-350" max="-600"> <attribute key="areaEffect" value="energy"/> </attack> </attacks> <defenses armor="1" defense="1"/> <immunities> <immunity poison="1"/> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> </monster> \data\globalevents\scripts\dota local config = { semana_mes = "semana", days = {1,3,6}, tempo = 300, p = {{x=601,y=40,z=8}, {x=601,y=41,z=8}, {x=601,y=42,z=8}, {x=601,y=43,z=8}, {x=601,y=44,z=8}, {x=685,y=40,z=8}, {x=685,y=41,z=8}, {x=685,y=42,z=8}, {x=685,y=43,z=8}, {x=685,y=44,z=8} }, idpedra=1304, p2 = {{x=613,y=40,z=8}, {x=613,y=41,z=8}, {x=613,y=42,z=8}, {x=613,y=43,z=8}, {x=613,y=44,z=8}, {x=625,y=40,z=8}, {x=625,y=41,z=8}, {x=625,y=42,z=8}, {x=625,y=43,z=8}, {x=625,y=44,z=8}, {x=638,y=43,z=8}, {x=640,y=42,z=8}, {x=648,y=40,z=8}, {x=646,y=42,z=8} }, idpedra2=1353, p3 = {{x=661,y=40,z=8}, {x=661,y=41,z=8}, {x=661,y=42,z=8}, {x=661,y=43,z=8}, {x=661,y=44,z=8}, {x=673,y=40,z=8}, {x=673,y=41,z=8}, {x=673,y=42,z=8}, {x=673,y=43,z=8}, {x=673,y=44,z=8} }, idpedra3=1354, m={{"Gerador Azul I",{x=607,y=42,z=8}}, {"Gerador Vermelho I",{x=679,y=42,z=8}} }, nkpos = {{x=1,y=1,z=8}, {x=1,y=1,z=8}, {x=1,y=1,z=8}, {x=1,y=1,z=8}, {x=1,y=1,z=8}, {x=1,y=1,z=8} }} --em segundos function onTime() local time = os.date("*t") if (config.semana_mes == "semana" and isInArray(config.days,time.wday)) or (config.semana_mes == "mes" and isInArray(config.daystime.day)) or config.semana_mes == "" then for _,k in pairs(config.nkpos) do if isMonster(getTopCreature(k).uid) then doRemoveCreature(getTopCreature(k).uid) end end for _,k in pairs(config.p) do doRemoveItem(getTileItemById(k,config.idpedra).uid,1) end for _,k in pairs(config.p2) do doRemoveItem(getTileItemById(k,config.idpedra2).uid,1) end for _,k in pairs(config.p3) do doRemoveItem(getTileItemById(k,config.idpedra3).uid,1) end for _,k in pairs(config.p) do doCreateItem(config.idpedra,k) end for _,k in pairs(config.p2) do doCreateItem(config.idpedra2,k) end for _,k in pairs(config.p3) do doCreateItem(config.idpedra3,k) end for _,o in pairs(config.m) do doSummonCreature(o[1],o[2]) end local mensage1 = "[Evento Dota] Liberada Sala dos Times! Quem quiser Participar, vá para a sala de times até o Evento começar. Depois que começar, sÓ na outra rodada! Gogo (TELEPORTE PARA O DOTA NO TEMPLO DA CIDADE PRINCIPAL)" -- Mensagem Inicial gatepos = {x=677, y=14, z=8, stackpos=1} -- Posição da Pedra getgate = getThingfromPos(gatepos) if getgate.itemid == 1304 then broadcastMessage(mensage1, MESSAGE_EVENT_ADVANCE) doRemoveItem(getgate.uid,1) end addEvent(startDota,config.tempo*1000,nil) end return true end function startDota() local mensage1 = "[Evento Dota] Evento Iniciado! Destruam as Torres! quem destruir as 3 Torres primeiro, Ganha!" -- Mensagem Inicial local monster1 = "Gerador Azul I" -- Geradores Iniciais local monster2 = "Gerador Vermelho I" -- Geradores Iniciais gatepos = {x=685, y=42, z=8, stackpos=1} -- Posição da Pedras 1 getgate = getThingfromPos(gatepos) gatepos11 = {x=685, y=41, z=8, stackpos=1} -- Posição da Pedras 11 getgate11 = getThingfromPos(gatepos11) gatepos12 = {x=685, y=40, z=8, stackpos=1} -- Posição da Pedras 12 getgate12 = getThingfromPos(gatepos12) gatepos13 = {x=685, y=44, z=8, stackpos=1} -- Posição da Pedras 13 getgate13 = getThingfromPos(gatepos13) gatepos14 = {x=685, y=43, z=8, stackpos=1} -- Posição da Pedras 14 getgate14 = getThingfromPos(gatepos14) gatepos2 = {x=601, y=42, z=8, stackpos=1} -- Posição da Pedra 2 getgate2 = getThingfromPos(gatepos2) gatepos21 = {x=601, y=41, z=8, stackpos=1} -- Posição da Pedra 21 getgate21 = getThingfromPos(gatepos21) gatepos22 = {x=601, y=40, z=8, stackpos=1} -- Posição da Pedra 22 getgate22 = getThingfromPos(gatepos22) gatepos23 = {x=601, y=43, z=8, stackpos=1} -- Posição da Pedra 23 getgate23 = getThingfromPos(gatepos23) gatepos24 = {x=601, y=44, z=8, stackpos=1} -- Posição da Pedra 24 getgate24 = getThingfromPos(gatepos24) if getgate.itemid == 1304 and getgate2.itemid == 1304 then broadcastMessage(mensage1, MESSAGE_EVENT_ADVANCE) doRemoveItem(getgate.uid,1) doRemoveItem(getgate11.uid,1) doRemoveItem(getgate12.uid,1) doRemoveItem(getgate13.uid,1) doRemoveItem(getgate14.uid,1) doRemoveItem(getgate2.uid,1) doRemoveItem(getgate21.uid,1) doRemoveItem(getgate22.uid,1) doRemoveItem(getgate23.uid,1) doRemoveItem(getgate24.uid,1) doCreateItem(1304, {x=677, y=14, z=8}) end end
  3. muito bom! vou implementar no meu server! pega pra 0.4?
  4. data\actions\scripts\other offlinetraining.lua: creaturescript/offtrain_login creaturescript/offtrain_logout tipo, reparei que quando eu deslogo o char, ele treinou, mas ele n ta deslogando quando clico na estátua, tipo, eu clico na estátua, daí quando eu deslogo, e logo uns 2 min dps ele diz que subiu tanto de skill... mas logar sozinho quando clica na estatua nao desloha
  5. [19:22:15.920] The Forgotten Server, version 0.4_DEV (rev 3777) [19:22:15.935] Compilada por luanluciano93 em Mar 28 2017 - version 1.0.6
  6. vou testar, se funcionar, ja sabe. REP+ os erros atras sumiram, mas agora apareceram esses: [15:23:33.306] [Error - TalkAction Interface] [15:23:33.306] data/talkactions/scripts/bomb.lua [15:23:33.306] Description: [15:23:33.322] (luaGetCreatureStorage) Creature not found [15:23:33.322] [Error - TalkAction Interface] [15:23:33.322] data/talkactions/scripts/bomb.lua [15:23:33.322] Description: [15:23:33.322] data/talkactions/scripts/bomb.lua:108: attempt to compare number with boolean [15:23:33.322] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/bomb.lua) LINK do site que peguei o evento: http://www.tibiaface.com/t772-event-bomberman
  7. muito obrigado, 5 estrelas
  8. Quando escrevo Team-Dota, a primeira pedra sai e aparece o evento na distro. Daí eu entro no tp, e quando eu ja to dentro da sala, mais nada acontece, nenhuma pedra sai, nada acontece, pfv alguem me ajuda
  9. deu certo irmão, mto obrigado. oq vc fez? irmão ja que vc é foda demais, poderia me ajudar em outro erro que to tendo a muito tempo? se nao quiser resolver por aqui resolve por mensagem mesmo. ERRO DA DISTRO: [12:7:29.199] >> Loading script systems [12:7:29.868] [Error - LuaInterface::loadFile] data/creaturescripts/scripts/login.lua:80: '<eof>' expected near 'end' [12:7:29.869] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua) [12:7:29.870] data/creaturescripts/scripts/login.lua:80: '<eof>' expected near 'end' data/creaturescripts/scripts/login.lua: local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to manage your account and if you want to start over then type {cancel}.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type {account} to create an account or type {recover} to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "petKill") registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "petDeath") registerCreatureEvent(cid, "petSta") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "TiraBattle") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena registerCreatureEvent(cid, "deathchannel") return true end if getPlayerStorageValue(cid, 48913) == -1 then setPlayerStorageValue(cid, 48913, 0) end
  10. ja procurei em tudo e minha script ta certissima, esta aparecendo esse erro: [Error - LuaInterface::loadFile] data/globalevents/scripts/events/zombie.lua:3: unexpected symbol near '=' [3:6:10.226] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/events/zombie.lua) [3:6:10.226] data/globalevents/scripts/events/zombie.lua:3: unexpected symbol near '=' [3:6:10.226] [Error - LuaInterface::loadFile] data/globalevents/scripts/events/zombie.lua:3: unexpected symbol near '=' [3:6:10.226] [Warning - Event::loadScript] Cannot load script (data/globalevents/scripts/events/zombie.lua) [3:6:10.242] data/globalevents/scripts/events/zombie.lua:3: unexpected symbol near '=' MINHA SCRIPT: local c = { teleportPosition = {x = 150, y = 55, z = 7}, stackpos = 1}, teleportToPosition = {x = 848, y = 78, z = 7}, fromPosition = {x = 817, y = 48, z = 7}, toPosition = {x = 886, y = 116, z = 7}, availablePos = {}, } function onTime () doItemSetAttribute(doCreateTeleport(1387, c.teleportToPosition, c.teleportPosition), "aid", 1742) doBroadcastMessage("Zombie event starting in 3 minutes! The teleport will be closed when the event start!", MESSAGE_STATUS_WARNING) setGlobalStorageValue(3, 0) addEvent(startEvent, 3 * 60 * 1000) return true end function startEvent() doRemoveItem(getTileItemById(c.teleportPosition, 1387).uid, 1) if getGlobalStorageValue(3) > 0 then addEvent(spawnZombie, 10 * 1000) doBroadcastMessage("Good luck in the zombie event people! The teleport has closed!", MESSAGE_STATUS_WARNING) else doBroadcastMessage('Zombie Event hasn\'t started beacuse there were not enough players.') end end function spawnZombie() if getGlobalStorageValue(3) > 0 then if #c.availablePos == 0 then for xin = c.fromPosition.x, c.toPosition.x do for yin = c.fromPosition.y, c.toPosition.y do if isWalkable({x = xin, y = yin, z = c.fromPosition.z}, true, false, false) then table.insert(c.availablePos, #c.availablePos + 1, {x = xin, y = yin, z = c.fromPosition.z}) -- Note que não e mais de 1 andar end end end end pos = c.availablePos[math.random(1, #c.availablePos)] doCreateMonster("Event Zombie", pos) doSendMagicEffect(pos, CONST_ME_MORTAREA) addEvent(spawnZombie, 10 * 1000) end end ISSO EH De um evento, o zombie event, e não está iniciando o evento na hora correta pois está dando esse erro na distro, vou deixar a parte que fica no globalevents.xml: <globalevent name="zombieevent" time="02:58" event="script" value="events/zombie.lua"/> <globalevent name="zombieevent2" time="03:00" event="script" value="events/zombie.lua"/>
  11. Valeu mesmo pelas respostas em galera, vou criar o mesmo tópico no xtibia, pq quando a gente mais precisa de vcs tem de ficar na mão, mto obrigado mesmo!
  12. Salve tibianos, queria saber quanto custa pra colocar um baiak online com semidedicado de 40 reais, queria saber se pra deixar o site online quanto custa também, e se eu iria precisar muito de um antiddos pago, andei pesquisando custa 100 reais, mas acho caro, é mto convencional? se eu usar um vps com sistema op linux, com antiddos gratis nao estarei protegido? façam uma lista pra mim pfv, obrigado.
  13. não não, n quero baixar nada obrigado, n pensei que fosse tão complicado assim, pensei que tivesse um passe de mágica que plim, fizesse andar pelo piso, mas obrigado ai pela ajuda e pelas respostas, rep + pra vc ! :D
  14. mano desculpa a minha leiguisse, eu to usando o remeres, da pra fazer isso pelo remeres? se sim, me manda as coordenadas de como eu pego essa object builder, a lava que eu quero é uma lava normal pra colocar no piso do evento firestorm entendeu? ai tipo, colocar a sala dela com o chao de lava acho que ficaria bem legal. o id da lava é 598

Informação Importante

Confirmação de Termo