
Solutions
-
Qwizer's post in Ajuda Erro de Querry no Distro e na DB! was marked as the answer
-
Qwizer's post in (Resolvido)Adaptar um script a outro was marked as the answermuda o MESSAGE_STATUS_CONSOLE_GREEN pra RED talves seja a cor, por o script esta tudo normal.
remove tbm o if not isPlayer(cid) then return true end
-
Qwizer's post in (Resolvido)NPC QUE TROCA VOCAÇÃO_CONFIG HP/MANA was marked as the answerlocal keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid pid = getPlayerGUID(cid) //data/xml/vocations.xml -- gainhp HP e gainmana MP local mageMP = Valor local mageHP = Valor local kinaMP = Valor local kinaHP = Valor local palaMP = Valor local palaHP = Valor if(msgcontains(msg, 'sorcerer') or msgcontains(msg, 'sorc')) then selfSay('Deseja virar {Sorcerer} por 10 Lethal Orbs?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,1) setCreatureMaxHealth(cid, getPlayerLevel(cid)*mageHP) setCreatureMaxMana(cid, getPlayerLevel(cid)*mageMP) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 ..", count = ".. 0 .." WHERE `player_id` = ".. pid ..";") db.executeQuery("UPDATE `players` SET `maglevel` = ".. 0 ..", `manaspent` = ".. 0 .." WHERE `id` = ".. pid ..";") selfSay('Vocação trocada com sucesso , Agora você é um Sorcerer.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'druid') or msgcontains(msg, 'druida')) then selfSay('Deseja virar {Druid} por 10 Lethal Orbs?', cid) talkState[talkUser] = 2 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,2) setCreatureMaxHealth(cid, getPlayerLevel(cid)*mageHP) setCreatureMaxMana(cid, getPlayerLevel(cid)*mageMP) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 ..", count = ".. 0 .." WHERE `player_id` = ".. pid ..";") db.executeQuery("UPDATE `players` SET `maglevel` = ".. 0 ..", `manaspent` = ".. 0 .." WHERE `id` = ".. pid ..";") selfSay('Vocação trocada com sucesso , Agora você é um Druid.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'Knight') or msgcontains(msg, 'kina')) then selfSay('Deseja virar {knight} por 10 Lethal Orbs?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,4) setCreatureMaxHealth(cid, getPlayerLevel(cid)*kinaHP) setCreatureMaxMana(cid, getPlayerLevel(cid)*kinaMP) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 ..", count = ".. 0 .." WHERE `player_id` = ".. pid ..";") db.executeQuery("UPDATE `players` SET `maglevel` = ".. 0 ..", `manaspent` = ".. 0 .." WHERE `id` = ".. pid ..";") selfSay('Vocação trocada com sucesso , Agora você é um Knight.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'paladin') or msgcontains(msg, 'pala')) then selfSay('Deseja virar {Paladin} por 10 Lethal Orbs?', cid) talkState[talkUser] = 4 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then if(getPlayerItemCount(cid, 7722) >= 10) then doPlayerRemoveItem(cid, 7722, 10) doPlayerSetVocation(cid,3) setCreatureMaxHealth(cid, getPlayerLevel(cid)*palaHP) setCreatureMaxMana(cid, getPlayerLevel(cid)*palaMP) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = ".. 10 ..", count = ".. 0 .." WHERE `player_id` = ".. pid ..";") db.executeQuery("UPDATE `players` SET `maglevel` = ".. 0 ..", `manaspent` = ".. 0 .." WHERE `id` = ".. pid ..";") selfSay('Vocação trocada com sucesso , Agora você é um Paladin.', cid) else selfSay('Você não tem {Lethal Orbs} Suficientes.', cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Qwizer's post in (Resolvido)[PEDIDO] Atacar e usar runa ao mesmo tempo 0.4 was marked as the answerno weapons.xml no item que vc quer que ele use rune ao mesmo tempo e coloque isso
swing="true"
ex:
<distance id="7368" level="80" event="function" value="default"/> <!-- Assassin Star --> para
<distance id="7368" level="80" swing="true" event="function" value="default"/> <!-- Assassin Star --> deu certo?
-
Qwizer's post in (Resolvido)Bug site consta online sem estar! Apois servidor down was marked as the answerabre o init e procura por
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. " AND `online` > 0;")
e so copiar essa linha e mudar o nome da coluna online para o nome da coluna do cast.
algo assim
db.executeQuery("UPDATE `players` SET `cast` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. " AND `cast` > 0;")
-
Qwizer's post in (Resolvido)[DUVIDA BASICA] Problemas com comandos do GOD em 10.53 was marked as the answervai na database em accounts na sua conta de adm em type mude de 1 para 5 depois em player no char em group_id bote 3 so isso.
-
Qwizer's post in (Resolvido)[AJUDA] God não cria items RP++ was marked as the answervai em accounts na conta do seu god e bote type = 5 e em player no god coloca group_id 3 e seja feliz.
-
Qwizer's post in (Resolvido)Problema no Ajax Check Name,Acc e Email was marked as the answerUP
gente do ceu solução nenhuma?
UP alguém ai ou ta dificil
ARRUMADO
e so add isso no layout abaixo de <head>
<?PHP echo $layout_header; ?> -
Qwizer's post in (Resolvido)[AJUDA] BUG AO MORRER SEM AOL was marked as the answervai em \data\creaturescripts\scripts\login.lua
procure por
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) abaixo adicione doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 10) salve reiniciei o ot e teste. -
Qwizer's post in (Resolvido)[PEDIDO] Npc que libera venda de items pra x storage was marked as the answerlocal 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 local shopModule = ShopModule:new() npcHandler:addModule(shopModule) function creatureSayCallback(cid, type, msg) if getPlayerStorageValue(cid, 1038) == 1 then npcHandler:say("No have money.") else npcHandler:say("Sorry not possible.") return false end shopModule:addSellableItem({'might ring'}, 2164, 250, 'might ring') shopModule:addSellableItem({'energy ring'}, 2167, 100, 'energy ring') shopModule:addSellableItem({'life ring'}, 2168, 50, 'life ring') shopModule:addSellableItem({'time ring'}, 2169, 100, 'time ring') shopModule:addSellableItem({'dwarven ring'}, 2213, 100, 'dwarven ring') shopModule:addSellableItem({'ring of healing'}, 2214, 100, 'ring of healing') shopModule:addSellableItem({'strange talisman'}, 2161, 30, 'strange talisman') shopModule:addSellableItem({'silver amulet'}, 2170, 50, 'silver amulet') shopModule:addSellableItem({'protection amulet'}, 2200, 100, 'protection amulet') shopModule:addSellableItem({'dragon necklace'}, 2201, 100, 'dragon necklace') shopModule:addSellableItem({'snakebite rod'}, 2182, 100, 'snakebite rod') shopModule:addSellableItem({'moonlight rod'}, 2186, 200, 'moonlight rod') shopModule:addSellableItem({'volcanic rod'}, 2185, 1000, 'volcanic rod') shopModule:addSellableItem({'quagmire rod'}, 2181, 2000, 'quagmire rod') shopModule:addSellableItem({'tempest rod'}, 2183, 3000, 'tempest rod') shopModule:addSellableItem({'ankh'}, 2193, 100, 'ankh') shopModule:addSellableItem({'mysterious fetish'}, 2194, 50, 'mysterious fetish') shopModule:addBuyableItem({'might ring'}, 2164, 5000, 'might ring') shopModule:addBuyableItem({'energy ring'}, 2167, 2000, 'energy ring') shopModule:addBuyableItem({'life ring'}, 2168, 900, 'life ring') shopModule:addBuyableItem({'time ring'}, 2169, 2000, 'time ring') shopModule:addBuyableItem({'dwarven ring'}, 2213, 2000, 'dwarven ring') shopModule:addBuyableItem({'ring of healing'}, 2214, 2000, 'ring of healing') shopModule:addBuyableItem({'strange talisman'}, 2161, 100, 'strange talisman') shopModule:addBuyableItem({'silver amulet'}, 2170, 100, 'silver amulet') shopModule:addBuyableItem({'protection amulet'}, 2200, 700, 'protection amulet') shopModule:addBuyableItem({'dragon necklace'}, 2201, 1000, 'dragon necklace') end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
Qwizer's post in (Resolvido)[PEDIDO] Configuração de script was marked as the answer<?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionBloodSystem" enabled="yes" author="MatheusMkalo" forum="XTibia.com"> <!-- Configs and Functions --> <config name="PotionExpBloodConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 30, ---- TIME IN MINUTES addrate = 100, -- Exp que vai adicionar em % removeonuse = yes } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotionblood.lua --> <action itemid="12702" event="script"><![CDATA[ domodlib('PotionExpBloodConfigs') if getPlayerStorageValue(cid, 43891) > os.time() then return doPlayerSendCancel(cid, "Voce ja esta sob efeito da potion.") elseif getPlayerStorageValue(cid, 55489) - os.time() > 0 then return doPlayerSendCancel(cid, "Voce so pode usar novamente depois de 24 horas.") end if configs.removeonuse == yes then doRemoveItem(item.uid, 1) end for i = configs.time*60, 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "O efeito da exp potion acabou.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "O efeito da exp potion termina em "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 25, "Voce vai receber o dobro de exp durante meia hora.") doPlayerSetStorageValue(cid, 43891, os.time()+120) setPlayerStorageValue(cid, 55489, os.time() + (1*24*60*60)) setPlayerStorageValue(cid, 62165, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62165, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotionBlood" event="script"><![CDATA[ domodlib('PotionExpBloodConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62165) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62165))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62165))) * 1000 , cid, 62165, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62165))), 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == (time*60-(os.time()-getPlayerStorageValue(cid, 62165))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62165)))*1000, cid, "O efeito da exp potion acabou.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62165)))-i)*1000, cid, "O efeito da exp potion vai acabar em "..a..".") end end return TRUE ]]></creaturescript> </mod>
-
Qwizer's post in (Resolvido)[PVP] Sistema de pvp was marked as the answerno mapa editor mesmo você pode por zona pvp em terrain palete vai ter la PVP Zone Tool
-
Qwizer's post in (Resolvido)dedicado . was marked as the answereu Uso venohost.com e não tenho problemas, porem tem weblara e servercore. que são otimas.
-
Qwizer's post in (Resolvido)Erro no shop was marked as the answerbaixe o arquivo em anexo va na pasta data/globalevents/others e coloque dentro, depois abra o globalevents.xml e adicione
<globalevent name="Shop" interval="60000" script="others/shop.lua"/>
shop.lua
-
Qwizer's post in (Resolvido)[TFS 1.0] Teleport que só passe PREMIUM ACCOUNT was marked as the answerfunction onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "you have no premium account", msgWelcome = "welcome" } if getPlayerPremiumDays(cid) <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end <movevent event="StepIn" uniqueid="17500" script="premiumtile.lua"/>
-
Qwizer's post in (Resolvido)Bug no site ou no Ot? was marked as the answercoloca o ip certo no
-- Connection Config
ip = "AQUI" -
Qwizer's post in (Resolvido)[TFS 1.0] VIP System - Client 10.41 was marked as the answerAcabei de fazer: http://www.tibiaking.com/forum/topic/36566-vip-system-tfs-10-e-04-funcional/
-
Qwizer's post in (Resolvido)[ERRO] Codificação de Caracters Gesior was marked as the answerALTER DATABASE `sua_base` CHARSET = Latin1 COLLATE = latin1_swedish_ci;
-
Qwizer's post in (Resolvido)[AJUDA]Erro Distro 0.4 ! LEIA was marked as the answerisso acontece quando você abre o ot em uma database que tem items nas house abra o ot normal com esses erros e de um /save, depois feche e abra novamente que o erro vai sumir, caso não suma vai na sua database e limpe a tabela tile_items. que o erro some.
-
Qwizer's post in (Resolvido)[GESIOR] Depois do Create Account ! was marked as the answervai em createaccount.php e procura 860
-
Qwizer's post in (Resolvido)[AJUDA] Erro ao trocar de TFS was marked as the answertroca a pasta libs, coloca a pasta libs do tfs 0.4 que funciona.
-
Qwizer's post in (Resolvido)[AJUDA] Adicionar Atributos ao item was marked as the answeritems.xml procure o item que quer por isso adicione:
<attribute key="armor" value="50" /> <attribute key="skillSword" value="5" /> <attribute key="skillAxe" value="5" /> <attribute key="skillClub" value="5" /> <attribute key="absorbPercentAll" value="5" /> salve e teste. -
Qwizer's post in (Resolvido)Como faço para editar o lvl e a voc de um item, exemplo da Molten Plate? was marked as the answergente que isso ele que por level e voc que pode usar um items certo? se for e la em movements.xml la você define o lvl e vocação que poderá usar o items.
-
Qwizer's post in (Resolvido)Duvidas de como por informaçoes do tibia no blog was marked as the answerva no site http://otservlist.org/ vai ate o seu ot e clique em Signatures vai te la as img e os códigos html só copiar e cola no seu blog
-
Qwizer's post in (Resolvido)Problema! Como tirar exausted da pot paladin? was marked as the answervai em weapons.xml nas muniçoes de paladin e add: swing="true" ficando assim + ou -
<distance id="3965" level="20" swing="true" event="function" value="default"/> <!-- Hunting Spear --> <distance id="7378" level="25" swing="true" event="function" value="default"/> <!-- Royal Spear --> <distance id="7367" level="42" swing="true" event="function" value="default"/> <!-- Enchanted Spear --> <distance id="7368" level="80" swing="true" event="function" value="default"/> <!-- Assassin Star --> <distance id="7364" level="20" swing="true" event="function" value="default"/> <!-- Sniper Arrow --> <distance id="7365" level="40" swing="true" event="function" value="default"/> <!-- Onyx Arrow --> <distance id="7363" level="30" swing="true" event="function" value="default"/> <!-- Piercing Bolt --> <distance id="2547" level="55" swing="true" event="function" value="default"/> <!-- Power Bolt --> <distance id="6529" level="70" swing="true" event="function" value="default"/> <!-- Infernal Bolt --> ai e só salvar que passara a usar potion ao msm tempo que ataca.