Advertisement
PabloEduardo

Puertas2

Sep 21st, 2022 (edited)
1,144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on load:
  2.     set {_query} to "SELECT * FROM Puertas"
  3.     execute unsafe {_query} in {-sql} and store the result in {-Puertas::*}
  4.     set {_nid} to 0
  5.     loop {-Puertas::*}:
  6.         add 1 to {_nid}
  7.         set {_x} to "%{-Puertas::X::%{_nid}%}%"
  8.         set {_y} to "%{-Puertas::Y::%{_nid}%}%"
  9.         set {_z} to "%{-Puertas::Z::%{_nid}%}%"
  10.         set {Puerta.dueño_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::Dueno::%{_nid}%}%"
  11.         set {Puerta.precio_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::Precio::%{_nid}%}%" parsed as integer
  12.         set {Puerta.Invitado1_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::Inv1::%{_nid}%}%"
  13.         set {Puerta.Invitado2_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::Inv2::%{_nid}%}%"
  14.         set {Puerta.Invitado3_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::Inv3::%{_nid}%}%"
  15.         set {Puerta.id_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::xd::%{_nid}%}%"
  16.         set {Puerta.aldea_%{_x}%_%{_y}%_%{_z}%} to "%{-Puertas::aldea::%{_nid}%}%"
  17.         broadcast "&c%{_x}% %{_y}% %{_z}%"
  18.         wait 0.5 second
  19. on right click on closed bottom iron door or right-hinged closed top iron door or left-hinged closed top oak wood door or right-hinged closed top oak wood door or left-hinged closed top acacia wood door or right-hinged closed top acacia wood door or left-hinged closed top birch wood door or right-hinged closed top birch wood door or left-hinged closed top dark oak wood door or right-hinged closed top dark oak wood door or left-hinged closed top spruce wood door or right-hinged closed top spruce wood door::
  20.     set {_x} to x coord of event-block
  21.     set {_y} to y coord of event-block
  22.     set {_z} to z coord of event-block
  23.     set {_puerta} to "%{_x}%_%{_y}%_%{_z}%"
  24.     if {Puerta.id_%{_puerta}%} is set:
  25.         cancel event
  26. on right click on left-hinged closed top iron door or right-hinged closed top iron door or left-hinged closed top oak wood door or right-hinged closed top oak wood door or left-hinged closed top acacia wood door or right-hinged closed top acacia wood door or left-hinged closed top birch wood door or right-hinged closed top birch wood door or left-hinged closed top dark oak wood door or right-hinged closed top dark oak wood door or left-hinged closed top spruce wood door or right-hinged closed top spruce wood door:
  27.     set {_x} to x coord of event-block
  28.     set {_y} to y coord of event-block
  29.     set {_z} to z coord of event-block
  30.     set {_puerta} to "%{_x}%_%{_y}%_%{_z}%"
  31.     if {Puerta.id_%{_puerta}%} is set:
  32.         if player is sneaking:
  33.             cancel event
  34.             p_ver(player, "%{_x}%", "%{_y}%", "%{_z}%")
  35.             stop
  36.         else:
  37.             if {-EliminarPuerta.%player%} is true:
  38.                 cancel event
  39.                 set {_query} to "DELETE FROM Puertas WHERE `xd`='%{_x}%%{_y}%%{_z}%'"
  40.                 execute unsafe {_query} in {-sql}
  41.                 subtract 1 from {Puerta.Puertas::%{Puerta.dueño_%{_puerta}%}%}
  42.                 set {_query} to "UPDATE Ajustes SET propiedades = ""%{Puerta.Puertas::%{Puerta.Puertas::%{Puerta.dueño_%{_puerta}%}%}%}%"" WHERE uuid = ""%uuid of {Puerta.Puertas::%{Puerta.dueño_%{_puerta}%}%}%"""
  43.                 execute unsafe {_query} in {-sql}
  44.                 delete {Puerta.id_%{_puerta}%} and {Puerta.dueño_%{_puerta}%} and {Puerta.precio_%{_puerta}%} and {impuesto_%{_puerta}%} and {Puerta.Invitado1_%{_puerta}%} and {Puerta.Invitado2_%{_puerta}%} and {Puerta.Invitado3_%{_puerta}%}
  45.                 send "&c¡Puerta eliminada con Exito!"
  46.                 set {-EliminarPuerta.%player%} to false
  47.                 stop
  48.             if {Puerta.dueño_%{_puerta}%} or {Puerta.Invitado1_%{_puerta}%} or {Puerta.Invitado2_%{_puerta}%} or {Puerta.Invitado3_%{_puerta}%} is player:
  49.                 toggle event-block
  50.                 make player run command "/playsound minecraft:block.iron_door.close master %player% ~ ~ ~ 1" as op
  51.                 stop
  52.             else:
  53.                 cancel event
  54.                 send "&c¡No tienes llaves para abrir esta puerta!" to player
  55.                 make player run command "/playsound minecraft:entity.villager.no master %player% ~ ~ ~ 1" as op
  56.                 stop
  57.     else:
  58.         if {-EliminarPuerta.%player%} is true:
  59.             cancel event
  60.             send "&c¡Esta puerta no esta registrada!"
  61.             set {-EliminarPuerta.%player%} to false
  62.             stop
  63.         if {-AñadirPuerta.%player%} is true:
  64.             cancel event
  65.             p_add(player, "%{_x}%", "%{_y}%", "%{_z}%")
  66.             stop
  67. function p_add(p: player, x: text, y: text, z: text):
  68.     set {_puerta} to "%{_x}%_%{_y}%_%{_z}%"
  69.     if {-TipoAñadir.%{_p}%} is "Chica":
  70.         set {Puerta.precio_%{_puerta}%} to 150
  71.     if {-TipoAñadir.%{_p}%} is "Mediana":
  72.         set {Puerta.precio_%{_puerta}%} to 450
  73.     if {-TipoAñadir.%{_p}%} is "Grande":
  74.         set {Puerta.precio_%{_puerta}%} to 800
  75.     if {-TipoAñadir.%{_p}%} is "Mansion":
  76.         set {Puerta.precio_%{_puerta}%} to 1500
  77.     send "&2¡Puerta Añadida!" to {_p}
  78.  
  79.     if {-Requiere.%{_p}%} is set:
  80.         set {Puerta.aldea_%{_puerta}%} to "%{-Requiere.%{_p}%}%"
  81.         set {_query} to "INSERT INTO Puertas (`Dueno`, `Precio`, `X`, `Y`, `Z`, `xd`, `aldea`) VALUES ('Disponible', '%{Puerta.precio_%{_puerta}%}%', '%{_x}%', '%{_y}%', '%{_z}%', '%{_x}%%{_y}%%{_z}%', '%{Puerta.aldea_%{_puerta}%}%');"
  82.     else:
  83.         set {_query} to "INSERT INTO Puertas (`Dueno`, `Precio`, `X`, `Y`, `Z`, `xd`) VALUES ('Disponible', '%{Puerta.precio_%{_puerta}%}%', '%{_x}%', '%{_y}%', '%{_z}%', '%{_x}%%{_y}%%{_z}%');"
  84.     execute unsafe {_query} in {-sql}
  85.     set {Puerta.dueño_%{_puerta}%} to "Disponible"
  86.     set {Puerta.id_%{_puerta}%} to "%{_x}%%{_y}%%{_z}%"
  87.     delete {-TipoAñadir.%{_p}%}
  88. function p_ver(p: player, x: text, y: text, z: text):
  89.     set {_puerta} to "%{_x}%_%{_y}%_%{_z}%"
  90.     if {Puerta.precio_%{_puerta} is "150":
  91.         set {_tipo} to "Chica"
  92.     if {Puerta.precio_%{_puerta} is "450":
  93.         set {_tipo} to "Mediana"
  94.     if {Puerta.precio_%{_puerta} is "800":
  95.         set {_tipo} to "Grande"
  96.     if {Puerta.precio_%{_puerta} is "1500":
  97.         set {_tipo} to "Mansion"
  98.     if {Puerta.dueño_%{_puerta}%} is "Disponible":
  99.         send "&6Propiedad &7- &aDisponible %nl% &6Precio&7 -&f %{Puerta.precio_%{_puerta}%}% &eRyos %nl%&6Tipo &7- &d%{_tipo}% %nl%" to {_p}
  100.         json("%{_p}%", "&2&lAdquirir||cmd:/p-puerta %{_puerta}%||ttp:&fComprar la Propiedad||")
  101.     else:
  102.         if {Puerta.Invitado1_%{_puerta}%} is set:
  103.             set {_inv1} to {Puerta.Invitado1_%{_x}%_%{_y}%_%{_z}%}
  104.         else:
  105.             set {_inv1} to ""
  106.         if {Puerta.Invitado2_%{_x}%_%{_y}%_%{_z}%} is set:
  107.             set {_inv2} to {Puerta.Invitado2_%{_x}%_%{_y}%_%{_z}%}
  108.         else:
  109.             set {_inv2} to ""
  110.         if {Puerta.Invitado3_%{_x}%_%{_y}%_%{_z}%} is set:
  111.             set {_inv3} to {Puerta.Invitado2_%{_x}%_%{_y}%_%{_z}%}
  112.         else:
  113.             set {_inv3} to ""
  114.         send "&6Propiedad de &b%{Puerta.dueño_%{_puerta}%}%" to {_p}
  115.         if "%{_inv1}%" and "%{_inv2}%" and "%{_inv3}%" is "":
  116.             send "" to {_p}
  117.         else:
  118.             send "%nl% &6Invitados&7 - &f%{_inv1}% %{_inv2}% %{_inv3}% %nl%" to {_p}
  119.         if {Puerta.dueño_%{_puerta}%} is {_p}:
  120.             if {_tipo} is "Chica":
  121.                 continue
  122.             else:
  123.                 if {_tipo} is "Mediana" or "Grande" or "Mansion":
  124.                     if {Puerta.Invitado1_%{_puerta}%} is set:
  125.                         json("%{_p}%", "&c&lEliminar&f a &d%{Puerta.Invitado1_%{_puerta}%}%||cmd:/p-puerta %{_puerta}% Eliminar 1||ttp:&fElimina a este Invitado de la puerta||")
  126.                         if {_tipo} is "Grande" or "Mansion":
  127.                             if {Puerta.Invitado2_%{_puerta}%} is set:
  128.                                 json("%{_p}%", "&c&lEliminar&f a &d%{Puerta.Invitado2_%{_puerta}%}%||cmd:/p-puerta %{_puerta}% Eliminar 2||ttp:&fElimina a este Invitado de la puerta||")
  129.                                 if {_tipo} is "Mansion":
  130.                                     if {Puerta.Invitado3_%{_puerta}%} is set:
  131.                                         json("%{_p}%", "&c&lEliminar&f a &d%{Puerta.Invitado3_%{_puerta}%}%||cmd:/p-puerta %{_puerta}% Eliminar 3||ttp:&fElimina a este Invitado de la puerta||")
  132.                                     else:
  133.                                         json("%{_p}%", "&a&lAñadir Invitado||cmd:/p-puerta %{_puerta}% añadir 3||ttp:&fAñade un invitado a tu propiedad||")
  134.                             else:
  135.                                 json("%{_p}%", "&a&lAñadir Invitado||cmd:/p-puerta %{_puerta}% añadir 2||ttp:&fAñade un invitado a tu propiedad||")
  136.                     else:
  137.                         json("%{_p}%", "&a&lAñadir Invitado||cmd:/p-puerta %{_puerta}% añadir 1||ttp:&fAñade un invitado a tu propiedad||")
  138.             send "" to {_p}
  139.             json("%{_p}%", "&a&lVENDER PROPIEDAD&f||cmd:/p-puerta %{_puerta}% Vender a||ttp:&fVender tu propiedad||")  
  140.  
  141.  
  142. on chat:
  143.     if {-AñadiendoJ::%player%} is true:
  144.         if message is "cancelar":
  145.             delete {-AñadiendoJ::%player%}
  146.             send "&cSe cancelo la Accion."
  147.         if message is set:
  148.             if {-TempNInv::%player%} is "1":
  149.                 if {Puerta.precio_%{-F::%player%}%} is 450 or 800 or 1500:
  150.                     set {_query} to "UPDATE Puertas SET Inv1 = ""%message%"" WHERE xd = ""%{-TempIDPL::%player%}%"""
  151.                     set {Puerta.Invitado%{-TempIDPuerta::%player%}%} to message
  152.                     send "&fSe añadio a &a%message% &fa la propiedad!"
  153.                     set {_c} to "%message%" parsed as player
  154.                     send "&7[&6!&7] &b%player% &ate añadio a su propiedad" to {_c}
  155.             if {-TempNInv::%player%} is "2":
  156.                 if {Puerta.precio_%{-F::%player%}%} is 800 or 1500:
  157.                     set {_query} to "UPDATE Puertas SET Inv2 = ""%message%"" WHERE xd = ""%{-TempIDPL::%player%}%"""
  158.                     set {Puerta.Invitado%{-TempIDPuerta::%player%}%} to message
  159.                     send "&fSe añadio a &a%message% &fa la propiedad!"
  160.                     send "&7[&6!&7] &b%player% &ate añadio a su propiedad" to {_c}
  161.             if {-TempNInv::%player%} is "3":
  162.                 if {Puerta.precio_%{-F::%player%}%} is 1500:
  163.                     set {_query} to "UPDATE Puertas SET Inv3 = ""%message%"" WHERE xd = ""%{-TempIDPL::%player%}%"""
  164.                     set {Puerta.Invitado%{-TempIDPuerta::%player%}%} to message
  165.                     send "&fSe añadio a &a%message% &fa la propiedad!"
  166.                     send "&7[&6!&7] &b%player% &ate añadio a su propiedad" to {_c}
  167.             execute unsafe {_query} in {-sql}
  168.             delete {-TempIDPL::%player%} and {-TempNInv::%player%}
  169.             delete {-TempIDPuerta::%player%}
  170.             delete {-AñadiendoJ::%player%}
  171.             stop
  172.     else:
  173.         stop
  174. command /p-puerta [<text>] [<text>] [<text>]:
  175.     trigger:
  176.         if arg 1 is set:
  177.             if arg 2 is "Vender":
  178.                 if arg 3 is "Aceptar":
  179.                     if {Puerta.dueño_%arg-1%} is player:
  180.                         set {_b} to arg-1
  181.                         replace every "_" with "" in {_b}
  182.                         set {_query} to "UPDATE Puertas SET Inv3 = """", Inv2 = """", Inv1 = """", Dueno = ""Disponible"" WHERE xd = ""%{_b}%"""
  183.                         execute unsafe {_query} in {-sql}
  184.                         wait 0.3 seconds
  185.                         subtract 1 from {Puerta.Puertas::%player%}
  186.                         set {_query} to "UPDATE Ajustes SET propiedades = ""%{Puerta.Puertas::%player%}%"" WHERE uuid = ""%uuid of player%"""
  187.                         execute unsafe {_query} in {-sql}
  188.                         set {_dinero} to {Puerta.precio_%arg-1%} * 0.25
  189.                         delete {Puerta.Invitado1_%arg-1%} and {Puerta.Invitado2_%arg-1%} and {Puerta.Invitado3_%arg-1%}
  190.                         set {Puerta.dueño_%arg-1%} to "Disponible"
  191.                         send "&fVendiste tu propiedad por &2%{_dinero}% &eRyos" to player
  192.                         add {_dinero} to player's balance
  193.                        stop
  194.                    else:
  195.                        send "&c¡Tienes que ser el dueño de la propiedad!"
  196.                        stop
  197.                else:
  198.                    send "&e&l¿ESTAS SEGURO?"
  199.                    send ""
  200.                    send "&fObtendras el valor del &c25%%&f del costo de la misma."
  201.                    send ""
  202.                    json("%player%", "&a&lCONFIRMAR||cmd:/p-puerta %arg-1% vender aceptar||ttp:&fVenderas tu propiedad||")
  203.                    stop
  204.            if arg 2 is "Eliminar":
  205.                if arg 3 is set:
  206.                    if {Puerta.dueño_%arg-1%} is player:
  207.                        send "&fSe &celimino&f a &d""%{Puerta.Invitado%arg-3%_%arg-1%}%""&f de la propiedad"
  208.                        send "&b%player% &cte elimino&f de su propiedad" to {Puerta.Invitado%arg-3%_%arg-1%}
  209.                        set {_b} to arg-1
  210.                        replace every "_" with "" in {_b}
  211.                        if arg 3 is "3":
  212.                            set {_query} to "UPDATE Puertas SET Inv3 = """" WHERE xd = ""%{_b}%"""
  213.                        if arg 3 is "2":
  214.                            set {_query} to "UPDATE Puertas SET Inv2 = """" WHERE xd = ""%{_b}%"""
  215.                        if arg 3 is "1":
  216.                            set {_query} to "UPDATE Puertas SET Inv1 = """" WHERE xd = ""%{_b}%"""
  217.                        execute unsafe {_query} in {-sql}
  218.                        delete {Puerta.Invitado%arg-3%_%arg-1%}
  219.                        stop
  220.                    else:
  221.                        send "&c¡Debes ser el dueño de la propiedad!"
  222.                        stop
  223.            if arg 2 is "Añadir":
  224.                if arg 3 is set:
  225.                    if {Puerta.dueño_%arg-1%} is player:
  226.                        set {-AñadiendoJ::%player%} to true
  227.                        set {_b} to arg-1
  228.                        replace every "_" with "" in {_b}
  229.                        set {-TempIDPL::%player%} to "%{_b}%"
  230.                        set {-TempNInv::%player%} to "%arg-3%"
  231.                        set {-F::%player%} to "%arg-1%"
  232.                        set {-TempIDPuerta::%player%} to "%arg-3%_%arg-1%"
  233.                        send "&2&l¡ESCRIBE EN EL CHAT EL NOMBRE DEL JUGADOR QUE DESEAS AÑADIR A TU PROPIEDAD!"
  234.                        stop
  235.                    else:
  236.                        send "&c¡Debes ser el dueño de la propiedad!"
  237.                        stop
  238.            if arg 2 is "Confirmar":
  239.                if {Puerta.dueño_%arg-1%} isn't set:
  240.                     if {Puerta.Puertas::%player%} is 3:
  241.                         send "&c¡No puedes comprar mas propiedades!"
  242.                         stop
  243.                     else:
  244.                         if player's balance is greater or equal to {Puerta.precio_%arg-1%}:
  245.                            if {Puerta.aldea_%arg-1%} is "Konohagakure" or "Kumogakure" or "Sunagakure" or "Iwagakure":
  246.                                if {aldea::%player%} is equal to {Puerta.aldea_%arg-1%}:
  247.                                    set {Puerta.dueño_%arg-1%} to player
  248.                                    send "&a¡Compraste el Lugar!"
  249.                                    set {_b} to arg-1
  250.                                    replace every "_" with "" in {_b}
  251.                                    set {_query} to "UPDATE Puertas SET Dueno = ""%player%"" WHERE xd = ""%{_b}%"""
  252.                                    execute unsafe {_query} in {-sql}
  253.                                    wait 2 ticks
  254.                                    add 1 to {Puerta.Puertas::%player%}
  255.                                    set {_query} to "UPDATE Ajustes SET propiedades = ""%{Puerta.Puertas::%player%}%"" WHERE uuid = ""%uuid of player%"""
  256.                                    execute unsafe {_query} in {-sql}
  257.                                    subtract {Puerta.precio_%arg-1%} from player's balance
  258.                                     send "&fPropiedades: &c%{Puerta.Puertas::%player%}% &7/ &a3"
  259.                                     stop
  260.                                 else:
  261.                                     send "&c¡No puedes comprar esta propiedad!"
  262.                             else:
  263.                                 set {Puerta.dueño_%arg-1%} to player
  264.                                 send "&a¡Compraste el Lugar!"
  265.                                 set {_b} to arg-1
  266.                                 replace every "_" with "" in {_b}
  267.                                 set {_query} to "UPDATE Puertas SET Dueno = ""%player%"" WHERE xd = ""%{_b}%"""
  268.                                 execute unsafe {_query} in {-sql}
  269.                                 wait 2 ticks
  270.                                 add 1 to {Puerta.Puertas::%player%}
  271.                                 set {_query} to "UPDATE Ajustes SET propiedades = ""%{Puerta.Puertas::%player%}%"" WHERE uuid = ""%uuid of player%"""
  272.                                 execute unsafe {_query} in {-sql}
  273.                                 subtract {Puerta.precio_%arg-1%} from player's balance
  274.                                send "&fPropiedades: &c%{Puerta.Puertas::%player%}% &7/ &a3"
  275.                                stop
  276.                        else:
  277.                            send "&cNo tienes fondos suficientes para adquirir esto!"
  278.                            stop
  279.                if {Puerta.dueño_%arg-1%} is "Disponible":
  280.                    if {Puerta.Puertas::%player%} is 3:
  281.                        send "&c¡No puedes comprar mas propiedades!"
  282.                        stop
  283.                    else:
  284.                        if player's balance is greater or equal to {Puerta.precio_%arg-1%}:
  285.                             set {Puerta.dueño_%arg-1%} to player
  286.                             send "&a¡Compraste el Lugar!"
  287.                             set {_b} to arg-1
  288.                             replace every "_" with "" in {_b}
  289.                             set {_query} to "UPDATE Puertas SET Dueno = ""%player%"" WHERE xd = ""%{_b}%"""
  290.                             execute unsafe {_query} in {-sql}
  291.                             wait 2 ticks
  292.                             add 1 to {Puerta.Puertas::%player%}
  293.                             set {_query} to "UPDATE Ajustes SET propiedades = ""%{Puerta.Puertas::%player%}%"" WHERE uuid = ""%uuid of player%"""
  294.                             execute unsafe {_query} in {-sql}
  295.                             subtract {Puerta.precio_%arg-1%} from player's balance
  296.                            send "&fPropiedades: &c%{Puerta.Puertas::%player%}% &7/ &a3"
  297.                            stop
  298.                        else:
  299.                            send "&cNo tienes fondos suficientes para adquirir esto!"
  300.                            stop
  301.                else:
  302.                    send "&c¡Ya tiene un dueño esta puerta!"
  303.                    stop
  304.            if {Puerta.dueño_%arg-1%} is "Disponible":
  305.                send "&fEl precio es de &e%{Puerta.precio_%arg-1%}% Ryos&f."
  306.                send ""
  307.                json("%player%", "&2&lAceptar||cmd:/p-puerta %arg-1% confirmar||ttp:&fComprar el lugar por %{Puerta.precio_%arg-1%}% Ryos||")
  308.                stop
  309.            else:
  310.                send "&c¡Ya tiene un dueño esta puerta!"
  311.                stop
  312. command /Propiedades:
  313.    trigger:
  314.        send "&aPropiedades: &c%{Puerta.Puertas::%player%}% &7/ &a3"
  315.        send ""
  316. command /Puerta [<text>] [<text>] [<text>]:
  317.    permission: stafflvl2
  318.    trigger:
  319.        if arg 1 isn't set:
  320.             send "&cComandos Validos."
  321.             send ""
  322.             send "&a/puerta Añadir [Tipo] &7(Chica, Mediana, Grande, Mansion)"
  323.             send "&a/puerta Eliminar"
  324.             send "&a/puerta comprobar"
  325.         if arg 1 is "Eliminar":
  326.             set {-EliminarPuerta.%player%} to true
  327.             send "&cDale click derecho a la parte superior de una puerta!"
  328.             stop
  329.         if arg 1 is "Añadir":
  330.             if arg 2 isn't set:
  331.                send "&cDebes añadir el tipo de Lugar &f(Chica, Mediana, Grande, Masion)"
  332.                stop
  333.            if arg 2 is "Chica" or "Mediana" or "Grande" or "Mansion":
  334.                if arg 3 is "hoja" or "arena" or "nube" or "roca":
  335.                    set {-AñadirPuerta.%player%} to true
  336.                    set {-TipoAñadir.%player%} to arg-2
  337.                    if arg 3 is "hoja":
  338.                        set {-Requiere.%player%} to "Konohagakure"
  339.                    if arg 3 is "arena":
  340.                        set {-Requiere.%player%} to "Sunagakure"
  341.                    if arg 3 is "nube":
  342.                        set {-Requiere.%player%} to "Kumogakure"
  343.                    if arg 3 is "roca":
  344.                        set {-Requiere.%player%} to "Iwagakure"
  345.                        
  346.                    send "&aDale click derecho a la parte superior de una puerta!"
  347.                else:
  348.                    set {-AñadirPuerta.%player%} to true
  349.                    set {-TipoAñadir.%player%} to arg-2
  350.                    send "&aDale click derecho a la parte superior de una puerta!"
  351.            else:
  352.                send "&cDebes añadir el tipo de Lugar &f(Chica, Mediana, Grande, Masion)"
  353.                stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement