• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Wand with color damage

adamox223

New Member
Joined
Oct 21, 2017
Messages
100
Reaction score
4
Hello, how i can set color damage wand? I do not want to be e.g. COMBAT_ENERGYDAMAGE, i need something like
Code:
setCombatParam(combat, COMBAT_PARAM_HITCOLOR, COLOR_YELLOW)
here is script:

Code:
w = {
    [1] = {ef = 187, sh = 41, dmg = COMBAT_ENERGYDAMAGE},
    [2] = {ef = 187, sh = 41, dmg = COMBAT_HOLYDAMAGE}

}

function onUseWeapon(cid, var)
    min, max = 100, 100 -- what damage you want
    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

Sorry for bad english ^^
 
afair in the default tfs you can define the dmg color only by setting its type (fire, ice itp). The thing you want needs to be done somehow in sources
 
Back
Top