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

[Instant-Spell] All-consuming fire

Lizard Helper

New Member
Joined
Apr 24, 2010
Messages
10
Reaction score
2
I'm trying to make a spell that combines Disintegrate and Fire Field along a random path. The idea being that it checks the sqm in front of you, deletes any items on it, then places a firefield, then does it again for the next sqm in a random direction. The closest I got was supposed to loop 5 times, but looped indefinitely and started deleting random tiles, not the items on them.

You don't have to do the whole thing, but at least the basics would be nice.
 
Code:
local function RemoveAndBurn(position)
	doCleanTile(position)
	local field = doCreateItem(1492, 1, position)
	doDecayItem(field)
	return true
end

? :P
 
Back
Top