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

Door

kamilcioo

Veteran OT User
Joined
Jul 25, 2008
Messages
979
Solutions
1
Reaction score
291
I need door:
1. It will tp you to place
2. You must have storage id of quest
3. If you dont have it will say go make xx quest
 
Code:
local place = [B][COLOR="red"]{x=100, y=100, z=7}[/COLOR][/B]

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getCreatureStorage(cid, [B][COLOR="red"]STORAGE[/COLOR][/B]) ~= -1 then
		doTeleportThing(cid, place)
		dOSendMagicEffect(place, CONST_ME_TELEPORT)
	else
		doCreatureSay(cid, '[B][COLOR="red"]Go make xx quest.[/COLOR][/B]', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end
 
Back
Top