----------------------------------------------------
-- " SEZIONE PER LA PERSONALIZZAZIONE "
----------------------------------------------------
local COSTO = 0
local TITOLO = "Teleporter-Regni by Smile =)"
local MAP = -- "[ NOME / X / Y ]"
{
{ "Mappa regno ROSSO", 123400, 123400 },
{ "Mappa regno BLU", 123400, 123400 },
{ "Mappa regno GIALLO", 123400, 123400 }
}
----------------------------------------------------
-- " SEZIONE DA NON MODIFICARE "
----------------------------------------------------
if COSTO > 0 then
if pc.get_money () < COSTO then
say_title ( TITOLO )
say ("")
say ("Mi spiace, ho bisogno di denaro per vivere...")
say ("")
say ("E tu sicuramente non ne hai abbastanza")
say (" per i miei servigi...")
say ("")
return
end
end
local Empire = pc.get_empire()
say_title ( TITOLO )
say ("")
say ( "Vuoi essere teleportato in " .. MAP[Empire][1] .. "?" )
if COSTO > 0 then
say ( "Ti costera' solo " .. COSTO .. " yang." )
end
say ("")
local teleport = select ( "Si, perfavore" , "No, non importa" )
if teleport == 1 then
if COSTO > 0 then
pc.change_gold ( -COSTO )
end
pc . warp ( MAP[Empire][2], MAP[Empire][3] )
end