
Tudo que Snowsz postou
- O seu novo Tibia King!
-
[PEDIDO] Amuleto Que Da Double Loot
Sério que vocês ficaram aqui "floodando"? Tu da informação errada cara, é nisso que dá, cheio de erro por nada, o teu server não é tfs 1.0 e sim tfs 0.4 ou tfs 0.3.6, na próxima passa a informação certa --', assim que arrumar o script edito esse post.
-
[PEDIDO] Amuleto Que Da Double Loot
Cara, posta tua pasta do creaturescript, por que já estou sem saber o que fazer.
-
Iae povo
A gente é tomada pra se ligar?
-
[PEDIDO] Amuleto Que Da Double Loot
Se não funcionar acho que já sei o que é: local amuletId = 2160 function onKill(creature, target) local player = creature if player:getSlotItem(CONST_SLOT_NECKLACE).itemid == amuletId then if target:isMonster() then local pos = target:getPosition() local corpse = Tile(pos):getTopDownItem() if corpse:getType():isCorpse() and corpse:getType():isMovable() then if corpse:isContainer() then local str = "[Double Loot Amulet] Duplicated loot: " for i = corpse:getSize()-1, 0, -1 do local item = corpse:getItem(i) str = str..item:getCount().."x "..item:getName()..", " doAddContainerItem(corpse, item:getId(), item:getCount()) end str = string.sub(str, 1, #str-2).."." player:sendTextMessage(TALKTYPE_ORANGE_2, str) pos:sendMagicEffect(31) end end end end return true end
-
Iae povo
Não, sua piranha kkk
-
[PEDIDO] Amuleto Que Da Double Loot
Eu preciso do erro no console --'
-
[PEDIDO] Amuleto Que Da Double Loot
Eu preciso saber o erro para poder arrumar o que está errado.
-
(Resolvido)[AJUDA] Guild shop não está enviando os itens para os players
Não tem a lib... Essa vai ser minha última tentativa pois, não sei as funções certas de se lidar com query no tfs 1.0. -- <globalevent name="GuildShop" interval="30000" script="others/shopguild.lua"/> function onThink(interval, lastExecution) local queryShop = db.storeQuery('SELECT * FROM `z_ots_guildcomunication`;') if queryShop ~= false then repeat local id, player = result.getDataInt(queryShop, 'id'), Player(result.getDataString(queryShop, 'name')) if player then local item_id, item_count = result.getDataInt(queryShop, 'param1'), result.getDataInt(queryShop, 'param2') local container_id, container_count = result.getDataInt(queryShop, 'param3'), result.getDataInt(queryShop, 'param4') local offer_type = result.getDataString(queryShop, 'param5') local item_name = result.getDataString(queryShop, 'param6') -- ITEM if offer_type == 'item' then player:getInbox():addItem(item_id, item_count, INDEX_WHEREEVER, FLAG_NOLIMIT) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop em seu depot.') -- CONTAINER elseif offer_type == 'container' then local container_id, container_count = result.getDataInt(queryShop, 'param3'), result.getDataInt(queryShop, 'param4') local i, new_container = 0, player:getInbox():addItem(container_id, 1, INDEX_WHEREEVER, FLAG_NOLIMIT) while i ~= container_count do new_container:addItem(item_id, item_count, INDEX_WHEREEVER, FLAG_NOLIMIT) i = i + 1 end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop em seu depot.') -- ADDON elseif offer_type == 'addon' then player:addOutfitAddon(item_id, 3) player:addOutfitAddon(item_count, 3) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..'<< do guild shop.') -- MOUNT elseif offer_type == 'mount' then player:addMount(item_id) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop.') end db.asyncQuery('DELETE FROM `z_ots_guildcomunication` WHERE `id` = ' .. id) db.asyncQuery('UPDATE `z_shopguild_history_item` SET `trans_state` = \'realized\', `trans_real` = ' .. os.time() .. ' WHERE id = '..id..';') end until not result.next(queryShop) result.free(queryShop) end return true end
-
[Action] Pokedex System [PDA S/Level] - Pokemon Status
Mesmo que seja demonstração, está no script, a demonstração vem através do script, sem ele não teria demonstração não?
-
WebDesign - Programador
É proibido passar o skype através de tópicos pedindo ajuda ou algo do tipo, e o tópico está na área incorreta! O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de WebSites" Para: "OTServ → Projetos / Formação de Equipes → Formação de Equipes"
-
[Action] Pokedex System [PDA S/Level] - Pokemon Status
Vou aprovar, mas, altere a frase "It doen't evolve." para "It doesn't evolve.".
-
[CREATURESCRIPT] Msg On Advance ML (10 reps)
Acho que isso resolve: local spells = { [1] = { --sorcerer level = { [1] = "utevo lux", "exura", "adori", [40] = "exevo gran mas vis" } }, [2] = { --druid level = { [1] = "utevo lux", "exura", "adori", [28] = "exevo gran mas pox" } }, [3] = { --paladin level = { [1] = "utevo lux", "exura", "exevo con", [14] = "exevo con vis" } }, [4] = { --knight level = { [1] = "utevo lux", "exura", [5] = "exori" } } } local array_sorc = {"Sorcerer", "Master Sorcerer", "Epic Sorcerer"} local array_druid = {"Druid", "Elder Druid", "Epic Druid"} local array_paladin = {"Paladin", "Royal Paladin", "Epic Paladin"} local array_knight = {"Knight", "Elite Knight", "Epic Knight"} local text = "" function onAdvance(cid, skill, oldLevel, newLevel) if skill == SKILL__MAGLEVEL then if isInArray(array_sorc, getPlayerVocationName(cid)) then CONFIG = spells[1] elseif isInArray(array_druid, getPlayerVocationName(cid)) then CONFIG = spells[2] elseif isInArray(array_paladin, getPlayerVocationName(cid)) then CONFIG = spells[3] elseif isInArray(array_knight, getPlayerVocationName(cid)) then CONFIG = spells[4] end if not CONFIG then return false end EVENT = CONFIG.level[getPlayerSkillLevel(cid, 7)] if not EVENT then return false end for i, v in ipairs(EVENT) do text = text..""..i..", " end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "New spells: "..text.."") end return true end
-
Erro compilando TFS
Você deve ter baixado o tfs com "branch master", ele está em desenvolvimento então, tente esse: https://github.com/otland/forgottenserver/tree/1.1
-
O meu Shop do site do meu servidor está bugado
O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de WebSites"
-
AJUDA URGENTE DE QUEST SCRIPT ACTIONS
local itemId = 2160 local count = 3000 local bagId = 1999 function onUse(cid, item, frompos, itemEx, topos) if getPlayerStorageValue(cid, 21677) <= 0 then local bag = doPlayerAddItem(cid, bagId,1) for i = 1, count do doAddContainerItem(bag, itemId, 1) end setPlayerStorageValue(cid, 21677, 1) doPlayerSendCancel(cid, "Congratulations!") else doPlayerSendCancel(cid, "This is empty.") end return true end
- [v32] GlobalFull 11/12 - New Asuras, Falcons, Warzones 4,5,6 . (Updates Frequentes)
-
AJUDA URGENTE DE QUEST SCRIPT ACTIONS
elseif item.uid == 6905 then local itemid1 = XXX -- ID do item local itemquant = X -- quantidade que vai adicionar por repeticao 30X100 = 3000 local repeticoes = 30 queststatus = getPlayerStorageValue(cid,7105) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Red Senzu.") local bag = doPlayerAddItem(cid,1999,1) for i = 1, repeticoes do doAddContainerItem(bag, itemid1, itemquant) end setPlayerStorageValue(cid,7105,1) else doPlayerSendTextMessage(cid,22,"It is empty.") end
-
(Resolvido)[AJUDA] Guild shop não está enviando os itens para os players
Tenta: -- <globalevent name="GuildShop" interval="30000" script="shopguild.lua"/> function onThink(interval, lastExecution) local queryShop = db.storeQuery('SELECT * FROM `z_ots_guildcomunication`;') if queryShop ~= false then repeat local id, player = tonumber(result.getString(queryShop, 'id')), Player(result.getString(queryShop, 'name')) if player then local item_id, item_count = tonumber(result.getString(queryShop, 'param1')), tonumber(result.getString(queryShop, 'param2')) local container_id, container_count = tonumber(result.getString(queryShop, 'param3')), tonumber(result.getString(queryShop, 'param4')) local offer_type = result.getString(queryShop, 'param5') local item_name = result.getString(queryShop, 'param6') -- ITEM if offer_type == 'item' then player:getInbox():addItem(item_id, item_count, INDEX_WHEREEVER, FLAG_NOLIMIT) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop em seu depot.') -- CONTAINER elseif offer_type == 'container' then local container_id, container_count = result.getNumber(queryShop, 'param3'), result.getNumber(queryShop, 'param4') local i, new_container = 0, player:getInbox():addItem(container_id, 1, INDEX_WHEREEVER, FLAG_NOLIMIT) while i ~= container_count do new_container:addItem(item_id, item_count, INDEX_WHEREEVER, FLAG_NOLIMIT) i = i + 1 end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop em seu depot.') -- ADDON elseif offer_type == 'addon' then player:addOutfitAddon(item_id, 3) player:addOutfitAddon(item_count, 3) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..'<< do guild shop.') -- MOUNT elseif offer_type == 'mount' then player:addMount(item_id) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop.') end db.asyncQuery('DELETE FROM `z_ots_guildcomunication` WHERE `id` = ' .. id) db.asyncQuery('UPDATE `z_shopguild_history_item` SET `trans_state` = \'realized\', `trans_real` = ' .. os.time() .. ' WHERE id = '..id..';') end until not result.next(queryShop) result.free(queryShop) end return true end Se não funcionar, vá na lib, e procure por um arquivo que contém o nome database ou parecido com esse e poste aqui.
-
[PEDIDO] Amuleto Que Da Double Loot
Tenta esse: local amuletId = 2160 function onKill(creature, target) local player = creature:getPlayer() if player:getSlotItem(CONST_SLOT_NECKLACE).itemid == amuletId then if target:isMonster() then local pos = target:getPosition() local corpse = Tile(pos):getTopDownItem() if corpse:getType():isCorpse() and corpse:getType():isMovable() then if corpse:isContainer() then local str = "[Double Loot Amulet] Duplicated loot: " for i = corpse:getSize()-1, 0, -1 do local item = corpse:getItem(i) str = str..item:getCount().."x "..item:getName()..", " doAddContainerItem(corpse, item:getId(), item:getCount()) end str = string.sub(str, 1, #str-2).."." player:sendTextMessage(TALKTYPE_ORANGE_2, str) pos:sendMagicEffect(31) end end end end return true end
-
(Resolvido)[AJUDA] Guild shop não está enviando os itens para os players
Em globalevents troque seu sistema de entrega por esse: Xml: <globalevent name="GuildShop" interval="30000" script="shopguild.lua"/> shopguild.lua: -- <globalevent name="GuildShop" interval="30000" script="shopguild.lua"/> function onThink(interval, lastExecution) local queryShop = db.storeQuery('SELECT * FROM `z_ots_guildcomunication`;') if queryShop ~= false then repeat local id, player = result.getNumber(queryShop, 'id'), Player(result.getString(queryShop, 'name')) if player then local item_id, item_count = result.getNumber(queryShop, 'param1'), result.getNumber(queryShop, 'param2') local container_id, container_count = result.getNumber(queryShop, 'param3'), result.getNumber(queryShop, 'param4') local offer_type = result.getString(queryShop, 'param5') local item_name = result.getString(queryShop, 'param6') -- ITEM if offer_type == 'item' then player:getInbox():addItem(item_id, item_count, INDEX_WHEREEVER, FLAG_NOLIMIT) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop em seu depot.') -- CONTAINER elseif offer_type == 'container' then local container_id, container_count = result.getNumber(queryShop, 'param3'), result.getNumber(queryShop, 'param4') local i, new_container = 0, player:getInbox():addItem(container_id, 1, INDEX_WHEREEVER, FLAG_NOLIMIT) while i ~= container_count do new_container:addItem(item_id, item_count, INDEX_WHEREEVER, FLAG_NOLIMIT) i = i + 1 end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop em seu depot.') -- ADDON elseif offer_type == 'addon' then player:addOutfitAddon(item_id, 3) player:addOutfitAddon(item_count, 3) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..'<< do guild shop.') -- MOUNT elseif offer_type == 'mount' then player:addMount(item_id) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, 'Voce recebeu >> '.. item_name ..' << do guild shop.') end db.asyncQuery('DELETE FROM `z_ots_guildcomunication` WHERE `id` = ' .. id) db.asyncQuery('UPDATE `z_shopguild_history_item` SET `trans_state` = \'realized\', `trans_real` = ' .. os.time() .. ' WHERE id = '..id..';') end until not result.next(queryShop) result.free(queryShop) end return true end
-
(Resolvido)[AJUDA] Troca de looktype de um NPC
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 local interval = 2 -- in seconds function onThink() local npc = getNpcCid() addEvent(function() if isCreature(npc) then doCreatureChangeOutfit(npc, {lookType = (getCreatureOutfit(npc).lookType == 80 and 51 or 80)}) end end, interval*1000) npcHandler:onThink() end npcHandler:addModule(FocusModule:new()) O intervalo está em dois segundos, altere em interval.
-
(Resolvido)[AJUDA] Guild shop não está enviando os itens para os players
Pelo que vi no arquivo.php tem essa tabela, se ao comprar um item no shop, for adicionado algo lá, está funcionando perfeitamente essa parte, o problema é o script para enviar ao player o item da tabela, qual a versao do tfs? E me responda se ele realmente ta adicionando algo na tabela z_ots_guildcomunication ao comprar.
-
Error Poketibia 8.54
function onEquip (cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if not getItemAttribute(item.uid, "poke") then return true end for i, x in pairs(fotos) do if string.lower(getItemAttribute(item.uid, "poke")) == string.lower(i) then doTransformItem(item.uid, fotos[i]) return true end end end function onDeEquip(cid, item, slot) if not cid then return true end if item.uid <= 0 then return true end if not getItemAttribute(item.uid, "poke") then return true end doTransformItem(getPlayerSlotItem(cid, CONST_SLOT_LEGS).uid, 2395) end
-
[Pedido] Mate o monstor e ganhe sua outfit
Ganha pra sempre ou temporariamente? Se for para selecionar usando ctrl+botão direito do mouse no player pra trocar de roupa, vai ter que registrar no outfits.xml cada outfit.