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

temple scroll

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:
0.3.6pl1

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local skulls = {
		white = SKULL_WHITE,
		red = SKULL_RED,
		black = SKULL_BLACK
	}
	local pos = getTownTemplePosition(getPlayerTown(cid))
	if(isInArray(skulls, getCreatureSkullType(cid))) then
		doPlayerSendCancel(cid, "You cannot teleport because you are skulled.")
	elseif(isPlayerPzLocked(cid) == true or hasCondition(cid, CONDITION_INFIGHT)) then
		doPlayerSendCancel(cid, "You cannot teleport while in a fight.")
	else
		doTeleportThing(cid, pos)
		doSendMagicEffect(pos, CONST_ME_ENERGYAREA)
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been teleported.")
	end
	return true
end
 
Last edited:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
return true,
	isInArray({SKULL_WHITE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) and doPlayerSendCancel(cid, "You cannot teleport because you are skulled.") or
	(isPlayerPzLocked(cid) or hasCondition(cid, CONDITION_INFIGHT)) and doPlayerSendCancel(cid, "You cannot teleport while in a fight.") or
	doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) and doSendMagicEffect(getTownTemplePosition(getPlayerTown(cid)), CONST_ME_ENERGYAREA) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been teleported.")
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
return true,
	isInArray({SKULL_WHITE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) and doPlayerSendCancel(cid, "You cannot teleport because you are skulled.") or
	(isPlayerPzLocked(cid) or hasCondition(cid, CONDITION_INFIGHT)) and doPlayerSendCancel(cid, "You cannot teleport while in a fight.") or
	doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) and doSendMagicEffect(getTownTemplePosition(getPlayerTown(cid)), CONST_ME_ENERGYAREA) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been teleported.")
end

Maybe it's just me, but I'm jealous ^_^
 
Code:
	local skulls = {
		white = SKULL_WHITE,
		red = SKULL_RED,
		black = SKULL_BLACK
	}
this doesn't look right ;s
jdb have you tested with skulls?
 
It's just you...
Cykotitan posts on every thread after me and tries to steal rep. <_<
Even if my script works, he still posts his "cyko style" version.

I really don't think hes out to steal rep from anyone, he's just posting a better version of a script..
 
I really don't think hes out to steal rep from anyone, he's just posting a better version of a script..

Actually to the people requesting it, it isn't better.
You think they can configure his scripts easily?
That is how I make scripts...easily configured, but w/e, it's cool.
 
Actually to the people requesting it, it isn't better.
You think they can configure his scripts easily?
That is how I make scripts...easily configured, but w/e, it's cool.

Cyko did exactly what he requested, what needs to be configured?
 
i have a problem i cant use the scroll if a monster atks me how do i fix that?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
return true,
	isInArray({SKULL_WHITE, SKULL_RED, SKULL_BLACK}, getCreatureSkullType(cid)) and doPlayerSendCancel(cid, "You cannot teleport because you are skulled.") or
	(isPlayerPzLocked(cid) or hasCondition(cid, CONDITION_INFIGHT)) and doPlayerSendCancel(cid, "You cannot teleport while in a fight.") or
	doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) and doSendMagicEffect(getTownTemplePosition(getPlayerTown(cid)), CONST_ME_ENERGYAREA) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You have been teleported.")
end
 
Back
Top