Tudo que Boush postou
- [NPC] Papai Noel - Que dá presente
-
(Resolvido)[PEDIDO] NPC que da itens aleátorio diariamente.
Olá, eu preciso de um NPC TFS 0.4 que se o player falar hi-present-yes ele entregue o item id: 11401. O Player pode pedir o item novamente a cada 24 horas e precisa ter lv 200+ . Quando o player der use nesse item ele tem chance de ganhar aleatoriamente outros itens (configuravel e se possivel com quantidade ilimitada). Caso seja muito difícil de fazer como eu quero, pode ser apenas o NPC entregando os items aleatoriamente a cada 24 horas e precisar ter lv 200+. Desde já agradeço.
-
PERFECT ZOMBIE SYSTEM EVENT!
sério como ele tem coragem de falar que esse é "PERFECT ZOMBIE EVENT", esse evento ta cheio de bug e não aparece uma moderador pra dar bronca no cara!
-
(Resolvido)[AJUDA] Script de chave
Obrigado!
-
(Resolvido)[AJUDA] Script de chave
Olá, estou usando um script de chave e gostaria de fazer que a chave fosse usada apenas uma vez (e se possivel a porta ficasse aberta por 30 seg e depois fechar) aqui segue o script da chave: function onUse(cid, item, frompos, item2, topos) portafechada = 5105 -- coloque aqui o ID da porta fechada portaaberta = 5106 -- coloque aqui o ID da porta aberta uidporta = 5011 -- coloque aqui o UID da porta idkey = 2091 -- coloque aqui o id da key if item.itemid == idkey and item2.itemid == portafechada and item2.uid == uidporta then doTransformItem(item2.uid,portaaberta) elseif item.itemid == idkey and item2.itemid == portaaberta and item2.uid == uidporta then doTransformItem(item2.uid,portafechada) else doPlayerSendTextMessage(cid,22,"Sorry, not possible.") end return 1 end aqui a script da porta: function onUse(cid, item, frompos, item2, topos) if item.itemid == 5105 and item.uid == 1026 then doPlayerSendTextMessage(cid,22,"you do not have a silver key.") end end return 1
-
[PEDIDO] Puxar alavancas para aparecer portal
Olá eu gostaria de um script que quando eu puxasse as alavancas nesta ordem abriria um portal que duraria 30 segundos:
- Wand of Elements
- Wand of Elements
-
[AJUDA] Unique ID que resete bau de quest todos os dias
Obrigado!
-
[AJUDA] Unique ID que resete bau de quest todos os dias
quero que o mesmo player possa fazer a cada 24h
-
[AJUDA] Unique ID que resete bau de quest todos os dias
Olá, alguém sabe me dizer se tem alguma Unique ID que reseta bau de quest a cada 24 horas?
-
(Resolvido)[Ajuda][RESOLVIDO] Exura gran mas res curando monstro.
caso alguém precise aqui está a solução:
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
-
(Resolvido)[Ajuda][RESOLVIDO] Exura gran mas res curando monstro.
o nome do tópico ja diz tudo, gostaria de saber se alguém sabe me ajudar.
-
[Ajuda] Second Promotion e NPC
Olá eu criei essa NPC de Second Promotion, mas toda vez que tento comprar a second promotion o npc diz que precisa de premium account, aqui segue o script .lua do NPC. meu outro problema é que quando adicionei a novas vocations quem era Druid, Paladin, Sorcerer e Knight viraram ED, RP, MS e EK e quem era ED, RP, MS e EK virou as novas promotion (fora a parte que quando alguém vai pedir promotion pro rei ou rainha eles viram direto as novas promotion, aqui segue o arquivo vocations.xml se alguém puder me ajudar, ficaria muito agradecido!
-
[v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
poderia me falar qual linha é? function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) local iEx = Item(itemEx.uid) if (itemEx.uid <= 65535 or itemEx.actionid > 0) then if (itemEx.itemid == 354 or itemEx.itemid == 355) then iEx:transform(392) iEx:decay() toPosition:sendMagicEffect(CONST_ME_POFF) end elseif itemEx.itemid == 7200 then iEx:transform(7236) iEx:decay() toPosition:sendMagicEffect(CONST_ME_HITAREA) end -- Shadows of Yalahar if itemEx.itemid == 8933 then if(getPlayerStorageValue(cid, 95592) == 10) and getPlayerStorageValue(cid, 92900) < 15 then doCreatureSay(cid, "You have unearthed a crystal!", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, 10169, 1) doSendMagicEffect(toPosition, CONST_ME_POFF) setPlayerStorageValue(cid, 92900, getPlayerStorageValue(cid, 92900) + 1) end end -- Pythius the Rotten if itemEx.itemid == 9341 then if(getPlayerStorageValue(cid, 14201) == 1) then local tiles = {{x=32550,y=31373,z=15}, {x=32550,y=31374,z=15}, {x=32550,y=31375,z=15}, {x=32550,y=31376,z=15}, {x=32550,y=31377,z=15}, {x=32550,y=31378,z=15}, {x=32550,y=31379,z=15}, {x=32551,y=31373,z=15}, {x=32551,y=31374,z=15}, {x=32551,y=31375,z=15}, {x=32551,y=31376,z=15}, {x=32551,y=31377,z=15}, {x=32551,y=31378,z=15}, {x=32551,y=31379,z=15}} for i = 1, #tiles do if i > 8 and i < 15 then doRelocate(tiles[i], {x=tiles[i].x+1, y=i == 14 and tiles[i].y-1 or tiles[i].y, z=tiles[i].z}) end doCreateItem(i == 14 and 5815 or 5815, 1, tiles[i]) end py = doCreateItem(1387, {x=32551, y=31376, z=15}) doSetItemActionId(py, 33810) doRemoveItem(getTileItemById({x=32552,y=31378,z=15}, 9341).uid, 1) doRemoveItem(getTileItemById({x=32551,y=31379,z=15}, 9341).uid, 1) doRemoveItem(getTileItemById({x=32551,y=31379,z=15}, 1304).uid, 1) end end --The Ice Islands Quest, Nibelor 1: Breaking the Ice if itemEx.itemid == 3621 and itemEx.actionid == 12026 then local tile1 = toPosition:getTile() local thing1 = tile1:getItemById(7185) local chakoyas = {"chakoya toolshaper","chakoya tribewarden","chakoya windcaller"} if player:getStorageValue(12026) > 0 and player:getStorageValue(12002) < 1 and player:getStorageValue(12001) == 3 then player:setStorageValue(12002, player:getStorageValue(12002) + 1) player:setStorageValue(12026, player:getStorageValue(12026) + 1) -- Questlog The Ice Islands Quest, Nibelor 1: Breaking the Ice doSummonCreature(chakoyas[math.random(1, 3)], toPosition) toPosition:sendMagicEffect(CONST_ME_TELEPORT) thing1:transform(7186) addEvent(function () local tile = toPosition:getTile() if tile then local thing = tile:getItemById(7186) if thing and thing:isItem() then thing:transform(7185) end end end, 60 * 1000) else if player:getStorageValue(12002) == 1 then player:setStorageValue(12001, 4) player:setStorageValue(12002, player:getStorageValue(12002) + 1) player:setStorageValue(12026, 4) -- Questlog The Ice Islands Quest, Nibelor 1: Breaking the Ice doSummonCreature(chakoyas[math.random(1, 3)], toPosition) toPosition:sendMagicEffect(CONST_ME_TELEPORT) thing1:transform(7186) addEvent(function () local tile = toPosition:getTile() if tile then local thing = tile:getItemById(7186) if thing and thing:isItem() then thing:transform(7185) end end end, 60 * 1000) end end end return true end
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
-
[AJUDA] Script Shop Bug
Olá estou com problemas no meu shop, está acontecendo o seguinte, eu vou lá compro o item e ele chega normalmente no meu personagem o problema é que ele fica chegando de 30 em 30 segundos e fica vindo pra sempre alguém poderia me ajudar? aqui está o script -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 18 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.storeQuery("SELECT * FROM z_ots_comunication") if(result_plr ~= false) then repeat local id = tonumber(result.getDataInt(result_plr, "id")) local action = tostring(result.getDataString(result_plr, "action")) local delete = tonumber(result.getDataInt(result_plr, "delete_it")) local cid = getPlayerByName(tostring(result.getDataString(result_plr, "name"))) if(cid) then local itemtogive_id = tonumber(result.getDataInt(result_plr, "param1")) local itemtogive_count = tonumber(result.getDataInt(result_plr, "param2")) local container_id = tonumber(result.getDataInt(result_plr, "param3")) local container_count = tonumber(result.getDataInt(result_plr, "param4")) local add_item_type = tostring(result.getDataString(result_plr, "param5")) local add_item_name = tostring(result.getDataString(result_plr, "param6")) local storage = tostring(result.getDataString(result_plr, "param7")) local received_item = 0 local full_weight = 0 if(add_item_type == 'container') then container_weight = getItemWeight(container_id, 1) if(isItemRune(itemtogive_id)) then items_weight = container_count * getItemWeight(itemtogive_id, 1) else items_weight = container_count * getItemWeight(itemtogive_id, itemtogive_count) end full_weight = items_weight + container_weight else full_weight = getItemWeight(itemtogive_id, itemtogive_count) if(isItemRune(itemtogive_id)) then full_weight = getItemWeight(itemtogive_id, 1) else full_weight = getItemWeight(itemtogive_id, itemtogive_count) end end local free_cap = getPlayerFreeCap(cid) if(full_weight <= free_cap) then if(add_item_type == 'container') then local new_container = doCreateItemEx(container_id, 1) local iter = 0 while(iter ~= container_count) do doAddContainerItem(new_container, itemtogive_id, itemtogive_count) iter = iter + 1 end received_item = doPlayerAddItemEx(cid, new_container) else local new_item = doCreateItemEx(itemtogive_id, itemtogive_count) received_item = doPlayerAddItemEx(cid, new_item) end if(type(received_item) == "number" and received_item == RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received '.. add_item_name ..' from ArenaTibia Shop.') setPlayerStorageValue(cid,storage+555884621212,1) db.query("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";") db.query("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";") else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, ' '.. add_item_name ..' from ArenaTibia Shop is waiting for you. Please make place for this item in your backpack/hands and wait about '.. SQL_interval ..' seconds to get it.') end else doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, ' '.. add_item_name ..' ArenaTibia Shop is waiting for you. It weight is '.. full_weight ..' oz., you have only '.. free_cap ..' oz. free capacity. Put some items in depot and wait about '.. SQL_interval ..' seconds to get it.') end end until not result.next(result_plr) result.free(result_plr) end return true end
-
(Resolvido)[PEDIDO] NPC Towncryer
vlw!
-
[AJUDA] Deixando servidor online
Eu consegui resolver esse problema. Ele não está afetando em nada no servidor mas agradeço pela a ajuda!
-
(Resolvido)[PEDIDO] NPC Towncryer
Olá, como npc towncryer que vem no servidor 10.76 tfs 1.0 está bugado, gostaria de saber se alguém pode me fazer um npc towncryer com as falas configuraveis.
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
-
[AJUDA] Deixando servidor online
Olá, eu estou tentando deixar meu servidor online, mas está acontecendo o seguinte, alguém tem sabe o que pode ser isso? The Forgotten Server - Version 1.0 Compilied on Mar 17 2015 03:45:59 for arch x64 A server developed by TFS TEAM, Others Visit our forum for updates, support, and resources: http://otland.net/. >> Loading config >> Establishing database connection... MySQL 5.5.40 >> Running database manager [Error - DatabaseManager::updateDatabase - Version: -1] cannot open data/migrations/-1.lua: No such file or directory >> Loading vocations >> Loading items >> Loading script systems >> Loading monsters >> Loading outfits >> Checking world type... PVP >> Loading map > Map size: 48422x47676. > Map loading time: 15.386 seconds. > Loaded house items in: 0.012 s >> Initializing gamestate >> Loaded 718 npcs, spawned 51777 monsters. >> Servidor feito por Romario. Saving server... > Saved house items in: 0.121 s [servicePort::open] Error: Cannot assign requested address [servicePort::open] Error: Cannot assign requested address >> Loaded all modules, server starting up... >> Server Online! [servicePort::open] Error: Cannot assign requested address [servicePort::open] Error: Cannot assign requested address