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

[request] globalevent for stone

Gsp

RP
Joined
Jan 3, 2008
Messages
250
Solutions
1
Reaction score
4
hi guys xD
i need a script that will check the pos and if stone isnt there it will create it
i tried to make one but i sux

PHP:
local walls = {
	{ x = 27, y = 124, z = 9, stackpos = STACKPOS_FIRST_ITEM_ABOVE_GROUNDTILE }
}

function createWalls(item, position)
		doCreateItem(1304, 1, walls[i])
		doSendMagicEffect(walls[i], CONST_ME_MAGIC_GREEN)

end

function onThink(interval, lastExecution)
	return TRUE
end
 
Use this:

PHP:
function onThink(interval, lastExecution) 
	local wallpos = {x=95, y=123, z=7, stackpos=1}
	local getWall = getThingfromPos(wallpos)
	local wallId = 1304
	
	if not (getWall.itemid == wallId) then
		doCreateItem(wallId, 1, wallpos)
	end
return TRUE	
end
 
Back
Top