• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua 8.60 Wand Element Help!

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
I want so lifedrain paralyze and Physical drunk please help me add on script
Lua:
local min, max = 1000000000,1000000000 --Ataque mínino e ataque máximo

local w = {
    [1] = {ef = 36, sh = 3, dmg = COMBAT_FIREDAMAGE},
    [2] = {ef = 42, sh = 28, dmg = COMBAT_ICEDAMAGE},
    [3] = {ef = 46, sh = 38, dmg = COMBAT_POISONDAMAGE},
    [4] = {ef = 17, sh = 31, dmg = COMBAT_DEATHDAMAGE},
    [5] = {ef = 26, sh = 35, dmg = COMBAT_ENERGYDAMAGE},
    [6] = {ef = 26, sh = 31, dmg = COMBAT_PHYSICALDAMAGE},
    [7] = {ef = 26, sh = 31, dmg = COMBAT_PHYSICALDAMAGE},
    [8] = {ef = 49, sh = 37, dmg = COMBAT_HOLYDAMAGE}
}

function onUseWeapon(cid, var)
        local effect = getPlayerStorageValue(cid, 4561)
        local target = getCreatureTarget(cid)
       
        if target ~= 0 then
                local wx = w[effect] or w[math.random(#w)]
                doSendDistanceShoot(getThingPos(cid), getThingPos(target), wx.sh)
                addEvent(doAreaCombatHealth, 0, cid, wx.dmg, getThingPos(target), 0, -min, -max, wx.ef)
        end
        return true
end
 
Last edited:
Back
Top