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

Talkaction teleport for guild members

lks93

New Member
Joined
Mar 4, 2020
Messages
23
Reaction score
3
Location
Brasil
i would like if someone can introduce me to a talkaction that would work like this:


"/realm = only members of the realm can use that command, go to npc and choose whether realm"


if the player is already from a realm


"/realm= teleport, x=00.y=00,z=00

i have a kingdom system but i can't run it because it lacks the talkaction.lua =(
 

Attachments

Solution
Is it solved yet? or you marked it by mistake?
You have wrong symbol in lines 3,4 and 5
Copy and paste this instead of your reino.lua
Lua:
function onSay(cid, words, param)
local c = { levelmin = 80,
reipos = {x = 1071, y = 1044, z = 1}, ----------------- x,y,z, as coordenadas do Castelo do NPC do Rei no MAP.
reino1pos = {x = 450, y = 1367, z = 7}, ----------------- x,y,z, as coordenadas do reino da "Fairy Tail", aonde so os players da Fairy Tail podem ir.
reino2pos = {x = 997, y = 785, z = 6}, -----------------x,y,z, as coordenadas do reino da "Phantom Lord", aonde so os players da Phantom Lord podem ir.
}

if isPlayerPzLocked(cid) then
doPlayerSendCancel(cid, "You cannot use this command during battle.")
return true
end

if param...
I don't understand the problem..

Do you mean this?
XML:
<talkaction words="/nacao" event="script" value="nacao.lua"/>
 
I don't understand the problem..

Do you mean this?
XML:
<talkaction words="/nacao" event="script" value="nacao.lua"/>
i would like a script that teleports the guild player "edoras" to the guild house of "edoras" and one of the guild "war" to the guild house of "war"
Post automatically merged:

I don't understand the problem..

Do you mean this?
XML:
<talkaction words="/nacao" event="script" value="nacao.lua"/>
[Error - LuaInterface::loadFile] data/talkactions/scripts/reino.lua:3: unexpected symbol near '<'
[22:40:50.958] [Error - Event::checkScript] Cannot load script (data/talkactions/scripts/reino.lua)
[22:40:50.960] data/talkactions/scripts/reino.lua:3: unexpected symbol near '<'
 
Is it solved yet? or you marked it by mistake?
You have wrong symbol in lines 3,4 and 5
Copy and paste this instead of your reino.lua
Lua:
function onSay(cid, words, param)
local c = { levelmin = 80,
reipos = {x = 1071, y = 1044, z = 1}, ----------------- x,y,z, as coordenadas do Castelo do NPC do Rei no MAP.
reino1pos = {x = 450, y = 1367, z = 7}, ----------------- x,y,z, as coordenadas do reino da "Fairy Tail", aonde so os players da Fairy Tail podem ir.
reino2pos = {x = 997, y = 785, z = 6}, -----------------x,y,z, as coordenadas do reino da "Phantom Lord", aonde so os players da Phantom Lord podem ir.
}

if isPlayerPzLocked(cid) then
doPlayerSendCancel(cid, "You cannot use this command during battle.")
return true
end

if param == '' then
if getPlayerLevel(cid) < c.levelmin then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa alcançar o lvl 80 para poder ir ate o Rei.")
return false
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("0") then
doTeleportThing(cid,c.reipos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Agora vá falar com o Rei e escolher sua Nação!")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Fairy Tail") then
doTeleportThing(cid,c.reino1pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Fairy Tail.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Phantom Lord") then
doTeleportThing(cid,c.reino2pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guild Phantom Lord.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Blue Pegasus") then
doTeleportThing(cid,c.reino3pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Blue Pegasus.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Lamia Scale") then
doTeleportThing(cid,c.reino4pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Lamia Scale.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Cait Shelte") then
doTeleportThing(cid,c.reino5pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Cait Shelte.")
return true
end
end
return true
end
 
Solution
Is it solved yet? or you marked it by mistake?
You have wrong symbol in lines 3,4 and 5
Copy and paste this instead of your reino.lua
Lua:
function onSay(cid, words, param)
local c = { levelmin = 80,
reipos = {x = 1071, y = 1044, z = 1}, ----------------- x,y,z, as coordenadas do Castelo do NPC do Rei no MAP.
reino1pos = {x = 450, y = 1367, z = 7}, ----------------- x,y,z, as coordenadas do reino da "Fairy Tail", aonde so os players da Fairy Tail podem ir.
reino2pos = {x = 997, y = 785, z = 6}, -----------------x,y,z, as coordenadas do reino da "Phantom Lord", aonde so os players da Phantom Lord podem ir.
}

if isPlayerPzLocked(cid) then
doPlayerSendCancel(cid, "You cannot use this command during battle.")
return true
end

if param == '' then
if getPlayerLevel(cid) < c.levelmin then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa alcançar o lvl 80 para poder ir ate o Rei.")
return false
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("0") then
doTeleportThing(cid,c.reipos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Agora vá falar com o Rei e escolher sua Nação!")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Fairy Tail") then
doTeleportThing(cid,c.reino1pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Fairy Tail.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Phantom Lord") then
doTeleportThing(cid,c.reino2pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guild Phantom Lord.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Blue Pegasus") then
doTeleportThing(cid,c.reino3pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Blue Pegasus.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Lamia Scale") then
doTeleportThing(cid,c.reino4pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Lamia Scale.")
return true
elseif getPlayerLevel(cid) > c.levelmin and getPlayerReino(cid) == tostring("Cait Shelte") then
doTeleportThing(cid,c.reino5pos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bem-Vindo "..getPlayerName(cid).." a Guilda Cait Shelte.")
return true
end
end
return true
end
YES THAT WAS IT, YOU'RE CORRECT <3
 
Back
Top