
Tudo que ZeeroBR postou
- Usando RME em 10.00/11.x
-
Pedido Talkaction
O valor da storage equivale a o número de points? se sim testa e me fala se funcionou function onSay(cid, words, param) local storage = 9999 -- mão mexa local storpoints = 8762 -- storage dos pontos local count = 10 -- quantidade do item que vai remover local looktype = 2192 -- O Looktype da outift que vai ser vendida if getPlayerStorageValue(cid, storage) >= 1 then doPlayerSendTextMessage(cid, 22, "Desculpe voce ja comprou essa outift") return true end if not getPlayerStorageValue(cid,storpoints) < 10 then doPlayerSendTextMessage(cid, 22, "Você não tem dinheiro suficiente") return true end getPlayerStorageValue(cid,storpoints) >= 10 then doPlayerAddOutfit(cid,looktype,3) setPlayerStorageValue(cid, storpoints, 0) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, 22, "Você comprou a outift") return true end
-
[PEDIDO] Critical System
@UP
-
[PEDIDO] Critical System
E aí guys, tranquilo? dei uma fuçada do caramba aqui no tk, acabei encontrando algumas coisas mas nada parecido com o que eu queria, bom eu queria um sistema de critical por item, podemos usar como exemplo aqueles rings que dão protect, queria uma coisa parecida só que acrescentasse chance de critical no player e ao tirar o ring não critasse mais
-
[AJUDA] Dev C++ dando um errinho ao tentar criar um novo projeto
Estou com um problema que quando vou criar um novo projeto de source acontece isso, alguém sabe como resolver? (já baixei outros mas continua com o mesmo erro) PS: Ignorem o ativar o windows KKKKKKKKK
-
[AJUDA] Adicionar X e Y na Spell
Você quer que eu explique o que fiz na script ou o que ela faz?
-
[AJUDA] Adicionar X e Y na Spell
Eu acho que é isso que você quer local combat_lv1 = createCombatObject() setCombatParam(combat_lv1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setAttackFormula(combat_lv1, COMBAT_FORMULA_LEVELMAGIC, 27.5, 1, 27.2, 1) local combat_lv2 = createCombatObject() setCombatParam(combat_lv2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat_lv2, COMBAT_PARAM_EFFECT, 81) setAttackFormula(combat_lv2, COMBAT_FORMULA_LEVELMAGIC, 32.5, 1, 32.2, 1) setCombatArea(combat_lv1) setCombatArea(combat_lv2) local position = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} -- posição que você vai mandar o primeiro efeito local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} -- posição que você vai mandar o segundo efeito local function onCastSpell1(parameters) doCombat(parameters.cid, combat_lv1, parameters.var) doSendMagicEffect(position, 74) -- efeito que você vai mandar end local function onCastSpell2(parameters) doCombat(parameters.cid, combat_lv2, parameters.var) doSendMagicEffect(position2, 81) -- efeito que você vai mandar end function onCastSpell(cid, var) local parameters = { cid = cid, var = var} local spell_storage = 44102 if getPlayerStorageValue(cid, spell_storage) < 50 then addEvent(onCastSpell1, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) elseif getPlayerStorageValue(cid, spell_storage) == 50 then addEvent(onCastSpell2, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) doPlayerSendTextMessage(cid, 22, "Seu jutsu progrediu para o level 2") doSendMagicEffect(getCreaturePosition(cid),28) doSendAnimatedText(getCreaturePosition(cid), 'Jutsu UP', 210) elseif getPlayerStorageValue(cid, spell_storage) > 50 and getPlayerStorageValue(cid, spell_storage) < 150 then addEvent(onCastSpell2, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) elseif getPlayerStorageValue(cid, spell_storage) == 150 then addEvent(onCastSpell3, 0, parameters) setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1) end return TRUE end
-
(Resolvido)[AJUDA] Spell que remove buff
Perfeito, agora tem mais uma coisa que estou quebrando a cabeça a uns dias, eu queria que quando eu utilizasse o buff da bijuu o meu buff normal saísse e não pudesse usar ele enquanto o buff da bijuu estiver ativo
-
(Resolvido)[AJUDA] Spell que remove buff
Ae Kotzlety, eu tentei muito fazer isso mas não consegui, se você estiver livre pode fazer pra mim? só pra eu tentar entender e aprender mesmo (na spell de remover buff funcionou, mas na da bijuu não) Buff bijuu: function buff_bijuu(cid, pointsSkill, time, subId) local buff_bijuu = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(buff_bijuu, CONDITION_PARAM_TICKS, time*1000) setConditionParam(buff_bijuu, CONDITION_PARAM_STAT_MAGICLEVEL, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SKILL_FIST, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SKILL_SWORD, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SKILL_AXE, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SKILL_CLUB, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SKILL_DISTANCE, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SKILL_SHIELD, pointsSkill) setConditionParam(buff_bijuu, CONDITION_PARAM_SUBID, subId) return doAddCondition(cid, buff_bijuu) end function onCastSpell(cid, var) local storageb = 102053 -- Storage que ta em Todos os BUffs, alguns pode não está, então coloque a mesma storage em todos os buff. local waittime = 30 --tempo em segundos local storage = 8877 --storage do exaust, em cada magia uma storage diferente. local stor = 124123 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, 20, "Voce só pode usar o poder da bijuu novamente em " .. exhaustion.get(cid, storage) .. " segundos.") return false end exhaustion.set(cid, storage, waittime) if getPlayerStorageValue(cid, storageb) >= 0 then setPlayerStorageValue(cid, storageb, 2) doRemoveConditions(cid, false) end local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z} if jin.getPlayerBijuu(cid) ~= 0 then if not getCreatureCondition(cid, CONDITION_ATTRIBUTES, jin_cond_id) then doSetCreatureOutfit(cid, {lookType = jin_bijuus[jin.getPlayerBijuu(cid):lower()].bijuu_outfit} , jin_bijuus[jin.getPlayerBijuu(cid):lower()].time_buff*1000) buff_bijuu(cid, jin_bijuus[jin.getPlayerBijuu(cid):lower()].skill_p, jin_bijuus[jin.getPlayerBijuu(cid):lower()].time_buff, jin_cond_id) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "A sua forma de bijuu foi ativada") doSendMagicEffect(getThingPosition(cid), jin_bijuus[jin.getPlayerBijuu(cid):lower()].effBuff) doSendMagicEffect(position, 301) else return false, doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce já esta com o buff de sua bijuu.") end else return false, doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Voce precisa selar alguma bijuu para usar seu buff.") end return true end Buff: local tempo = 60 -- tempo em segundos. local effect = {287} -- effect no player local cdsto = 124122 local stora = 124123 local cdtime = 35 -- tempo em segundos local storage = 666777 --storage do exaust, em cada magia uma storage diferente. local stor = 102053 local ml = 55 -- quantos ira aumentar o skill de ML local skillfist = 55 -- quantos ira aumentar o skill de Fist local skillsword = 55 -- quantos ira aumentar o skill de Sword local skillaxe = 55 -- quantos ira aumentar o skill de Axe local skillclub = 55 -- quantos ira aumentar o skill de Club local skilldistance = 55 -- quantos ira aumentar o skill de Distance local skillshield = 55 -- quantos ira aumentar o skill de Shield local health = 200 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 250) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function magicEffect5555555(tempo2,tempo3,cid) if (isCreature(cid)) then if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then for i=1, #effect do local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} doSendMagicEffect(position, effect[i]) end end end end function onCastSpell(cid, var) if getPlayerStorageValue(cid, cdsto) >= 1 or getPlayerStorageValue(cid, stor) >= 1 and exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, 20, "Voce está incapaz de usar o buff, aguarde " .. exhaustion.get(cid, storage) .. " segundos para usá-lo novamente.") return false end exhaustion.set(cid, storage, cdtime) if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect5555555, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 200 end setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado. else doPlayerSendCancel(cid, "Voce já está com Buff.") end end
-
[PEDIDO] Script de storage por tempo
Hm, eu já tinha essa parte, mas acho que não estou sabendo usar, você poderia verificar esses scripts pra mim? -- Script 1 local stor = 124123 if getPlayerStorageValue(cid, stor) == 0 then setPlayerStorageValue(cid, stor, 1) doRemoveConditions(cid, false) end -- -- Script 2 local stor = 124123 local storage = 666777 --storage do exaust, em cada magia uma storage diferente. function onCastSpell(cid, var) if getPlayerStorageValue(cid, cdsto) >= 1 or getPlayerStorageValue(cid, stor) >= 1 and exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, 20, "Voce está incapaz de usar o buff, aguarde " .. exhaustion.get(cid, storage) .. " segundos para usá-lo novamente.") return false end -- Eles estão funcionando perfeitamente, mas eu queria que no script 1, depois que eu setasse a storage com o valor 1 ela retornasse para o valor 0
-
[PEDIDO] Script de storage por tempo
Eu estava querendo uma script que setasse uma certa storage com o valor 1 ao player e após 30 segundos o valor retornasse a 0
-
(Resolvido)[AJUDA] Spell que remove buff
Obrigado mesmo, de verdade, mas eu tenho outra dúvida, no caso essa spell só remove o magic effect mas não remove os atributos que o personagem ganha, como posso editar isso?
-
[AJUDA] Spell de remover buff bugada
Galera, to com uma problema em uma spell de remover buff, que é o seguinte, ele remove apenas o efeito que está sendo enviado para o player, mas os atributos não. Segue as scripts abaixo: Spell de remover buff: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local storage = 102053 -- Storage que ta em Todos os BUffs, alguns pode não está, então coloque a mesma storage em todos os buff. local position = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} if isPlayer(target) then if getPlayerStorageValue(target, storage) == 1 then setPlayerStorageValue(target, storage, 0) doSendMagicEffect(position, 238) return doCombat(cid, combat, var) else doPlayerSendTextMessage(cid, 20, "O Player ja esta sem Buff.") end else doPlayerSendTextMessage(cid, 20, "Voce so pode usar este Jutsu em Players, pois monstros não tem Buff.") end end Buff: local tempo = 60 -- tempo em segundos. local effect = {287} -- effect no player local ml = 85 -- quantos ira aumentar o skill de ML local skillfist = 85 -- quantos ira aumentar o skill de Fist local skillsword = 85 -- quantos ira aumentar o skill de Sword local skillaxe = 85 -- quantos ira aumentar o skill de Axe local skillclub = 85 -- quantos ira aumentar o skill de Club local skilldistance = 85 -- quantos ira aumentar o skill de Distance local skillshield = 85 -- quantos ira aumentar o skill de Shield local health = 200 -- A cada 1 segundo quantos aumentar de vida local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, ml) setConditionParam(condition, CONDITION_PARAM_SKILL_FIST, skillfist) setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, skillsword) setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, skillaxe) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, skillclub) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, skilldistance) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, skillshield) setConditionParam(condition, CONDITION_PARAM_OUTFIT, outfit) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_SPEED, 250) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat, condition) local condition = createConditionObject(CONDITION_REGENERATION) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, health) setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000) setCombatCondition(combat, condition) function magicEffect5555555(tempo2,tempo3,cid) if (isCreature(cid)) then if getPlayerStorageValue(cid, 102053) > 0 and getCreatureCondition(cid, CONDITION_REGENERATION, 1) then for i=1, #effect do local position = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} doSendMagicEffect(position, effect[i]) end end end end function onCastSpell(cid, var) if getPlayerStorageValue(cid, 102053) ~= 1 or getCreatureCondition(cid, CONDITION_REGENERATION, 1) == false then doCombat(cid, combat, var) tempo2 = 0 while (tempo2 ~= (tempo*1000)) do addEvent(magicEffect5555555, tempo2, tempo2, tempo*1000, cid) tempo2 = tempo2 + 200 end setPlayerStorageValue(cid, 102053,1) -- storage verifica transformado, quando = 1 player esta transformado. else doPlayerSendCancel(cid, "Voce já está com Buff.") end end
- [Narutibia] Jinchuuriki System - Distro 0.4
- [Narutibia] Jinchuuriki System - Distro 0.4
-
(Resolvido)[AJUDA] Spell que remove buff
Vish, sei nem pra onde vai KKK ;-;
- [Narutibia] Jinchuuriki System - Distro 0.4
- [Narutibia] Jinchuuriki System - Distro 0.4
-
(Resolvido)[AJUDA] Spell que remove buff
Fala guys, tenho uma spell de remover buff criada pelo @KotZletY, ela funciona perfeitamente, mas eu queria aprimorá-la para que o player que fosse atingido pela spell não conseguisse usar o buff durante um determinado tempo (configurável), segue o script abaixo: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 238) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -40.2, 1, -40.2, 1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local storage = 102053 -- Storage que ta em Todos os BUffs, alguns pode não está, então coloque a mesma storage em todos os buff. if isPlayer(target) then if getPlayerStorageValue(target, storage) == 1 then setPlayerStorageValue(target, storage, 0) return doCombat(cid, combat, var) else doPlayerSendTextMessage(cid, 20, "O Player já está sem Buff.") end else doPlayerSendTextMessage(cid, 20, "Você só pode usar este Jutsu em Players, pois monstros não tem Buff.") end end A spell remove o effect do player, mas não tira os atributos, tem como consertar isso?
-
Showvoc
Como que funciona esse sistema de kages no seu servidor? você que fez ou tem aqui no TK?
-
Tibia Extended Client Library
Eu fui testar e crashou, não consigo mais logar, como faço pra tirar o ctrl n?
-
[OTC] Travamento no client
Po vei, to quebrando a cabeça aqui também, mas o meu problema é literalmente qualquer effect que apareça na tela o fps cai
-
[OTC] Travamento no client
Recentemente eu instalei o client OTC, compilei ele em dx9 mas ao usar qualquer spell o meu jogo simplesmente tem uma queda de frames absurda, chega até a bugar às vezes, alguém pode me falar o que pode ser? (O client está extendido em uint32, e o servidor também)
-
OTClient 0.6.3 | 7.4 à 10.9 (ATUALIZADO!)
Link quebrado, alguém?
- [Narutibia] Jinchuuriki System - Distro 0.4