Ir para conteúdo

sxeinjected

Membro
  • Registro em

  • Última visita

Tudo que sxeinjected postou

  1. Walls of hope não esta funcionando né? depois que entra no teleporte não tem como continuar com a missao de acesso.
  2. Deu certo vlw ! Pode me explicar o que essa função pega na config.lua ? function vip.setVip(cid,time) dofile("config.lua")
  3. Funcionou em partes,ao relogar aparece a msg 14:59 Você possui 30 dia(s) de vip. Ela irá durar até 18/09/17 14:59:11. Porem eu não consigo passar no tile. e quando dou o comando !vipdays 15:02 You're not a vip player. You naver has a vip. Citar isto @vankk Te passei a lib errada ,a correta é : vip = { name = "Vip system"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.executeQuery(vip.query) else db.executeQuery(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.executeQuery("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) --assert(acc,'Account is nil') --assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.executeQuery("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end Alterei o codigo para : local config = { days = 30, message = 'Você recebeu 30 dias de VIP. Parabéns!' } function onUse(cid, item, frompos, item2, topos) vip.addVipByAccount(acc, config.days) doPlayerSendTextMessage(cid, 22, config.message) doRemoveItem(item.uid, 1) return true end Só que esta me retornando erro no console Existe alguma função alem da OnUse ,que ao inves de ser CID ,seja acc ?
  4. --[[ Name: Vip System by Account Version: 1.0 Author: Kydrai Forum: http://www.xtibia.com/forum/topic/136543-vip-system-by-account-v10/ [Functions] -- Install installVip() -- By Account doTeleportPlayersByAccount(acc, topos) getVipTimeByAccount(acc) setVipTimeByAccount(acc, time) getVipDaysByAccount(acc) isVipAccount(acc) addVipDaysByAccount(acc, days) doRemoveVipDaysByAccount(acc, days) getVipDateByAccount(acc) -- By Player doTeleportPlayers(cid, topos) getVipTime(cid) setVipTime(cid, time) getVipDays(cid) isVip(cid) addVipDays(cid, days) doRemoveVipDays(cid, days) getVipDate(cid) ]]-- -- Install function installVip() if db.executeQuery("ALTER TABLE `accounts` ADD viptime INT(15) NOT NULL DEFAULT 0;") then print("[Vip System] Vip System instalado com sucesso!") return TRUE end print("[Vip System] Não foi possível instalar o Vip System!") return FALSE end -- By Account function doTeleportPlayersByAccount(acc, topos) if db.executeQuery("UPDATE `players` SET `posx` = "..topos.x..", `posy` = "..topos.y..", `posz` = "..topos.z.." WHERE `account_id` = "..acc..";") then return TRUE end return FALSE end function getVipTimeByAccount(acc) local vip = db.getResult("SELECT `viptime` FROM `accounts` WHERE `id` = "..acc..";") if vip:getID() == -1 then print("[Vip System] Account not found!") return FALSE end return vip:getDataInt("viptime") end function setVipTimeByAccount(acc, time) if db.executeQuery("UPDATE `accounts` SET `viptime` = "..time.." WHERE `id` = "..acc..";") then return TRUE end return FALSE end function getVipDaysByAccount(acc) local vipTime = getVipTimeByAccount(acc) local timeNow = os.time() local days = math.ceil((vipTime - timeNow)/(24 * 60 * 60)) return days <= 0 and 0 or days end function isVipAccount(acc) return getVipDaysByAccount(acc) > 0 and TRUE or FALSE end function addVipDaysByAccount(acc, days) if days > 0 then local daysValue = days * 24 * 60 * 60 local vipTime = getVipTimeByAccount(acc) local timeNow = os.time() local time = getVipDaysByAccount(acc) == 0 and (timeNow + daysValue) or (vipTime + daysValue) setVipTimeByAccount(acc, time) return TRUE end return FALSE end function doRemoveVipDaysByAccount(acc, days) if days > 0 then local daysValue = days * 24 * 60 * 60 local vipTime = getVipTimeByAccount(acc) local time = vipTime - daysValue setVipTimeByAccount(acc, (time <= 0 and 1 or time)) return TRUE end return FALSE end function getVipDateByAccount(acc) if isVipAccount(acc) then local vipTime = getVipTimeByAccount(acc) return os.date("%d/%m/%y %X", vipTime) end return FALSE end -- By Player function doTeleportPlayers(cid, topos) doTeleportPlayersByAccount(getPlayerAccountId(cid), topos) end function getVipTime(cid) return getVipTimeByAccount(getPlayerAccountId(cid)) end function setVipTime(cid, time) return setVipTimeByAccount(getPlayerAccountId(cid), time) end function getVipDays(cid) return getVipDaysByAccount(getPlayerAccountId(cid)) end function isVip(cid) return isVipAccount(getPlayerAccountId(cid)) end function addVipDays(cid, days) return addVipDaysByAccount(getPlayerAccountId(cid), days) end function doRemoveVipDays(cid, days) return doRemoveVipDaysByAccount(getPlayerAccountId(cid), days) end function getVipDate(cid) return getVipDateByAccount(getPlayerAccountId(cid)) end Não vai ,pois nao esta declarado a variavel id e nem name , no codigo da minha talkactions esta declarado ,porem mesmo declarando não vai o item não chega nem a sumir.
  5. SIm ele esta funcionando mas esta adicionando dias de premmy Eu uso um sistema de vip onde o player ganhar 20% a mais de exp e etc. TEm um tile em especifico que so passar player vip e ao usar esse codigo ,ele nao passa AGr se eu usar aquela talkcations que informei ,ele passa pelo tile e onde percebi e essa linha de codigo que informei que adiciona a vip ao player ,entendeu ?
  6. creio eu que teria que implementar essa funcao do codigo vip.addVipByAccount(getPlayerAccount(getPlayerByName(name)) ,vip.getDays(id)
  7. O codigo de vcs esta dando premmy eu uso um sistema vip .
  8. Hoje uso um sistema que para adicionar vip necessario dar o comando /addvip 30 nome player Gostaria de criar um item que ao dar use a pessoa ja receba 30 dias A minha talkactions : function onSay(cid, words, param) if param == "" then return doPlayerPopupFYI(cid,"Está com problemas?\nAprenda os comandos!\n---------------\nAdicionar vip:\n/vip add days player\n/vip add 30 Real\n---------------\nDeletar vip:\n/vip del player\n/vip del Real\n---------------\nVer a vip:\n/vip see player\n/vip see Real\n---------------\n") end if param:lower():find('add') == 1 and 3 then local _,_,id,name = param:lower():find('add (%d+) (.+)') name = name or "" id = tonumber(id or 1) or 1 if tonumber(id) == nil or getPlayerByName(name) == false then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Adicionar vip:\n/vip add days player\n/vip add 30 Real\n[Player: "..name.."]") end if isPlayer(getPlayerByName(name)) == TRUE then vip.addVipByAccount(getPlayerAccount(getPlayerByName(name)) ,vip.getDays(id)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"Foram adicionados "..tonumber(id).." dias de vip a "..name..".") doPlayerSendTextMessage(getPlayerByName(name),MESSAGE_INFO_DESCR,"Você recebeu "..tonumber(id).." dias de vip.") else doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,name.." não esta online ou não existe.") end elseif param:lower():find('del') == 1 and 3 then local _,_,name = param:lower():find('del (.+)') if getPlayerByName(name) == false then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Deletar vip:\n/vip del player\n/vip del Real\n") end vip.setVipByAccount(getPlayerAccount(getPlayerByName(name)),-os.time()) doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"A vip de "..name.." foi apagada.") elseif param:lower():find('see') == 1 and 3 then local _,_,name = param:lower():find('see (.+)') name = name or "" if getPlayerByName(name) == false then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Ver a vip:\n/vip see player\n/vip see Real\n") end local ret_ = vip.getVip(getPlayerByName(name)) if ret_ == 0 then return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,name.." Não tem vip, e nunca teve.") else return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "A vip de "..name.." Acaba/terminou em "..os.date("%d %B %Y %X ",ret_)) end end return TRUE end Queria saber como colocar essa parte do codigo : vip.addVipByAccount(getPlayerAccount(getPlayerByName(name)) ,vip.getDays(id) em uma função onUSe,alguem da um help ?
  9. Compilei pelo Ubuntu e estou rodando ok. Porém a hall of ropes não esta funcionando corretamente ,vc consegue ter acesso ao portal porem a maquina de imbui não funciona ,abre a tela e tudo mas nao da o atributo ao item e a quest para ter acesso aos bosses depois do portal também não funciona.
  10. sxeinjected postou uma resposta no tópico em Suporte Bots
    Amigo,faz tempo que nao uso o elfbot porem ,lembro que tem uma configuração no target,pra atacar somente que esta bem perto ou que esteja te atacando isso iria te ajudar
  11. Agora não fez nada,não apareceu erro nenhum também
  12. sxeinjected postou uma resposta no tópico em Suporte Tibia OTServer
    Fazendo uma rapida buscar no Forum achei :
  13. Bom dia,estou usando o seguinte código : <globalevent name="Teleport Automatico" time="8:12" event="script" value="teleportwar.lua"/> local configuration = { days = {"Tuesday", "Thursday", "Friday"}, to_pos = {x = 160, y = 54, z = 7}, --Para onde o teleport levará. pos = {x = 100, y = 950, z = 7}, --Onde o teleport será criado. teleport_id = 1387, --ID do teleport. aid = 3434, --Action ID do teleport. time = 120, --Tempo para fechar, em minutos. } function onTime() local x = os.date("%A") print("Day is: " .. x .. ".") if isInArray(configuration.days, x) then local item = getTileItemById(configuration.pos, configuration.teleport_id).uid if item < 1 then local tp = doCreateTeleport(configuration.teleport_id, configuration.to_pos, configuration.pos) doItemSetAttribute(tp, "aid", configuration.aid) broadcastMessage("A arena foi aberta.", MESSAGE_STATUS_WARNING) addEvent(function() tp = getTileItemById(configuration.pos, configuration.teleport_id).uid if tp and tp > 0 then doRemoveItem(tp) broadcastMessage("A arena foi fechada.") end end, configuration.time * 60 * 1000) end end return true end Porem está dando o seguinte erro: Alguem pode me dar uma luz do que possa ser ? o id do teleport está correto,o dia e horario também,creio eu que seja algum erro na função ontime()
  14. sxeinjected postou uma resposta no tópico em Suporte Bots
    Use essa action usegrounditem ID DA ALAVANCA
  15. Galera,seguinte ,Estou com algumas portas no meu servidor que elas não fecham ao passar por elas,por exemplo,nas portas só pode passar se tiver X storage,beleza,o player se tiver ele consegue abrir a porta,mas eu queria que ela se fechasse ao passar,tentei usar varios tipo de porta,mas não deu,a unica que consegui foi a closed door ,com o meu script,mas ela fica aberta ao passar,aquelas portas de chave,ela não funciona com meu script,ela não abre,alguem pode me dar uma luz do que posso fazer ?
  16. sxeinjected postou uma resposta no tópico em Suporte Tibia OTServer
    Troquei a tfs do meu servidor,e mudei algumas pastas também,ao iniciar e dar Hi aos npcs,aparece o seguinte erro ,e os npc não respondem : Já troquei o arquivo npchandler,por outros e msm assim o erro continua,o que pode ser?
  17. Na vdd hj os programadores de otserver a maioria usa Linux,por ser um Sistema mais estavel,então eles mandam os arquivos que ele utilizam e quem usa windows que compile para windows,por isso que da esses bugs normalmente,pq eles compila em linux e edita td em linux,então está pronto pra funcionar em linux,mas quando muda de plataforma vem esses bugs. Ah mas pq eles não compila pra windows pra nós ? ,eles ja fazem o favor de postar o servidor,agr obrigar eles a postar pra windows já é de mais... Uma dica é instalar o Linux em sua maquina,atraves de uma maquina virtual e tentar compilar por lá,tera mais chances de dar certo.
  18. Fiz tudo ,mas não funcionou não teria que alterar algo no NPC? Tentei colocar também no login.lua : registerCreatureEvent(cid, "TaskKIlling") Mas não deu,porem agora está dando um erro no console [WARNING - Error:: Killing in the name of::Tasks config] Something is wrong.
  19. Esse é o arquivo da creaturescript certo ?
  20. Testei seu código ,mas ficou na mesma, sim o npc entrega a task. 09:23 Grizzly Adams: You have started the task number 1, in this task you need to kill 20 Rotworms. Porém não conta os bixos que morrem ,apos isso fui e matei 1 rotworm,ele não aparece a contagem no default,e também quando digo report ao npc ele me retorna : 09:23 Grizzly Adams: Current 0 Rotworms killed, you need to kill 20. Esse npc foi um amigo que me passou,era do antigo servidor dele,funcionava 100% ,o player nao escolhe as tasks,ele ja dá a task uma seguida da outra 1,2,3 até 20. Testei colocar dentro do script das rotworm o event Killinginthenameof,como diz em algum tutorias de instalação do Grizzly adams,mas também não adiantou.
  21. Ola,estou testando o script killinginthenameof.lua Porem,instalei tudo corretamente,com algumas edições,mas não funciona nem o original,nem o editado com os monstros defenidos por mim,Criei na pasta creaturescripts,e registrei no login.lua,mas mesmo assim quando eu mato o bixo determinado ele não aparece no meu default,e quando falo report para o npc ,ele fala que matei 0 de X monstros. Segue meus scripts. Login.lua Killinginthenameof.lua function onKill(cid, target, lastHit) local questCreatures = { ["Rotworm"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15000, killsRequired = 20, raceName = "Rotworms"}, ["Carrion Worm"] = {questStarted = 1510, questStorage = 65000, creatureStorage = 15001, killsRequired = 20, raceName = "Rotworms"}, ["Dwarf"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15004, killsRequired = 20, raceName = "Dwarfs"}, ["Dwarf Soldier"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15005, killsRequired = 20, raceName = "Dwarfs"}, ["Dwarf Guard"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15006, killsRequired = 20, raceName = "Dwarfs"}, ["Dwarf Geomancer"] = {questStarted = 1511, questStorage = 65001, creatureStorage = 15007, killsRequired = 20, raceName = "Dwarfs"}, ["Kongra"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15011, killsRequired = 50, raceName = "Apes-Macacos"}, ["Sibang"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15008, killsRequired = 50, raceName = "Apes-Macacos"}, ["Merlkin"] = {questStarted = 1512, questStorage = 65002, creatureStorage = 15009, killsRequired = 50, raceName = "Apes-Macacos"}, ["Bog Raider"] = {questStarted = 1513, questStorage = 65004, creatureStorage = 15016, killsRequired = 50, raceName = "Bog Raiders"}, ["Blood Beast"] = {questStarted = 1513, questStorage = 65004, creatureStorage = 15042, killsRequired = 50, raceName = "Bog Raiders"}, ["Dragon"] = {questStarted = 1514, questStorage = 65003, creatureStorage = 15013, killsRequired = 50, raceName = "Dragons"}, ["Dragon Hatchling"] = {questStarted = 1514, questStorage = 65003, creatureStorage = 15014, killsRequired = 50, raceName = "Dragons"}, ["Dragon Lord"] = {questStarted = 1514, questStorage = 65003, creatureStorage = 15010, killsRequired = 50, raceName = "Dragons"}, ["Dragon Lord Hatchling"] = {questStarted = 1514, questStorage = 65003, creatureStorage = 15055, killsRequired = 50, raceName = "Dragons"}, ["Hydra"] = {questStarted = 1515, questStorage = 65005, creatureStorage = 15017, killsRequired = 100, raceName = "Hydras"}, ["Frost Dragon"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15018, killsRequired = 100, raceName = "Frost Dragons"}, ["Frost Dragon Hatchling"] = {questStarted = 1516, questStorage = 65006, creatureStorage = 15002, killsRequired = 100, raceName = "Frost Dragons"}, ["Sea Serpent"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15019, killsRequired = 100, raceName = "Sea Serpents"}, ["Young Sea Serpent"] = {questStarted = 1517, questStorage = 65007, creatureStorage = 15040, killsRequired = 100, raceName = "Sea Serpents"}, ["Serpent Spawn"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15020, killsRequired = 100, raceName = "Serpent Spawns"}, ["Serpent Spawns"] = {questStarted = 1518, questStorage = 65008, creatureStorage = 15041, killsRequired = 100, raceName = "Serpent Spawns"}, ["Medusa"] = {questStarted = 1519, questStorage = 65009, creatureStorage = 15021, killsRequired = 100, raceName = "Medusas"}, ["Lizard Templar"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15022, killsRequired = 100, raceName = "Lizards"}, ["Lizard Lord"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15023, killsRequired = 100, raceName = "Lizards"}, ["Lizard High Guard"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15024, killsRequired = 100, raceName = "Lizards"}, ["Lizard Zaogun"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15025, killsRequired = 100, raceName = "Lizards"}, ["Lizard Legionnaire"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15026, killsRequired = 100, raceName = "Lizards"}, ["Lizard Chosen"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15031, killsRequired = 100, raceName = "Lizards"}, ["Lizard Dragon Priest"] = {questStarted = 1520, questStorage = 65010, creatureStorage = 15030, killsRequired = 100, raceName = "Lizards"}, ["Draken Warmaster"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15027, killsRequired = 100, raceName = "Drakens"}, ["Draken Spellweaver"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15003, killsRequired = 100, raceName = "Drakens"}, ["Draken Elite"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15028, killsRequired = 100, raceName = "Drakens"}, ["Draken Abomination"] = {questStarted = 1521, questStorage = 65011, creatureStorage = 15029, killsRequired = 100, raceName = "Drakens"}, ["Warlock"] = {questStarted = 1522, questStorage = 65012, creatureStorage = 15032, killsRequired = 100, raceName = "Warlocks"}, ["Infernalist"] = {questStarted = 1523, questStorage = 65013, creatureStorage = 15036, killsRequired = 100, raceName = "Infernalists"}, ["Behemoth"] = {questStarted = 1524, questStorage = 65014, creatureStorage = 15043, killsRequired = 100, raceName = "Behemoths"}, ["Worker Golem"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15044, killsRequired = 100, raceName = "Golems"}, ["War Golem"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15045, killsRequired = 100, raceName = "Golems"}, ["Moria Golem"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15046, killsRequired = 100, raceName = "Golems"}, ["Manwe"] = {questStarted = 1525, questStorage = 65015, creatureStorage = 15047, killsRequired = 100, raceName = "Golems"}, ["Caribian Pirate"] = {questStarted = 1526, questStorage = 65016, creatureStorage = 15048, killsRequired = 100, raceName = "Pirates"}, ["Ghastly Dragon"] = {questStarted = 1527, questStorage = 65017, creatureStorage = 15049, killsRequired = 100, raceName = "Ghastly Dragons"}, ["Necrolord"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15050, killsRequired = 100, raceName = "Necrolords"}, ["Blood Necrolord"] = {questStarted = 1528, questStorage = 65018, creatureStorage = 15051, killsRequired = 100, raceName = "Necrolords"}, ["Demon"] = {questStarted = 1529, questStorage = 65019, creatureStorage = 15052, killsRequired = 50, raceName = "Demons"} } local creature = questCreatures[getCreatureName(target)] if creature then if(isPlayer(target) == true) then return true end if getPlayerStorageValue(cid, creature.questStarted) > 0 then if getPlayerStorageValue(cid, creature.questStorage) < creature.killsRequired then if getPlayerStorageValue(cid, creature.questStorage) < 0 then setPlayerStorageValue(cid, creature.questStorage, 0) end if getPlayerStorageValue(cid, creature.creatureStorage) < 0 then setPlayerStorageValue(cid, creature.creatureStorage, 0) end setPlayerStorageValue(cid, creature.questStorage, getPlayerStorageValue(cid, creature.questStorage) + 1) setPlayerStorageValue(cid, creature.creatureStorage, getPlayerStorageValue(cid, creature.creatureStorage) + 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "" .. getPlayerStorageValue(cid, creature.creatureStorage) .. " " .. getCreatureName(target) .. " defeated. Total [" .. getPlayerStorageValue(cid, creature.questStorage) .. "/" .. creature.killsRequired .. "] " .. creature.raceName .. ".") end end end return true end Creaturescripts.xml <?xml version="1.0" encoding="UTF-8"?> <creaturescripts> <event type="login" name="PlayerLogin" event="script" value="login.lua"/> <event type="login" name="viplogin" script="viplogin.lua"/> <event type="login" name="firstitem" script="firstitems.lua"/> <event type="death" name="ferumbrasoftower" event="script" value="ferumbrasoftower.lua"/> <event type="death" name="ushuriel" event="script" value="ushuriel.lua"/> <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/> <event type="receivemail" name="Mail" event="script" value="mail.lua"/> <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/> <event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/> <event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/> <event type="statschange" name="zombieevent" event="script" value="zombievent.lua"/> <event type="login" name="FimVip" event="script" value="vip.lua"/> <event type="login" name="ExpVip" script="vipexp.lua"/> <event type="PrepareDeath" name="pvparena" script="pvparena.lua"/> <event type="attack" name="attackguild" script="attackguild.lua"/> <event type="kill" name="TopFrags" event="script" value="topfrags.lua"/> <event type="death" name="azerus" event="script" value="azerus.lua"/> <event type="death" name="teleportmonster" script="tpmonster.lua"/> <event type="preparedeath" name="b_hunterKill" event="script" value="b_hunterKill.lua"/> <event type="kill" name="KillingInTheNameOf" event="script" value="killinginthenameof.lua"/> <!-- Amulet Shop --> <event type="PrepareDeath" name="skullamulet" event="script" value="skullamulet.lua"/> <event type="PrepareDeath" name="chargeamulet" event="script" value="chargeamulet.lua"/> <event type="preparedeath" name="foreveramulet" event="script" value="foreveramulet.lua"/> <!-- Potion Double Exp --> <event type="login" name="expRate" event="script" value="potionexp.lua"/> <event type="death" name="ga1" event="script" value="ga1.lua"/> <event type="death" name="ga2" event="script" value="ga2.lua"/> <event type="death" name="ga3" event="script" value="ga3.lua"/> <event type="death" name="gv1" event="script" value="gv1.lua"/> <event type="death" name="gv2" event="script" value="gv2.lua"/> <event type="death" name="gv3" event="script" value="gv3.lua"/> <!-- WoE --> <event type="death" name="empe_broken" event="script" value="empe_broken.lua"/> <event type="death" name="pre_empes" event="script" value="pre_empes.lua"/> <event type="statschange" name="empe_dmg" event="script" value="empe_dmg.lua"/> <event type="login" name="reg_vs_guard" event="script" value="vs_guard.lua"/> <event type="statschange" name="vs_guard" event="script" value="vs_guard.lua"/> </creaturescripts> <!-- <event type="think" name="idle" event="script" value="idle.lua"/> -->
  22. No meu distro acusou erro na função ontimer(),pode alteralo para mim?,não sei qual outra função usar e que tenha na minha distro.
  23. Bom dia ! Gostaria de saber se alguem consegue me ajudar,a deixar esse evento aberto apenas em determinados dias ,horas. Exemplo gostaria que ele fosse aberto nos dia x,y nos horario z,h No caso o teleport iria abrir no templo apenas nesses dias,e após um determinado tempo X ,o teleport iria sumir do templo. Edit: Como faço para os players que não sao da guild dominante serem teleportados para o templo ? Todos estão ficando na area do evento.

Informação Importante

Confirmação de Termo