• 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 with doRelocate

ond

Veteran OT User
Joined
Mar 24, 2008
Messages
2,782
Solutions
25
Reaction score
491
Location
Sweden
I need to add some position to relocate items to !

Here is my noob script as it is:

LUA:
function onUse(cid, item, frompos, item2, topos)
	wall1 = {x=32614, y=32205, z=10, stackpos=1}
	wall2 = {x=32614, y=32206, z=10, stackpos=1}
	wall3 = {x=32614, y=32207, z=10, stackpos=1}
	wall4 = {x=32614, y=32208, z=10, stackpos=1}
	wall5 = {x=32614, y=32209, z=10, stackpos=1}
	wall6 = {x=32613, y=32220, z=10, stackpos=1}
	getwall1 = getThingfromPos(wall1)
	getwall2 = getThingfromPos(wall2)
	getwall3 = getThingfromPos(wall3)
	getwall4 = getThingfromPos(wall4)
	getwall5 = getThingfromPos(wall5)
	getwall6 = getThingfromPos(wall6)

	if item.uid == 1138 and item.itemid == 1945 then
		doRemoveItem(getwall1.uid,1)
		doRemoveItem(getwall2.uid,1)
		doCreateItem(1025,1,wall2)
		doRemoveItem(getwall4.uid,1)
		doCreateItem(1025,1,wall5)
		doCreateItem(1492,1,wall6)
		doTransformItem(item.uid,item.itemid+1)
	else
		doPlayerSendCancel(cid,"Sorry, not possible.")
	end

	return 1
end
 
Back
Top