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

God-like instant walking with click

XtrmJosh

Member
Joined
Oct 6, 2010
Messages
189
Reaction score
17
Hi all,

A friend is asking for a script, but his English is not the best so I think it will be easier if I ask on his behalf.

Could someone please provide a script so that on a god character when you left click to walk on the world view, the character is teleported there (not so much teleported as instantly moved, but you get the idea). It is a feature of some distros, but I can't find it by searching (possibly because the search terms "TP", "Teleport", "God" are all things which retards post on OT support boards when they want a god to come TP them out from a sticky situation...

Thanks in advance,
Josh
 
gamemaster.lua
Lua:
local ignore = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_IGNORE)
local teleport = createConditionObject(CONDITION_GAMEMASTER, -1, false, GAMEMASTER_TELEPORT)

function onSay(cid, words, param, channel)
	local condition = ignore
	local subId = GAMEMASTER_IGNORE
	local name = "private messages ignoring"
	if(words:sub(2, 2) == "c") then
		condition = teleport
		subId = GAMEMASTER_TELEPORT
		name = "map click teleport"
	end

	local action = "off"
	if(not getCreatureCondition(cid, CONDITION_GAMEMASTER, subId)) then
		doAddCondition(cid, condition)
		action = "on"
	else
		doRemoveCondition(cid, CONDITION_GAMEMASTER, subId)
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have turned " .. action .. " " .. name .. ".")
	return true
end
talkactions.xml
Code:
<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
 
Back
Top