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

Teleport to your house

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Get a teleport leading to the city anywhere in your home.
rep+ :wub:
 
Code:
function onSay(cid, words, param, channel)
	return hasCondition(cid, CONDITION_INFIGHT) and doPlayerSendCancel(cid, "Sorry, you are in a fight.") or getPlayerLevel(cid) < getConfigInfo("levelToBuyHouse") and doPlayerSendCancel(cid, "Sorry, not possible.") or not getHouseByPlayerGUID(getPlayerGUID(cid)) and doPlayerSendCancel(cid, "Sorry, but you do not own a house.") or doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
end
 
Last edited:
/r/eadable
Code:
function onSay(cid, words, param, channel)
	return
	hasCondition(cid, CONDITION_INFIGHT) and
		doPlayerSendCancel(cid, "Sorry, you are in a fight.")
	or getPlayerLevel(cid) < getConfigInfo("levelToBuyHouse") and
		doPlayerSendCancel(cid, "Sorry, not possible.")
	or not getHouseByPlayerGUID(getPlayerGUID(cid)) and
		doPlayerSendCancel(cid, "Sorry, but you do not own a house.")
	or doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
end
 
function onUse(cid, item, fromPosition, itemEx, toPosition)

I didn't see that, I thought you wanted a command :wub:
 
Back
Top