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

Lua Movement Script Error.

destroyer667

Member
Joined
Nov 21, 2007
Messages
290
Reaction score
6
I stepped on the tile and it removed the wall and then it doesn't put the wall back.



Using Avesta 7.6 v4

LUA:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		doRemoveItem(getTileItemById({x=32850, y=32289, z=12}, 1497).uid)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have removed the wall.')
		doTransformItem(item.uid, 425)
	end
end
 
function onStepOut(cid, item, pos, fromPos)
	if isPlayer(cid) then
		doCreateItem(1497, 1, {x=32850, y=32289, z=12})
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Wall is back.')
		doTransformItem(item.uid, 426)
	end
end


Cykotitan this is your script i got from here.

http://otland.net/f16/movement-script-error-stepin-stepout-116316/#post1147393



++rep anyone
 
Last edited:
I checked the script again and moved the position i had before. Now i get 0 error in console it removes the wall but doesn't put it back when you step off.
 
Back
Top