
Tudo que Emooooo postou
-
Ajuda a colocar double loot aqui
-- Credits: Slawkens & Barker local config = { rate = 2.0, -- 2.0 = 2x faster than normal } function onDeEquip(cid, item, slot) if(item.itemid == 7968) then doPlayerSetExperienceRate(cid, 1.0) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has ended.") doTransformItem(item.uid, 7967) end end function onEquip(cid, item, slot) if(item.itemid == 7967) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: " .. config.rate .. "x doubled your former experience rate.") doPlayerSetExperienceRate(cid, config.rate) doTransformItem(item.uid, 7968) return true end end
-
Arruma esse script
The OTX Server Version: (2.52 - 1557) - Codename: (Necron) e inferior a 1.x+
-
Arruma esse script
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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local player = Player(cid) if player:getLevel() < 30 then blessprize = 2000*6 elseif player:getLevel() >= 30 and player:getLevel() <= 120 then blessprize = (((player:getLevel()-30)*200)+2000)*6 elseif player:getLevel() > 120 then blessprize = 20000*6 end if(msgcontains(msg, "blessing") or msgcontains(msg, "bless")) then npcHandler:say("Do you want to receive all blessings for "..blessprize.." gold?", cid) npcHandler.topic[cid] = 1 end if(msgcontains(msg, "yes")) then if(npcHandler.topic[cid] == 1) then if player:hasBlessing(1) or player:hasBlessing(2) or player:hasBlessing(3) or player:hasBlessing(4) or player:hasBlessing(5) or player:hasBlessing(6) then npcHandler:say("You already have been blessed!", cid) else if player:removeMoney(blessprize) then npcHandler:say("You have been blessed by all of six gods!, " .. player:getName() .. ".", cid) player:addBlessing(1) player:addBlessing(2) player:addBlessing(3) player:addBlessing(4) player:addBlessing(5) player:addBlessing(6) player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA) npcHandler.topic[cid] = 0 else npcHandler:say("Come back when you have enough money.", cid) npcHandler.topic[cid] = 0 end end end end if(msgcontains(msg, "no")) then if(npcHandler.topic[cid] == 1) then npcHandler:say("Then no.", cid) npcHandler.topic[cid] = 0 end end if msgcontains(msg, "heal") then npcHandler:say("Do you need the healing now?", cid) npcHandler.topic[cid] = 2 elseif(npcHandler.topic[cid] == 2) then if msgcontains(msg, "no") then npcHandler:say("As you wish.", cid) npcHandler.topic[cid] = 0 elseif msgcontains(msg, "yes") then npcHandler:say("So be healed!", cid) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doSendMagicEffect(getNpcPos(), CONST_ME_MAGIC_BLUE) npcHandler.topic[cid] = 0 end end return true end npcHandler:setMessage(MESSAGE_GREET, "Greetings, fellow believer |PLAYERNAME|. I can offer you {blessings} or a free {heal}!") npcHandler:setMessage(MESSAGE_FAREWELL, "Always be on guard, |PLAYERNAME|!") npcHandler:setMessage(MESSAGE_WALKAWAY, "This ungraceful haste is most suspicious!") npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) ta dando esse erro. [22/8/2018 10:51:5] [Error - NpcScript Interface] [22/8/2018 10:51:5] data/npc/scripts/alia.lua:onCreatureSay [22/8/2018 10:51:5] Description: [22/8/2018 10:51:5] data/npc/scripts/alia.lua:14: attempt to call global 'Player' (a nil value) [22/8/2018 10:51:5] stack traceback: [22/8/2018 10:51:5] data/npc/scripts/alia.lua:14: in function 'callback' [22/8/2018 10:51:5] data/npc/lib/npcsystem/npchandler.lua:456: in function 'onCreatureSay' [22/8/2018 10:51:5] data/npc/scripts/alia.lua:7: in function <data/npc/scripts/alia.lua:7> Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Mudar esse código para 0.3.6
function onUse(cid, item, fromPosition, itemEx, toPosition) local str = {"\nSpiritual Shielding", "\nEmbrace of Tibia", "\nFire of the Suns", "\nSpark of the Phoenix", "\nWisdom of Solitude", "\nTwist of Fate"} local result = "Received blessings:" local player = Player(cid) for i = 1, 6 do result = player:hasBlessing(i) and result .. str or result end player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 20 > result:len() and "No blessings received." or result) return true end
-
alguém tem um vocations.xml igual a do tibia global
@amora murder valeu vou testa ^^,
-
alguém tem um vocations.xml igual a do tibia global
alguém tem um vocations.xml igual a do tibia global , (aquela que demora pra encher mana e life.) Se alguém tiver poderia me passar ,muito obrigado , já agradeço.☺️ Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Double xp e double loot day
Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). Ex. TFS 1.3; Base: Qual erro está surgindo/O que você procura? colocar double loot , nesse script também , já ta com double xp. Você tem o código disponível? Se tiver publique-o aqui: -- Monday = Segunda -- Tuesday = Terça -- Wednesday = Quarta -- Thursday = Quinta -- Friday = Sexta -- Saturday = Sabado -- Sunday = Domingo function onLogin(cid) DoubleDays = {"Sunday"} if isInArray(DoubleDays, os.date("%A")) then doPlayerSetRate(cid, SKILL__LEVEL, 2.0) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "[Double XP] \ Today we are in Double XP event! \ Enjoy.") end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Sistema de lábia
iai pessoal , gostaria de saber se existe como criar um "sistema de lábia" . tipo quanto mas o player vende itens aos npc , com mas valor o mesmo item vai ficando , para ser vendido para o npc . o sistema e parecido com o que existe no rpg brasil . vlw e obrigado.
-
(Resolvido)AJUDA RAPIDA!
@Vodkart valeu ! mano funcionou ^^, @tataboy67 valeu tbm
-
(Resolvido)AJUDA RAPIDA!
Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). Ex. TFS 1.3; Base: FAZER APARECER A MSG NA TELA DO PLAYER , DO ITEM QUE ELE PEGOU E A QUANTIDADE DO MESMO ITEN , EX , "You daily reward 25 gold coins" Qual erro está surgindo/O que você procura? FAZER APARECER A MSG NA TELA DO PLAYER , DO ITEM QUE ELE PEGOU E A QUANTIDADE DO MESMO ITEN , EX , "You daily reward 25 gold coins" Você tem o código disponível? Se tiver publique-o aqui: function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { s = 11126, -- storage level = 8, -- level minimo time = 1100, -- tempo em minutos para voltar a abrir a chest item = {{7590, 10},{2173, 1},{7589, 10},{7620, 10},{7591, 10},{7588, 10},{7618, 10},{8472, 10},{8473, 10},{2789, 25},{2160, 1},{2152, 25},{2639, 1},{8306, 25},{2268, 25},{2273, 25},{2274, 25},{2214, 1},{2165, 1} } -- items sortiados(pode adicionar mais) } if getPlayerLevel(cid) < config.level then return doPlayerSendCancel(cid, "Você deve ter pelo menos level ".. config.level .." para abrir a Chest.") elseif getPlayerStorageValue(cid, config.s) >= os.time() then local minutos = math.floor((getPlayerStorageValue(cid, config.s) - os.time())/(60)) return doPlayerSendTextMessage(cid, 25, "You already got your reward today, wait ".. (minutos < 0 and 0 or minutos) .." minuts to pick up again.") end local r = math.random(7, #config.item) doPlayerAddItem(cid, config.item[r][1], config.item[r][2]) setPlayerStorageValue(cid, config.s, os.time()+config.time*60) doSendMagicEffect(getPlayerPosition(cid), 30) doPlayerSendTextMessage(cid, 22, "You daily reward !") return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
Bug Depot E Erro Na Distro
tira os depots de dentro das house , ou coloca eles em algum sqm fora dos sqm da house , faz isso usando o rme , edita e salva e pronto !