
Tudo que Wise postou
-
[Ajuda] erro fly pda
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 Servidores Derivados"
-
Onlook Prestige e Efeito com X prestiges.
Testou com um character que tenha um dos values, que você configurou na tabela como sendo o número de "prestiges"?
-
Onlook Prestige e Efeito com X prestiges.
Testei agora e executou perfeitamente. Fez tudo correto e NÃO registrou o creature event em login.lua? onlook.lua (data\creaturescripts\scripts): function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then doPlayerSetSpecialDescription(thing.uid,'[Prestiges: '..getPlayerStorageValue(thing.uid, 378378)..']') return true elseif thing.uid == cid then doPlayerSetSpecialDescription(cid,'[Prestiges: '..getPlayerStorageValue(cid, 378378)..']') local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' string = string..'nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end Tag - creaturescripts.xml (data\creaturescripts): <event type="look" name="onLook" event="script" value="onlook.lua"/> Esse creature event você registra, em login.lua: registerCreatureEvent(cid, "onLook")
-
(Resolvido)Site e otserver list não mostram a quantidade verdadeira de players
Pelo fato do problema envolver seu website, decidi que seria mais apropriado mover para esta seção. 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 Scripts" Para: "OTServ → Suporte OTServ → Suporte de WebSites"
-
<LuaGetPlayerFlagValue>> Player Not Found
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 Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
-
OTClient - Otui Generator
Ótimo, brother. Seria muito bacana se você trouxesse isso ao fórum. Apoio sua ideia e aguardo por notícias ;]
- [CMS] Campeonato Mensal de Scripting #01
-
[PEDIDO] Comando saga do NTO Ultimate
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 Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
-
(Resolvido)[PROBLEMA] Ao conectar no meu otserv
@MoopieHead Já que resolveu, se possível, compartilhe a solução do problema para que outros membros do fórum (como o membro acima) possam conferi-la e solucionar também.
-
Onlook Prestige e Efeito com X prestiges.
E você já não adicionou a descrição ao player? Enquanto ao efeito e o texto, tente: checkprestige.lua (data\creaturescripts\scripts): local t = { [1] = {text = 'Prestiged', effect = 11}, -- [prestiges] = {text = 'textToSend', effect = magicEffectNumber} [10] = {text = 'Master', effect = 12}, [15] = {text = 'King', effect = 13} } function checkPrestige(cid) local interval = 2 -- seconds local p = t[getPlayerStorageValue(cid, 378378)] if p then doSendAnimatedText(getThingPos(cid), p.text, math.random(0, 255)) doSendMagicEffect(getThingPos(cid), p.effect) addEvent(function() if isPlayer(cid) then checkPrestige(cid) end end, interval * 1000) end return true end function onLogin(cid) return checkPrestige(cid) and true end Tag - creaturescripts.xml (data\creaturescripts): <event type="login" name="checkPrestige" event="script" value="checkprestige.lua"/> PS: com esse callback, não se registra creature event.
-
Sistema Tipo PXG(Help)
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 Scripts" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
-
Bug MW
Se você já verificou a positionToVariant como contendo uma magic wall, qual a necessidade de aplicar 20 segundos de exhaustion? Só seria necessário um intervalo pra usar a runa novamente, em outra posição. Tente: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) function onCastSpell(cid, var) local time = 3 -- seconds local stor = 98765 local v = getTileItemByType(variantToPosition(var), ITEM_TYPE_MAGICFIELD) if v.uid > 0 then return false elseif exhaustion.get(cid, stor) then return doPlayerSendCancel(cid, 'Cooldown['..exhaustion.get(cid, stor)..']') and false end return doCombat(cid, combat, var) and exhaustion.set(cid, stor, time) end
- [MAPA] Castle Map
-
Fodeo mano
Cara Tenho tanto medo de que isso aconteça comigo que eu já até guardei uma grana pra minha fiança.
-
[Pedido,Duvida] Como modificar client para outro jogo
Amigo, a seção na qual você criou esse tópico não tinha convicção alguma com o assunto tratado aqui. 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 → Aprovação de Tutoriais e Downloads" Para: "OTServ → Suporte OTServ → Suporte de Clients"
-
(Resolvido)[DUVIDA] Usar iten por Vocação
Não precisa fazer upload. Apenas clique no painel do editor de texto, onde se localizam os operadores relacionais <> e cole o script. De qualquer forma, substitua os códigos do seu movements.xml, por estes:
-
[Ajuda] Items maximo no depot.
Peguei um servidor base pra verificar, é TFS 1.0 e tem essas variáveis. Informe os códigos do seu config.lua
-
FIGHT QUE NÃO SAI
Procure no tópico onde você fez o download do seu servidor, ou confira a versão e tipo de distro que você utiliza. Existem várias sources no fórum, basta saber qual você usa e pesquisar por ela.
-
(Resolvido)[DUVIDA] Usar iten por Vocação
Poste o seu movements.xml do jeito que você modificou.
-
FIGHT QUE NÃO SAI
Segundo o arquivo config.lua do seu servidor, o tempo da condição infight é de: 60 * 1000 = 60000 milissegundos = 1 minuto = 60 segundos Se você tentar alterar o valor e não obtiver sucesso, pode também optar por alterar o huntingDuration diretamente na source. Em configmanager.cpp, procure por: m_confNumber[HUNTING_DURATION] = getGlobalNumber("huntingDuration", 60 * 1000); Daí, no caso o tempo é o mesmo que o citado acima, 60 mil milissegundos/1 minuto/60 segundos. Basta alterar, ex: 10 segundos = 10 * 1000 = 10 mil milissegundos. Também há como fazer um creature event que remove a condição após determinado tempo. Tente o método inicial, depois se quiser que eu faça em Lua, avise.
-
(Resolvido)[DUVIDA] Usar iten por Vocação
O value do atributo showInDescription deve ser 1 para mostrar as vocações na descrição do look do item. <movevent type="Equip" itemid="2508" slot="armor" event="function" value="onEquipItem"/> <vocation id="1"/> <vocation id="5" showInDescription="1"/> <vocation id="2"/> <vocation id="6" showInDescription="1"/> </movevent> <movevent type="DeEquip" itemid="2508" slot="armor" event="function" value="onDeEquipItem"/>
- Hunger System - Sistema de Fome
-
(Resolvido)Request - Auto bless para low level
Estranho. Fiz esse reconhecimento das 5 blessings, caso queira testar pra ver se soluciona o seu problema (de modo geral): function onDeath(cid) for i = 1, 5 do if not getPlayerBlessing(cid, i) or getCreatureSkullType > 3 then return true end end doCreatureSetDropLoot(cid, false) return true end Registre o creature event (death).
- Hunger System - Sistema de Fome
-
Talkaction Para Premium
@Vinicius Xxgamexx Então, qual a melhor resposta? Não vou decidir por você. Por favor, basta clicar no botão que está localizado abaixo do post do membro.