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

Pass Word

Amoor

Banned User
Joined
Dec 30, 2010
Messages
56
Reaction score
0
i want something like if u stand infront of a wall u say a word they u can pass by the wall or a door opens or something like that, if someone can rep+++ :D
 
You basically need an onSay script that checks the position - For someone to make this script you need to supply the following: - Position of the wall (x,y,z), Position of the player (x,y,z) and what word to say.
 
position is the pos where to stand,
teleport is position where player is teleported
LUA:
local position = {x=100,y=100,z=7}
local teleport = {x=100,y=100,z=7}

function onSay(cid, words, param, channel)
	local p = getThingPos(cid)
	if p.x ~= position.x or p.y ~= position.y or p.z ~= position.z then
		return true
	end
	doTeleportThing(cid, teleport)
	doSendMagicEffect(getThingPos(cid), 10)
	return true
end

XML:
	<talkaction words="YOUR_PASSWORD" event="script" value="password.lua"/>
 
Back
Top