Quickshot
Member
- Joined
- Nov 8, 2008
- Messages
- 595
- Reaction score
- 8
still one small problem
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray({SKULL_WHITE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) then
doPlayerSendCancel(cid, "You cannot teleport because you are skulled.")
elseif isPlayerPzLocked(cid) then
doPlayerSendCancel(cid, "You cannot teleport while in a fight.")
else
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doSendMagicEffect(getTownTemplePosition(getPlayerTown(cid)), CONST_ME_ENERGYAREA)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been teleported.")
end
return true
end
Last edited: