Stand on a tile, throw a special item and get tped to another place.
Add action/unique id on the coal basin. Then should the script work Enjoy
Add action/unique id on the coal basin. Then should the script work Enjoy
Lua:
local item, pos = 0, 0
local pos1 = {x = 100, y = 100, z = 7} --Player posistion --The player need stand on a special place that you will add the posistion
local pos2 = {x = 100, y = 100, z = 7} --Where the teleport send player
local pos3 = {x = 100, y = 100, z = 7} --Where is coal basin there item goes in it
local placename = "Dungeon"
function onStepIn(cid, item, position, fromPosition)
item = getThingfromPos(pos3)
if item.itemid == HERE EDIT ITEM then --put item id
doRemoveItem(item.uid, 1)
doSendMagicEffect(pos1, CONST_ME_PUFF)
doSendMagicEffect(pos2, CONST_ME_TELEPORT)
doTeleportThing(cid, pos2)
doSendMagicEffect(pos3, CONST_ME_HITBYFIRE)
doPlayerSendTextMessage(cid,18, "You have been teleport too "..placename..". Have Fun Exploring!")
end
return TRUE
end
Last edited: