• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Firewalking

sn3ejk

This account is inactive.
Joined
Nov 16, 2011
Messages
2,121
Solutions
1
Reaction score
145
Spells
Firewalking

_____


Spell active firewalking. While player move, he create fire field (per square).

TS_FoK.gif



  • Damage
    Damage is like standart fire field (when monster step in it).
    _
  • Time
    Time is equal 5 seconds.

XML:
		<instant name="Firewalking" words="exevo mas flam hur" lvl="18" mana="25" direction="1" exhaustion="2000" needlearn="0" event="script" value="attack/firewalking.lua">
		<vocation id="1"/>
		<vocation id="5"/>
	</instant>
Lua:
local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5 * 1000)
setConditionFormula(condition, 0.3, -24, 0.3, -24)

function doEvent(cid, count, lastPosition)
	if (not isCreature(cid) or count <= 0) then
		return
	end
	
	local item = getTileItemById(lastPosition, 1492)
	if (not doComparePositions(lastPosition, getThingPosition(cid)) and item.uid <= 0) then
		local fire = doCreateItem(1492, 1, lastPosition)
		doDecayItem(fire)
	end
	addEvent(doEvent, 200, cid, count - 1, getThingPosition(cid))
end

function onCastSpell(cid, var)

	addEvent(doEvent, 200, cid, 50, getThingPosition(cid))
	doAddCondition(cid, condition)
	return true
end
 
Last edited:
Refresh. Any ideas for changes/updates?
 
Back
Top