Postado Maio 20, 2019 6 anos Olá galera do TK, Estou querendo criar uma runa de LIFE/MANA RUNE, que heala-se os dois full... segue um exemplo da UH do server: --doTargetMagic -- attackType: Type of attack. -- cid: creature id. -- Targetpos: Target position. -- animationEffect: Projectile animation. -- hitEffect: Effect to show when spell hits a creature. -- damageEffect: Effect to show when spell hits a player. -- animationColor: Color of the text that is shown above the player when hit. -- offensive: Indicates if the spell is a healing/attack spell. -- drawblood: Determines if the spell causes blood splash. -- minDmg: Minimal damage. -- maxDmg: Maximum damage. -- returns true if the spell was casted. attackType = ATTACK_NONE animationEffect = NM_ANI_NONE hitEffect = NM_ME_NONE damageEffect = NM_ME_MAGIC_ENERGIE animationColor = GREEN offensive = false drawblood = false UltimateHealingObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0) function onCast(cid, creaturePos, level, maglv, var) centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z} UltimateHealingObject.minDmg = (level * 2 + maglv * 3) * 1.8 if UltimateHealingObject.minDmg < 250 then UltimateHealingObject.minDmg = 250 end UltimateHealingObject.maxDmg = (level * 2 + maglv * 3) * 2.3 if UltimateHealingObject.maxDmg < 250 then UltimateHealingObject.maxDmg = 250 end return doTargetMagic(cid, centerpos, UltimateHealingObject:ordered()) end Se alguém quiser pelo menos tentar me ajudar, agradeço!
Postado Maio 27, 2019 6 anos Autor function onUse(cid, item, frompos, item2, topos) mag = getPlayerMagLevel(cid) if item2.uid == cid then doSendMagicEffect(topos,14) doPlayerSay(cid,"Fear Bless!",16) doPlayerAddMana(cid, 99999999) doPlayerAddHealth(cid, 99999999) if item.type > 1 then doChangeTypeItem(item.uid,item.type-1) else doRemoveItem(item.uid,1) end else doSendMagicEffect(frompos,2) doPlayerSendCancel(cid,"You can only use this rune on creatures.") end return 1 end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.