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

Wouldn't this be an awesome idea?! Scripters welcome!

Skylinx

Game Programmer
Joined
Nov 26, 2008
Messages
399
Reaction score
15
Location
TORONTO, CANADA
I was thinking, if you've ever played World of Warcraft, people have hearthstones, if you click on them they teleport you to town.
My map is huge.. and some ppl hate walking..
So I was thinking is it possible to make an item that when you click on it, it teleports you to those coordinates?
Probably an action script could make an item like this...
But problem is, I don't want people with PZ using them, so maybe that'd be a restriction?

Post a reply :P
Maybe a scripter can help me make an item like this.
I can probably make a basic script, but I make a lot of mistakes cuz I'm not that good, would someone help?
 
Hearthstone script:

This script needs to be in Protection Zone to be teleported:

PHP:
--Script by Pitufo
function onUse(cid, item, fromPosition, itemEx, toPosition)
local Position = {
        {x = 97, y = 130, z = 7}
		}
local pos = getCreaturePosition(cid)
	if isPlayerPzLocked(cid) == TRUE then
		doTeleportThing(cid, Position[1], TRUE)
		doSendMagicEffect(pos, 10)
		doSendMagicEffect(Position[1], 10)
	else
		doPlayerSendCancel(cid, "You need to be in Protection Zone!")
	end		
    return TRUE
end

This one is not needed of Protection Zone:

PHP:
--Script by Pitufo
function onUse(cid, item, fromPosition, itemEx, toPosition)
local Position = {
        {x = 97, y = 130, z = 7}
		}
local pos = getCreaturePosition(cid)
		doTeleportThing(cid, Position[1], TRUE)
		doSendMagicEffect(pos, 10)
		doSendMagicEffect(Position[1], 10)	
    return TRUE
end
 
Good Pitufo™ but isn't it very irritating anyway? He wanted ppl to get teleported to some coordinates and what if their in like a hunting place or such.. No protection zone there? Then they still have to walk to the protection zone and then it's maybe not worth wasting the 'Heart stone'.
 
Back
Top