Postado Agosto 18, 2016 8 anos tenho essa script quero que ela fique com o efeito do /z 42 somente esse efeito alguém sabe oq eu faco ? Spoiler w = { [1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [3] = {ef = 45, sh = 38, dmg = COMBAT_POISONDAMAGE}, [4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [5] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [6] = {ef = 31, sh = 35, dmg = COMBAT_PHYSICALDAMAGE}, [7] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) min, max = 300000, 300000 -- dano minimo e maximo target = getCreatureTarget(cid) if target ~= 0 then wx = w[math.random(1, #w)] doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh) addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef) end return true end
Postado Agosto 24, 2016 8 anos Tente assim : Spoiler w = { [1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE}, [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [3] = {ef = 45, sh = 38, dmg = COMBAT_POISONDAMAGE}, [4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [5] = {ef = 11, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [6] = {ef = 31, sh = 35, dmg = COMBAT_PHYSICALDAMAGE}, [7] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) min, max = 300000, 300000 -- dano minimo e maximo target = getCreatureTarget(cid) if target ~= 0 then wx = w[math.random(1, #w)] doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh) addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, 42) end return true end ou assim: Spoiler w = { [1] = {ef = 42, sh = 3, dmg = COMBAT_FIREDAMAGE}, [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE}, [3] = {ef = 42, sh = 38, dmg = COMBAT_POISONDAMAGE}, [4] = {ef = 42, sh = 31, dmg = COMBAT_DEATHDAMAGE}, [5] = {ef = 42, sh = 35, dmg = COMBAT_ENERGYDAMAGE}, [6] = {ef = 42, sh = 35, dmg = COMBAT_PHYSICALDAMAGE}, [7] = {ef = 42, sh = 37, dmg = COMBAT_HOLYDAMAGE} } function onUseWeapon(cid, var) min, max = 300000, 300000 -- dano minimo e maximo target = getCreatureTarget(cid) if target ~= 0 then wx = w[math.random(1, #w)] doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh) addEvent(doAreaCombatHealth, 100, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef) end return true end
Postado Agosto 25, 2016 8 anos @kauan13 Eu testei a segunda forma é aki esta saindo o efeito de /z 42 porem os outros efeitos estão saindo junto por conta q seja efeito do proprio hit creio eu.
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.