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

how to make a rod?

CheatsBCN

New Member
Joined
Mar 6, 2012
Messages
131
Reaction score
1
Hello i want to change the arcane staf for a kind of wand throwing sudden deaths, then i just tought copy paste the underwolrd rod but then i was looking to the damage that it should do but i dont see where i can make it more or less dmg


PHP:
	<item id="2453" article="an" name="arcane staff">
		<attribute key="description" value="It is filled with the dark hatred and rage of a tormented demonic being." />
		<attribute key="weight" value="2850" />
		<attribute key="weaponType" value="wand" />
		<attribute key="shootType" value="death" />
		<attribute key="range" value="3" />
	</item>
 
In weapons.xml you can edit the damage afaik.

I failed and Scarlet got there first anyway ;[
 
Add on weapons.xml:

Code:
<wand id="2453" level="[COLOR="#FF0000"]X[/COLOR]" mana="[COLOR="#FF0000"]X[/COLOR]" min="[COLOR="#FF0000"]X[/COLOR]" max="[COLOR="#FF0000"]X[/COLOR]" type="death" event="function" value="default"> <!-- Custom Wand -->
		<vocation id="1"/>
		<vocation id="2"/>
	</wand>

Change the X as you want.
 
Last edited:
ANd how can i make it look like a suddean death rune when it throws? cus it throws like a dark thing that i dont like
 
Last edited:
Weapons.xml
XML:
	<wand id="XXXX" level="50" mana="15" event="script" value="suddendeathrod.lua"> <!-- New Rod -->
		<vocation id="2"/>
	</wand>

suddendeathrod.lua
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)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.5, -20, -1.5, -40)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
 
Try that:

weapons.xml
Code:
<wand id="2453" level="[COLOR="#FF0000"]X[/COLOR]" mana="[COLOR="#FF0000"]X[/COLOR]" type="death" function="script" script="custom_wand.lua">
                <vocation id="1"/>
		<vocation id="2"/>
	</wand>

custom_wand.lua
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
 
function onGetFormulaValues(cid, level, maglevel)
	local min = level * 0.2 + maglevel * 0.9
	local max = level * 0.4 + maglevel * 1.2
	return -min, -max
end
 
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
 
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

Offtopic: http://otland.net/f16/apache-problem-169544/
 
Try that:

weapons.xml
Code:
<wand id="2453" level="[COLOR="#FF0000"]X[/COLOR]" mana="[COLOR="#FF0000"]X[/COLOR]" type="death" function="script" script="custom_wand.lua">
                <vocation id="1"/>
		<vocation id="2"/>
	</wand>

custom_wand.lua
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
 
function onGetFormulaValues(cid, level, maglevel)
	local min = level * 0.2 + maglevel * 0.9
	local max = level * 0.4 + maglevel * 1.2
	return -min, -max
end
 
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
 
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end




yeah! it worked but its not doing dmg!!! i just want to put 100 min 150 max! how shall i do it???
 
custom_wand.lua

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 0)
setCombatParam(combat, COMBAT_PARAM_TYPE, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
 
function onGetFormulaValues(cid, level, maglevel)
	local min =  -(getPlayerLevel(cid) * 0.20) + getPlayerMagLevel(cid) * 0.9)
	local max = -(getPlayerLevel(cid) * 0.40) + getPlayerMagLevel(cid) * 1.2)
	return min, max
end
 
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
 
function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end
 
@up
hmm he no need add min and max in weapons.xml ? and script where have attacks xd?

changed your file in weapos.xml
Lua:
<wand id="2543" mana="30" min="100" max="150" type="death" event="script" value="custom_wand.lua">
              <vocation id="1"/>
		<vocation id="5"/>
              <vocation id="2"/>
		<vocation id="6"/>
	</wand>
 
@up
hmm he no need add min and max in weapons.xml ? and script where have attacks xd?

changed your file in weapos.xml
Lua:
<wand id="2543" mana="30" min="100" max="150" type="death" event="script" value="custom_wand.lua">
              <vocation id="1"/>
		<vocation id="5"/>
              <vocation id="2"/>
		<vocation id="6"/>
	</wand>

not working
 
All you need to do is edit the items.xml and weapons.xml. No need to do anything else. Also, where it says 'event="script" value=', change all of that to just 'script='. That's what I have to do whenever I import anything. And change 'vocation id=number' to 'vocation name=name'.
 
Tested the custom_wand.lua on page 2 ?

ye i tested, its doing dmg now but funny thing is that number are not shown now lol the monster is losing hp but u dont se the hitpoints xDDD

anyway all I want is just the "suddendeath" looktype i want to add a min and a max like all the others wands
 
Which server do you use and how did the script I posted didn't work (errors, what happens, etc)? Because it's a basic wand script that should work on almost every server. Also you want it not level/magiclevel based but just only min/max?
 
Back
Top