• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Play a Music to enter

Nux

Yzeria Custom War
Joined
Jan 2, 2009
Messages
1,067
Reaction score
1
Well i got an idea for my war server and tought to put it in here and see if someone could make it for me.. well check the pic out and it would give you a humm of it.. you can always pm me and ask me more about the idea


namnlsl.jpg


Nux~
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local config = {
		reqPos = {x=,y=,z=}, -- Position, on which player has to stand while music is playing.
		inside = {x=,y=,z=}, -- Position where player will be teleported.
		msg = "Password match. :P"
	}

	if (getCreaturePosition(cid) == config.reqPos) then
		doTeleportThing(cid, config.inside)
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, config.msg)
	end

	return TRUE
end

Try this one, posted earlier.
When you use the item, it will teleport you, if your standing there.
 
Back
Top