TSFMAG
Enjoy being different.
- Joined
- Jun 11, 2017
- Messages
- 9
- Reaction score
- 1
Hello guys, i'd to add !fly home in this script:
Anyone help me please
Lua:
venore = {x= 32957, y= 32076, z= 7}
thais = {x= 32369, y= 32241, z= 7}
kazordoon = {x= 32649, y= 31925, z= 11}
carlin = {x= 32360, y= 31782, z= 7}
abDendriel = {x= 32732, y= 31634, z= 7}
libertybay = {x= 32317, y= 32826, z= 7}
porthope = {x= 32594, y= 32745, z= 7}
ankrahmun = {x= 33194, y= 32853, z= 8}
darashia = {x= 33213, y= 32454, z= 1}
edron = {x= 33217, y= 31814, z= 8}
svargrond = {x= 32212, y= 31132, z= 7}
yalahar = {x= 32787, y= 31276, z= 7}
function onSay(cid, words, param, channel)
local days = getPlayerPremiumDays(cid)
if days == 0 or days <= 1
then
doPlayerSendCancel(cid, 'Text.')
end
if getTilePzInfo(getPlayerPosition(cid)) then
if (param == 'Venore') then
doTeleportThing(cid, venore)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Thais') then
doTeleportThing(cid, thais)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Kazordoon') then
doTeleportThing(cid, kazordoon)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Carlin') then
doTeleportThing(cid, carlin)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'AbDendriel') then
doTeleportThing(cid, abDendriel)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Liberty Bay') then
doTeleportThing(cid, libertybay)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'PortHope') then
doTeleportThing(cid, porthope)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Ankrahmun') then
doTeleportThing(cid, ankrahmun)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Darashia') then
doTeleportThing(cid, darashia)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Edron') then
doTeleportThing(cid, edron)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Svargrond') then
doTeleportThing(cid, svargrond)
doSendMagicEffect(getPlayerPosition(cid), 10)
elseif (param == 'Yalahar') then
doTeleportThing(cid, yalahar)
doSendMagicEffect(getPlayerPosition(cid), 10)
else
local str = "Venore \nThais \nKazordoon \nCarlin \nAbDendriel \nLiberty Bay \nPort Hope \nAnkrahmun \nDarashia \nEdron \nSvargrond \nYalahar"
doShowTextDialog(cid, 2160, str)
end
else
doPlayerSendCancel(cid, "Text.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
end
Anyone help me please