• 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!

Question weapon damage

insebbe123

New Member
Joined
Mar 31, 2012
Messages
44
Reaction score
2
What is the best way in 0.3.6 crying damson 8.6 to change damage in weapon like sword, axe, bows without ammo, wands etc, i found alot of different scripts but i doesn't know what is the best and easiest way, i will change alot of weapons, armor etc.
PS i doesn't wanna use weapons.xml i want scripts
Thanks

Best Regards
s3ican
 
What is the best way in 0.3.6 crying damson 8.6 to change damage in weapon like sword, axe, bows without ammo, wands etc, i found alot of different scripts but i doesn't know what is the best and easiest way, i will change alot of weapons, armor etc.
PS i doesn't wanna use weapons.xml i want scripts
Thanks

Best Regards
s3ican
 
i tried the double attack one but it doesn't work with this

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)

function onUseWeapon(cid, var)
local minDamage = (getPlayerLevel(cid)*1.4 + getPlayerMagLevel(cid)*5 + 100) * 1.2
local maxDamage = (getPlayerLevel(cid)*1.4 + getPlayerMagLevel(cid)*5 + 200) * 1.35
local target = getCreatureTarget(cid)
doTargetCombatHealth(cid, target, COMBAT_HOLYDAMAGE, -minDamage, -maxDamage, 39)
  return doCombat(cid, combat, var)
end


any way i can make it work?, because if i make this scripts 2 times and sets a math.random thing, i can't connect them, if i use doCombat on both it gets a nil value and if i just use doCombat on one, the Distanceeffect doesn't applie for the otherone
 
i tried the double attack one but it doesn't work with this

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)

function onUseWeapon(cid, var)
local minDamage = (getPlayerLevel(cid)*1.4 + getPlayerMagLevel(cid)*5 + 100) * 1.2
local maxDamage = (getPlayerLevel(cid)*1.4 + getPlayerMagLevel(cid)*5 + 200) * 1.35
local target = getCreatureTarget(cid)
doTargetCombatHealth(cid, target, COMBAT_HOLYDAMAGE, -minDamage, -maxDamage, 39)
  return doCombat(cid, combat, var)
end


any way i can make it work?, because if i make this scripts 2 times and sets a math.random thing, i can't connect them, if i use doCombat on both it gets a nil value and if i just use doCombat on one, the Distanceeffect doesn't applie for the otherone
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_DAMAGE, 0, -100, 0, -250)
----------------------------------------------------------------
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 0)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat2, COMBAT_FORMULA_DAMAGE, 0, -410, 0, -450)


function onUseWeapon(cid, var)
randy= getPlayerLevel(cid) / 300 ---this option to if you want to edit the chance level for.. like critical or something disable it by reducing it to zero
playerpos = getPlayerPosition(cid)
rand = math.random(0, 100)
if rand >= 0 and rand <= randy then
      print("WORKS")
    return doCombat(cid, combat, var)
    else
    return doCombat(cid, combat2, var)
end
end
tell me if it works.
 
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_DAMAGE, 0, -100, 0, -250)
----------------------------------------------------------------
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 0)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat2, COMBAT_FORMULA_DAMAGE, 0, -410, 0, -450)


function onUseWeapon(cid, var)
randy= getPlayerLevel(cid) / 300 ---this option to if you want to edit the chance level for.. like critical or something disable it by reducing it to zero
playerpos = getPlayerPosition(cid)
rand = math.random(0, 100)
if rand >= 0 and rand <= randy then
      print("WORKS")
    return doCombat(cid, combat, var)
    else
    return doCombat(cid, combat2, var)
end
end
tell me if it works.
I want like double damage because attackspeed is so slow on 0.3.6 even if i set to 1ms and I can change
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_DAMAGE, 0, -100, 0, -250)
----------------------------------------------------------------
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 0)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat2, COMBAT_FORMULA_DAMAGE, 0, -410, 0, -450)


function onUseWeapon(cid, var)
randy= getPlayerLevel(cid) / 300 ---this option to if you want to edit the chance level for.. like critical or something disable it by reducing it to zero
playerpos = getPlayerPosition(cid)
rand = math.random(0, 100)
if rand >= 0 and rand <= randy then
      print("WORKS")
    return doCombat(cid, combat, var)
    else
    return doCombat(cid, combat2, var)
end
end
tell me if it works.
I can't check today im in bed but i will test tomorrow, what i really want is an skill + level + critical hit, so i can add it on all weapons and try balance them.
Thanks
 
I want like double damage because attackspeed is so slow on 0.3.6 even if i set to 1ms and I can change

I can't check today im in bed but i will test tomorrow, what i really want is an skill + level + critical hit, so i can add it on all weapons and try balance them.
Thanks
Yes bud it gonna work for ya .
 
Yes bud it gonna work for ya .
that works thank you :) is there anyway to edit equipment with script because right know i using absorbPercentAll but with very low numbers, and i would really love a script that does extra damage if u example use full demon set
Thanks
 
Back
Top