Tudo que poko360 postou
-
[DUVIDA] Aluguel de house
se o player alugar uma casa, e nao tiver dinheiro no banco, quando vir o proximo pagamento da casa ,os items que estão dentro da house sao apagados ou vão pro depot da townid?
-
[AJUDA] comando !eject , os items não vao pro depot
quando 1 player da !eject em uma house, os items do antigo dono deveriam ir pro depot, só que os items estão sendo DELETADOS alguem sabe arrumar isso? o talkaction que eu uso: function onSay(cid, words, param) local position = getPlayerPosition(cid) if getPlayerLookDir(cid) == 0 then positions = {x=position.x, y=position.y-1, z=position.z} elseif getPlayerLookDir(cid) == 1 then positions = {x=position.x+1, y=position.y, z=position.z} elseif getPlayerLookDir(cid) == 2 then positions = {x=position.x, y=position.y+1, z=position.z} elseif getPlayerLookDir(cid) == 3 then positions = {x=position.x-1, y=position.y, z=position.z} end if getHouseFromPos(positions) == false then doPlayerSendTextMessage(cid, 27, "Voce precisa estar na frente a porta da casa para usar o comando.") return true end local days = 20*24*60*60 local own = getHouseOwner(getHouseFromPos(positions)) local qry = db.getResult("SELECT `lastlogin` FROM `players` WHERE `id` = "..own) if(qry:getID() ~= -1) then last = tonumber(qry:getDataInt("lastlogin")) if last < os.time() - days then setHouseOwner(getHouseFromPos(positions), NO_OWNER_PHRASE,true) doPlayerSendTextMessage(cid, 27, "A Casa agora esta sem dono, você ou outro jogador pode compra-la") end if last > os.time() - days then doPlayerSendTextMessage(cid, 27, "O proprierário desta casa ainda está ativo no servidor, tente outra casa.") end end return true end
-
[Pedido] Quest global, quando ser feito, todos os players ganhar 2x de exp no ot todo
up
-
tem como remover exausth entre runas e potions?
@luanmaximus, nao tem essa linha local exhaust = Condition(CONDITION_EXHAUST_HEAL) exhaust:setParameter(CONDITION_PARAM_TICKS, (configManager.getNumber(configKeys.EX_ACTIONS_DELAY_INTERVAL) - 100)) eu uso outro script de potion, que heala por level
-
[Pedido] Quest global, quando ser feito, todos os players ganhar 2x de exp no ot todo
obrigado amigo testei aqui só que tenho 2 duvidas *eu testei aqui e nao ta dando a double xp como posso arrumar? (nao apareceu nada na distro) (ANTES DA QUEST) -02:59 You gained 5000000 experience points. (DEPOIS DA QUEST) -03:00 You gained 5000000 experience points. *onde eu posso configurar esses "3 dias"?
-
[Pedido] Quest global, quando ser feito, todos os players ganhar 2x de exp no ot todo
tipo, alguem poderia fazer uma quest assim? *1 teleport é criado no templo (anunciando pra todos) *depois de 15 minutos o teleport é fechado *os players fazem a quest (essa parte teria que ser comigo) *ao terminar a quest, uma pessoa só abre a quest dando double exp pro ot todo (tipo uma globalstorage) *se outra pessoa pessoa abrir a mesma quest, da error ("A double xp ja foi ativada nesse servidor por x dias") *duração de uns 3 dias para remover a storage global obrigado quem puder ajudar :')
-
qual VPS eu usaria pra um baiak mapa de 20mb com 60 online?
qual VPS eu usaria pra um baiak mapa de 20mb com 60 online QUE FIQUE LIZINHO
-
tem como remover exausth entre runas e potions?
tipo, o intervalo da potion é 1 segundo, e da runa 1 segundo tbm, dai tipo, o mage ta la no pvp, ou ele usa a potion pra curar ou ele usa a runa para atacar, queria que ele pudesse usar os a potione a runa a cada 1 segundo tlgd?
-
tem como remover exausth entre runas e potions?
tem como remover exausth entre runas e potions?
-
NpC Travel
pra ele responder vc tem que editar isso aqui -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para yalahar por 0 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 50000, cost = 0, destination = {x=2097, y=2749, z=6}}) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'})
-
(Resolvido)[pedido] item ao ser equipado ganhar storage, e quando ser desequipado remover storage
RESOLVIDO! obrigado REP+
-
NpC Travel
ola, Crie um arquivo lua em (data/npc) e coloque isso <npc name="Capitain Johnny" script="data/npc/scripts/captain free.lua" walkinterval="1000" floorchange="0" access="5" level="1" maglevel="1"> <health now="150" max="150"/> <look type="96" head="114" body="119" legs="114" feet="114" corpse="2212"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. ! Eu posso te levar para {central}, {yalahar}, {carlin} Onde deseja ir?" /> <parameter key="message_decline" value="Vai custar |TOTALCOST| gold coins. Vai viajar?!"/> </parameters> </npc> Após fazer isso crie um arquivo em ( data/npc/script ) e cole isso: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'central'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para central por 0 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 1, cost = 0, destination = {x=114, y=12, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para yalahar por 0 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 50000, cost = 0, destination = {x=2097, y=2749, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) Cidade Position frase editavel caso queira adicionar mais uma cidade é só copiar essa linha e botar abaixo da outra -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'yalahar'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer viajar para yalahar por 0 gold coins?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 50000, cost = 0, destination = {x=2097, y=2749, z=6} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'})
-
(Resolvido)[pedido] item ao ser equipado ganhar storage, e quando ser desequipado remover storage
[pedido] item ao ser equipado ganhar storage, e quando ser desequipado remover storage
-
(Resolvido)[Pedido] Colocar pra quem tiver em Area PZ usar esse item
Valeu! REP+
-
(Resolvido)[Pedido] Colocar pra quem tiver em Area PZ usar esse item
Colocar pra quem tiver em Area PZ usar esse item, obgd local t = { delay = 5, -- Tempo em segundos para usar novamente. storage = 45555 -- Storage para utilizar. } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, t.storage) < os.time() then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) setPlayerStorageValue(cid, t.storage, t.delay + os.time()) doRemoveItem(item.uid) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT) doSendMagicEffect(fromPosition, CONST_ME_TELEPORT) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você precisa aguardar ".. getPlayerStorageValue(cid, t.storage) - os.time() .." segundo(s) para usar novamente.") end return true end
-
(Resolvido)Ajuda Item para ir ao templo
amigo, tem como colocar só pra quem tiver em uma area PZ?
-
[Ajuda] Demon oak quest
up
-
[Ajuda] Demon oak quest
Citar function onUse(cid, item, fromPosition, itemEx, toPosition) local onePerQuest = true local level = 120 local positions = { kick = { x = 713, y = 594, z = 7 }, summon = { {x=707, y=604, z=7}, {x=708, y=597, z=7}, {x=717, y=598, z=7}, {x=718, y=604, z=7} } } local summons = { [1] = {"Demon", "Grim Reaper", "Elder Beholder", "Demon Skeleton"}, [2] = {"Dark Torturer", "Banshee", "Betrayed Wraith", "Blightwalker"}, [3] = {"Bonebeast", "Braindeath", "Diabolic Imp", "Giant Spider"}, [4] = {"Hand of Cursed Fate", "Lich", "Undead Dragon", "Vampire"}, [5] = {"braindeath", "Demon", "Bonebeast", "Diabolic Imp"}, [6] = {"Demon Skeleton", "Banshee", "Elder Beholder", "Bonebeast"}, [7] = {"Dark Torturer", "Undead Dragon", "Demon", "Demon"}, [8] = {"Elder Beholder", "Betrayed Wraith", "Demon Skeleton", "Giant Spider"}, [9] = {"Demon", "Banshee", "Blightwalker", "Demon Skeleton"}, [10] = {"Grim Reaper", "Demon", "Diabolic Imp", "Braindeath"}, [11] = {"Banshee", "Grim Reaper", "Hand of Cursed fate", "Demon"} } local areaPosition = { {x=704, y=596, z=7, stackpos = 255}, {x=722, y=606, z=7, stackpos = 255} } local demonOak = {8288, 8289, 8290, 8291} local storages = { done = 35700, cutTree = 36901 } local blockingTree = { [2709] = {32193, 3669} } if blockingTree[itemEx.itemid] and itemEx.uid == blockingTree[itemEx.itemid][1] then local tree = toPosition if isInRange(tree, areaPosition[1], areaPosition[2]) then print("[Warning - Error::Demon Oak] Dead tree position is inside the quest area positions.\nDead tree position (x: " .. tree.x .. ", y: " .. tree.y .. ", z: " .. tree.z .. ")\nNorth-West area position (x: " .. areaPosition[1].x .. ", y: " .. areaPosition[1].y .. ", z: " .. areaPosition[1].z .. ")\nSouth-West area position (x: " .. areaPosition[2].x .. ", y: " .. areaPosition[2].y .. ", z: " .. areaPosition[2].z .. ")\nScript will not work correctly, please fix it.") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Something is wrong, please contact a gamemaster.") return false end if getPlayerLevel(cid) < level then doPlayerSendCancel(cid, "You need level " .. level .. " or more to enter this quest.") return true end if getPlayerStorageValue(cid, storages.done) > 0 then doPlayerSendCancel(cid, "You already done this quest.") return true end if getPlayerStorageValue(cid, storages.cutTree) > 0 then return false end if onePerQuest then local players = getPlayersOnline() for _, pid in ipairs(players) do if isInRange(getCreaturePosition(pid), areaPosition[1], areaPosition[2]) then doPlayerSendCancel(cid, "Wait until " .. getCreatureName(pid) .. " finish the quest.") return true end end end doTransformItem(itemEx.uid, blockingTree[itemEx.itemid][2]) doSendMagicEffect(toPosition, CONST_ME_POFF) doMoveCreature(cid, SOUTH) doPlayerSetStorageValue(cid, storages.cutTree, 1) return true elseif isInArray(demonOak, itemEx.itemid) then local get = getPlayerStorageValue(cid, itemEx.itemid) if get == -1 then doPlayerSetStorageValue(cid, itemEx.itemid, 1) end if(getPlayerStorageValue(cid, 8288) == 12 and getPlayerStorageValue(cid, 8289) == 12 and getPlayerStorageValue(cid, 8290) == 12 and getPlayerStorageValue(cid, 8291) == 12) then doTeleportThing(cid, positions.kick) doPlayerSetStorageValue(cid, storages.done, 1) return true end if getPlayerStorageValue(cid, itemEx.itemid) > 11 then doSendMagicEffect(toPosition, CONST_ME_POFF) return true end if(math.random(100) <= 1) then doPlayerSetStorageValue(cid, itemEx.itemid, 12) return true end if summons[get] then for i = 1, #summons[get] do doSummonCreature(summons[get], positions.summon) end doSendMagicEffect(toPosition, CONST_ME_DRAWBLOOD) doPlayerSetStorageValue(cid, itemEx.itemid, get + 1) if math.random(100) >= 50 then doTargetCombatHealth(0, cid, COMBAT_EARTHDAMAGE, -270, -310, CONST_ME_BIGPLANTS) end end return false end end
-
[Ajuda] Demon oak quest
eu queria muito um script de demon oak quest com um tutorial passo a passo, eu tenho um script pronto aqui que ja vem no meu ot, mas eu nao entendo 50% do script alguem poderia me ajudar? ja procurei aqui no tibiaking e só tem gente dizendo q o script ta bugado e pedindo ajuda :s
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
Aeeee, funcionou, coloquei as potion infinitas aqui, muito obrigado mesmo
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
[Error - Action interface] data/actions/scripts/liquids/potions.lua:onUse Description: <luaDoTargetCombatMana> Creature not found dei reload 2 vezes ;x
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
mesmo error =/
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
mana potion normal, clica e usa no usuario
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
ta com o mesmo error =/ meu distro é TFS 0.4
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
nao ta funcionando =/, pode me mandar sua tag no actions.xml?