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

Weapons question

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello i maked on my OT custom wand (effect shooting SD),
and when i got this:
XML:
<wand id="11394" level="58" mana="20" min="75" max="120" type="death" script="losthope.lua"/>

The wand dont attack target (0 damage)

How i can set damage from 75 to 120 in this script:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

And second question is:
How i can set attack speed on weapon i have ex. custom bows and i want set special speed attack in bow (when player got this bow [equipped] he attack fastest like fast atk)]
 
Why make a script for the wand?
Plus, it should be:
XML:
event="script" value="xxxx.lua"
Just make it default and it will work normally:
XML:
<wand id="11934" level="58" mana="20" min="75" max="120" type="death" event="function" value="default">
 
Santi thanks.

And second question:
How i can set attack speed on weapon i have ex. custom bows and i want set special speed attack in bow (when player got this bow [equipped] he attack fastest like fast atk)]
 
You can set that in items.xml dunno the right attribute but try something like attackspeed or AttackSpeed something like that
 
Back
Top