• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

temple teleport scroll

perfection

FATAL DAMAGE
Joined
Aug 27, 2011
Messages
196
Reaction score
8
LUA:
function onUse(cid, item, frompos, item2, topos)
	if item.itemid == 6119 and (getCreatureCondition(cid, CONDITION_INFIGHT)) == FALSE then
		doTeleportThing(cid, getPlayerMasterPos(cid))
		doSendMagicEffect(getPlayerPosition(cid), 10)
	else
		doPlayerSendCancel(cid,"You Are Currently in a Fight")
	end	
return 1
end
 
Last edited:
LUA:
function onUse(cid)
	return doTeleportThing(cid, getPlayerMasterPos(cid), doSendMagicEffect(getPlayerMasterPos(cid), CONST_ME_TELEPORTS)
end

Use constants. Script pretty useless, everyone can write this.
 
i edited the script since i noticed that players can get tped while in battle sry for that :/
 
Back
Top