local config = {
1 = {x = x, y = y, z = z},
2 = {x = x, y = y, z = z},
3 = {x = x, y = y, z = z}
}
function onSay(cid, words, param, channel)
param = param:lower()
if hasCondition(cid, CONDITION_INFIGHT) == TRUE then
doPlayerSendCancel(cid, "You may not teleport while in combat.")
return true
end
if param == '1' then
if doTeleportThing(cid, config.1, true) then
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
end
elseif param == '2' then
if doTeleportThing(cid, config.2, true) then
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
end
elseif param == '3' then
if doTeleportThing(cid, config.3, true) then
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_TELEPORT)
end
else
doPlayerSendCancel(cid, "There is no such place.")
return true
end
return true
end
<talkaction words="!t" event="script" value="t.lua"/>
i have it in my war project but i won't give it to anyone sorry
Lol just leave otland. You're so retarded hahah. Not even a hard script to make and you dont wanna give someone it and post on this thread just to be a dick. Wtf has the otland community come to..
local function doTeleport(cid, count)
if not isPlayer(cid) then
return true
end
doSendAnimatedText(getThingPos(cid), 5 - count..'s', COLOR_ORANGE)
doSendMagicEffect(getThingPos(cid), CONST_ME_YELLOW_RINGS)
if count == 5 then
return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, {x=1000,y=1000,z=7}) and doCreatureSay(cid, 'You have been teleported to temple Asshole', TALKTYPE_ORANGE_1, false, cid)
else
addEvent(doTeleport, 1000, cid, count + 1)
end
return true
end
function onCastSpell(cid, var)
if getCreatureSkullType(cid) > SKULL_GREEN or isPlayerPzLocked(cid) or getCreatureCondition(cid, CONDITION_INFIGHT) then
doPlayerSendCancel(cid, 'You cannot use this spell while you got pz mark on, nor if you are skulled.')
else
return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
end
end
<instant name="City Teleport" words="exana home" lvl="6" mana="0" aggressive="0" selftarget="1" exhaustion="5000" needlearn="0" event="script" value="citytp.lua">
<vocation id="1-15"/>
</instant>