Solutions
-
Ceos's post in (Resolvido)[AJUDA] Change sex was marked as the answerfunction onUse(cid, item, fromPosition, itemEx, toPosition, isHotkey) local player = Player(cid) if not player:isPzLocked() then player:setSex(player:getSex() == 1 and 0 or 1) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, 'Seu sexo foi alterado.') player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN) Item(item.uid):remove(1) player:removeOutfit(addons, 37) player:save() else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_ORANGE, 'Você não pode usar em batalha.') end return true end Vê se funciona, (não testei).
player:removeOutfit(addons, 37) Troca o id do addon em 37.
-
Ceos's post in (Resolvido)NPC Demora was marked as the answerTenta muda em (data/npc/lib/npcsystem/npchandler.lua) Pesquisa por "talkDelayTime = 1," vê se o seu ta assim.
-
Ceos's post in (Resolvido)Bug distro Warning Monster was marked as the answerJá esta adicionado, caso você queria retirar e só ir na pasta monster ai pesquisa la encima o nome do addevent.
-
Ceos's post in (Resolvido)[PEDIDO] NPC Towncryer was marked as the answerTroque esse pelo seu e teste:
local voices = { "Hear me! Hear me! The mage Wyrdin in the Edron academy is looking for brave adventurers to undertake a task!", "Hear me! Hear me! The postmaster's guild has open spots for aspiring postmen! Contact Kevin Postner at the post office in the plains south of Kazordoon!", "Hear me! Hear me! The inquisition is looking for daring people to fight evil! Apply at the inquisition headquarters next to the Thaian jail!", "Hear me! Hear me! Stand and deliver! That's what they shout, robbing banks in main's coastal towns and then hide out. Catch the thieves and make us proud, bring back the gold to please the crowd!", "Hear me! Hear me! A river is flooding, south of the outlaw base. Explore a new isle, an unknown place. Don't be afraid, but ready your blade.", "Hear me! Hear me! The volcano on Goroma is spitting fire. Creatures are spawning, strong and dire. Lava is heading up the land. Adventurer, be careful or it will be your last stand!", "Hear me! Hear me! It is Kingsday, people, let us celebrate and sing! Decorate Thais and let the bells ring! Come to the arena to hear the swords cling. Let us rejoice! Hail to the King!", "Hear me! Hear me! North of the Queen's town, the royal trees are cut down. Will you deal with the suspect or report such kind of disrespect?", "Hear me! Hear me! Noodles is gone, the King in despair! Find the little rascal, look everywhere. Bring him back to get rewarded for your care!", "Hear me! Hear me! Ankrahmun's desert is the nomads' land. Find their camp in the golden sand, and a treasure may be close at hand!", "Hear me! Hear me! What a lucky and beautiful day! Visit Carlin, Ankrahmun, or Liberty Bay. Yasir, the oriental trader might be there. Gather your creature products, for this chance is rare.", "Hear me! Hear me! In Zao Steppe the river runs deep. If you catch a strange fish it is yours to keep.", "Hear me! Hear me! Tiquanda's elephants are terrified, the Ape God's footsteps are a scary sight. So hunt for theirs tusks while they are filled with fright!", "Hear me! Hear me! Mammoths silently watch as the snow melts away. It reveals special flowers which are not meant to stay. Grow their seeds to brighten up your day!", "Hear me! Hear me! The witch Wyda seems to be bored. Pay her a visit but sharpen your sword. She might come up with a terrible surprise, are you brave enough to believe your eyes?" } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local lastSound = 0 function onThink() if lastSound < os.time() then lastSound = (os.time() + 10) if math.random(100) < 25 then Npc():say(voices[math.random(#voices)], TALKTYPE_SAY) end end npcHandler:onThink() end -
Ceos's post in (Resolvido)Como colocar o comando !saveme para players was marked as the answerVá em (data\talkactions\scripts) crie um .lua chamado savechar.lua
function onSay(cid, words, param, channel) local config = { s = 11548, -- n mexa exhau = 30 -- tempo em seegundos para salvar denovo } if (getPlayerStorageValue(cid, config.s) <= os.time()) then doPlayerSave(cid) setPlayerStorageValue(cid,config.s,os.time()+config.exhau) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu char foi salvo com sucesso!") else doPlayerSendCancel(cid, "Você tem que esperar " .. config.exhau .. " segundos para salvar novamente.") end return TRUE end Vá em (data\talkactions) e abra o talkactions.xml e adicione essa tag::
<talkaction words="!saveme" script="savechar.lua"/> -
Ceos's post in (Resolvido)Battle x PZ was marked as the answerExiste vá em (data/creaturescript/creaturescript.xml)
<event type="think" name="TiraBattle" event="script" value="tirabattle.lua"/> Depois vá em (data/creaturescript/script/login.lua)
registerCreatureEvent(cid, "TiraBattle") Depois vá em (data/creaturescript/script) crie um .lua chamado tirabattle;
function onThink(cid, interval) if(getTilePzInfo(getCreaturePosition(cid))) then doRemoveCondition(cid, CONDITION_INFIGHT) end end CREDITOS: KekezitoLHP
-
Ceos's post in (Resolvido)Group_ID was marked as the answerE só você ir na pasta (data/xml/group.xml), e verifica qual group e o adm.
-
Ceos's post in (Resolvido)Suporte erro inicialização was marked as the answerBom esse efeito que você tentou colocar "terra strike", não existe essa magia, tente trocar.
-
Ceos's post in Background para Client was marked as the answerOpa desculpa irei fazer para você!
@Edit Veja se gostou.
http://i.imgur.com/9wyXCEQ.jpg
-
Ceos's post in (Pedido) Gif animada de char para a assinatura was marked as the answerEsta ai o que você pediu um "Barbarian", Ai esta o pedido." montado na "Blazebringer". Imagem Url: http://i.imgur.com/84UkW3x.gif "Caso queira colocar na assinatura" Imagem:
Espero novos pedidos. -
Ceos's post in (Resolvido)Kick-Time Até No Treiner was marked as the answerVeja esse tópico eu acho que te ajudara: http://www.tibiaking.com/forum/topic/26270-pedido-trainer-com-sistema-de-kicks/
-
Ceos's post in (Resolvido)[AJUDA] Resets Bugaram was marked as the answerExecute essa query na sua database .
ALTER TABLE `players` ADD reset INT(11) NOT NULL DEFAULT 0; -
Ceos's post in (Resolvido)Como adiciono item ao NPC Mark was marked as the answerPara adicionar para ele comprar basta você adicionar assim na fileira. Small Diamond,2145,200;
Então ficara. assim.
Onde esta em Vermelho e o nome do item.
Onde esta em Azul e o id do item.
Onde esta em Verde e o preço do item.