Mera Mero
Guess Who?
- Joined
- Dec 27, 2014
- Messages
- 417
- Reaction score
- 86
Hello otlanders i've got script and i need to add somethings one it ,This script will take you from one place to the condition that you have special things and this script works well, What I want is if the player put these things by mistake, I mean in the wrong location instead of the real place these things will disappear and be created monsters on X / Y / Z and If these things are put in correct places Tp will appear in place X and take you to the place Y for some seconds Z
i hope you help me !!here you are the script
@Flatlander
@Limos
Certainly i do not want to forget any of legends names, but that's all I know till now
i hope you help me !!here you are the script
@Flatlander
@Limos
Code:
local config = {
{pos = {x = 979, y = 975, z = 7}, itemid = 3251},
{pos = {x = 971, y = 975, z = 7}, itemid = 3252},
{pos = {x = 970, y = 981, z = 7}, itemid = 3253},
{pos = {x = 979, y = 981, z = 7}, itemid = 3254}
}
function onStepIn(cid, item, position, fromPosition)
local amount = 0
for x = 1, #config do
if getTileItemById(config[x].pos, config[x].itemid).uid > 0 then
amount = amount + 1
else
doPlayerSendCancel(cid, "You need to add items at first to make teleport to hidden place")
end
end
if amount == #config then
for x = 1, #config do
doRemoveItem(getTileItemById(config[x].pos, config[x].itemid).uid, 1)
end
doTeleportThing(cid, {x = 975, y = 978, z = 6}) -- where it should go
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You found a hidden area.")
end
return true
end
Last edited: