• 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 Problem with removing mwalls in quest

bivan

New Member
Joined
Dec 18, 2008
Messages
125
Reaction score
1
So, I have a problem with removing mwalls in banshee quest. I made a Real Banshee Quest but i had a strange problem. I was copied this script from Behemoth Quest and change item id form stone to mwall and there... its doesn't work :| Also i can't create this item(id-1498) by god everywhere. Next stragne thing is - another mwalls, which don't appertain to this scripts aren't showing in game but in map editor - are. What the fuck...

script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local gatePosition = {x=32266, y=31860, z=11, stackpos=1}
	local getGate = getThingFromPos(gatePosition)
	if(item.uid == 5001) then
		if(item.itemid == 1945 and getGate.itemid == 1498) then
			doRemoveItem(getGate.uid, 1)
			doTransformItem(item.uid, item.itemid+1)
		elseif(item.itemid == 1946 and getGate.itemid == 0) then
			doCreateItem(1498, 1, gatePosition)
			doTransformItem(item.uid, item.itemid-1)
		else
			doPlayerSendCancel(cid, "Sorry not possible.")
		end
	end
	return TRUE
end
 
Back
Top