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

Mw charge

kilirt

New Member
Joined
May 11, 2009
Messages
223
Reaction score
2
Excuse me i've this rune in mods:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499)

local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Custom Spells" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<!-- Custom Runes -->
	<rune name="Magic Prison" id="2300" charges="1" maglv="20" exhaustion="2000" blocktype="solid" allowfaruse="1" event="script" value="customspells/magic prison.lua"/>
</mod>

and please if you know where can i modif the time of wall?
 
items.xml
Code:
	<item id="1499"  name="magic wall">
		<attribute key="type" value="magicfield" />
		<attribute key="decayTo" value="0" />
		<attribute key="duration" value="[color=red]20[/color]" />
	</item>
 
Leave it as a spell, but edit the script:
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499)
 
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
 
local area = createCombatArea(arr)
setCombatArea(combat, area)
 
function onCastSpell(cid, var)
	doCombat(cid, combat, var)
end
 
Back
Top