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

Fire field rune/Delete rune

clone

New Member
Joined
Jun 16, 2007
Messages
412
Reaction score
1
I am looking for a 5x5 destroy field rune and a rune that deletes anything including walls and not floors.
 
try this


Code:
local combat = createCombatObject()
local fields = {Magic Wall ID, wild Growth ID, SOmting else Id}
function onTargetTile(cid, pos)
	pos.stackpos = STACKPOS_TOP_FIELD
	item = getThingfromPos(pos)
	if item.itemid > 0 then
		if isInArray(fields, item.itemid) == TRUE then
			doRemoveItem(item.uid, 1)
		end
	end
	doSendMagicEffect(pos, CONST_ME_POFF)
end

local area = createCombatArea({{1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}, {1, 1, 3, 1, 1,}, {1, 1, 1, 1, 1}, {1, 1, 1, 1, 1}})
setCombatArea(combat, area)

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


if you want it to remove magic walls u need to set the ids

Code:
local fields = {0000, 0000, 00000}

instead of 0000 put the id's you can add as many as u want.




and you can change the fields
example
Code:
local area = createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})
setCombatArea(combat, area)


1= where it will destroy
3= where u target on
you need to see it like this
Code:
({{1, 1, 1},
  {1, 3, 1},
  {1, 1, 1}})

if you want it 5x5 then u need to make it like this (already added it to the script)
Code:
({{1, 1, 1, 1, 1},
  {1, 1, 1, 1, 1},
  {1, 1, 3, 1, 1,},
  {1, 1, 1, 1, 1},
  {1, 1, 1, 1, 1}})



i hope this will help you altought i dident test the script
 
Last edited:
Back
Top