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

help plz

amandastar

New Member
Joined
Mar 21, 2011
Messages
4
Reaction score
0
i was wondering if anyone had a script for a wall that can be rebuilt with a hammer and tore down with a hammer...or if that is even possible...but not like click it once and its rebuilt or tore down u would have to use it a few times
 
I wanted to post but otland stopped working >_>

anyways, what are you going to do about movable trash? or it's going to be unmoveable?
 
unmovealbe i wanted to create a like castle where u can defend it against other guilds and they can tear down ur castle walls to win the event....do u get it?
 
LUA:
local wall = XXXX
local broken = YYYY

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if itemEx.itemid == wall then
		if math.random(4) == 1 then
			doTransformItem(itemEx.uid, broken)
			doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
		else
			doSendMagicEffect(toPosition, CONST_ME_POFF)
		end
	elseif itemEx.itemid == broken then
		doTransformItem(itemEx.uid, wall)
		doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
	else
		return false
	end
	return true
end
 
Back
Top