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

Banshee quest script [screen included]

christiandb

Member
Joined
Feb 5, 2008
Messages
2,469
Reaction score
5
Location
010
Code:
local config = {
	place = { x = 32176, y = 31861, z = 15 },
	blackPearl = { x = 32180, y = 31871, z = 15, stackpos = 1 },
	whitePearl = { x = 32173, y = 31871, z = 15, stackpos = 1 },
	text = "Sorry you can't be teleported."
	}
function onStepIn(cid, item, position, fromPosition)
	if item.uid == 7523 then
		if getPlayerStorageValue(cid, 7500) == 20 then
			if getThingfromPos(config.whitePearl).itemid == 2143 and getThingfromPos(config.blackPearl).itemid == 2144 then
				doTeleportThing(cid, config.place, 0)
				setPlayerStorageValue(cid, 7500, 21)
			else
				doTeleportThing(cid, fromPosition, 0)
			end
		else
			doTeleportThing(cid, fromPosition, 0)
		end
	else
		doPlayerSendCancel(cid, config.text)
	end
	return TRUE
end
I got this code from Marci~ (my scripting hero:p) but it still doesnt work. The coordinates are right. Here is a screen: http://img224.imageshack.us/my.php?image=bansheequestrf6.jpg

Thanks in advance,

Chris~
 
Change the config to this:

PHP:
local config = {
	place = { x = 32176, y = 31861, z = 15 },
	blackPearl = { x = 32180, y = 31871, z = 15, stackpos = 2 },
	whitePearl = { x = 32173, y = 31871, z = 15, stackpos = 2 },
	text = "Sorry you can't be teleported."
	}
 
Back
Top