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

Need rune of teleport to temple please

pady

New Member
Joined
Mar 12, 2009
Messages
23
Reaction score
0
:thumbup:
I need a rune teleport to the temple to use it, not
I have because being in PZ,
I go use Rune ID: 2270

..:: The Forgotten Server, version 0.3.6 ::..
 
Last edited:
Code:
function onUse(cid,item,fromPosition,itemEx,toPosition)
	if isPlayerPzLocked(cid) == FALSE then
		doTeleportThing(cid,getTownTemplePosition(getTownId(cid)))
		doSendMagicEffect(getThingPos(cid),10)
	else
		doPlayerSendTextMessage(cid,27,'You can\'t use this while having PZ.')
	end
	return true
end

try this
 
LUA:
function onUse(cid,item,fromPosition,itemEx,toPosition)
	if isPlayerPzLocked(cid) == FALSE then
		doTeleportThing(cid, getPlayerMasterPos(cid))
		doSendMagicEffect(getThingPos(cid),10)
	else
		doPlayerSendTextMessage(cid,27,'You can\'t use this while having PZ.')
	end
	return true
end

Just edited one line from unknowns script, rep him.
 
to give it refills, the item has to be stackable.

Code:
function onUse(cid,item,fromPosition,itemEx,toPosition)
	if isPlayerPzLocked(cid) == FALSE then
		doTeleportThing(cid,getPlayerMasterPos(cid))
		doSendMagicEffect(getThingPos(cid),10)
		doRemoveItem(item.uid)
	else
		doPlayerSendTextMessage(cid,27,'You can\'t use this while having PZ.')
	end
	return true
end
 
It is stackable, just make sure the npc that sells it sells it with 5 charges, or if you use a spell to conjure it, that it conjures with 5 charges.No need to bother with spells.xml
 
I spell with the x100 but only last for a spin. No one npc sells them is for items on the online shop for donors. What should I do?
 
Use this:

LUA:
function onUse(cid,item,fromPosition,itemEx,toPosition)
	if isPlayerPzLocked(cid) == FALSE then
		doTeleportThing(cid,getPlayerMasterPos(cid))
		doSendMagicEffect(getThingPos(cid),10)
		doPlayerRemoveItem(cid, 2270, 1)
	else
		doPlayerSendTextMessage(cid,27,'You can\'t use this while having PZ.')
	end
	return true
end
 
Code:
function onUse(cid,item,fromPosition,itemEx,toPosition)
	if not isPlayerPzLocked(cid) then
		doTeleportThing(cid, getPlayerMasterPos(cid))
		doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
		doChangeTypeItem(item.uid, item.type - 1)
	else
		doCreatureSay(cid, 'You can\'t use this while PZ-locked.', TALKTYPE_ORANGE_1, false, cid)
	end
	return true
end
 
Back
Top