Advertisement
Guest User

Untitled

a guest
Nov 10th, 2012
696
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 102.29 KB | None | 0 0
  1. quest sistema_rangos begin
  2. state start begin
  3.  
  4.   when 53001.use with pc.is_gm() begin
  5.  
  6.    say_title("Guerra Total")
  7.    say("")
  8.    say("Hola "..pc.get_name().." quieres activar")
  9.    say("o desactivar una Guerra Total?")
  10.    say("")
  11.  
  12.   local activar = select ("Activar" , "Desactivar" , "Paso")
  13.  
  14.    if activar == 1 then
  15.  
  16.     game.set_event_flag("totalwar", 1)
  17.     notice_all("La guerra total se ha iniciado")
  18.     notice_all("Ves con el Seon-Pyeong para acceder")
  19.    
  20.    elseif activar == 2 then
  21.  
  22.     game.set_event_flag("totalwar", 0)
  23.     notice_all("La guerra total se ha desactivado")
  24.  
  25.    elseif activar == 3 then
  26.    
  27.     return
  28.    end
  29.   end
  30.   when 20091.chat."Guerra total" begin
  31.    if game.get_event_flag("totalwar") == 1 then
  32.    say("La guerra total esta activa")
  33.    say("Deseas ir?")
  34.     local guerra = select ("Si", "No")
  35.     if guerra == 1 then
  36.     pc.warp(951600, 30000)
  37.    elseif guerra == 2 then
  38.     return
  39.    end
  40.    elseif game.get_event_flag("totalwar") == 0 then
  41.    say("La guerra total no esta activa")
  42.    say("Te avisare cuando se active")
  43.    end
  44.   end
  45.  
  46.  
  47.   when kill with npc.is_pc() and pc.get_map_index() == 114 begin
  48.          
  49.    pc.give_item2("100035", 1)
  50.    pc.give_item2("100039", 1)
  51.   end
  52.  
  53.   when 1093.kill with pc.get_map_index() == 114 begin
  54.    pc.give_item2("100035", 5)
  55.    pc.give_item2("100039", 1)
  56.    notice_all(""..pc.get_name().." ha aniquilado *|Segador de la muerte|*")
  57.          
  58.   end
  59.   when 1094.kill with pc.get_map_index() == 114 begin
  60.    pc.give_item2("100035", 3)
  61.    pc.give_item2("100039", 1)
  62.    notice_all(""..pc.get_name().." ha aniquilado *|Rey Demonio Vil|*")
  63.          
  64.   end
  65.  
  66.   when 2206.kill with pc.get_map_index() == 114 begin
  67.    pc.give_item2("100035", 6)
  68.    pc.give_item2("100039", 1)
  69.    notice_all(""..pc.get_name().." ha aniquilado *|Rey Llama|*")
  70.          
  71.   end
  72.   when 2091.kill with pc.get_map_index() == 114 begin
  73.    pc.give_item2("100035", 6)
  74.    pc.give_item2("100039", 1)
  75.    notice_all(""..pc.get_name().." ha aniquilado *|Reina Araña|*")
  76.          
  77.   end
  78.   when 1901.kill with pc.get_map_index() == 114 begin
  79.    pc.give_item2("100035", 6)
  80.    pc.give_item2("100039", 1)
  81.    notice_all(""..pc.get_name().." ha aniquilado *|Nueve Colas|*")
  82.          
  83.   end
  84.   when 101.kill or 102.kill or 103.kill or 104.kill or 105.kill or 106.kill or 107.kill or 108.kill or 109.kill or 110.kill or 111.kill or 112.kill or 113.kill or 114.kill or 115.kill or 131.kill or 132.kill or 133.kill or 134.kill or 135.kill or 136.kill or 137.kill or 138.kill or 139.kill or 140.kill or 141.kill or 142.kill or 143.kill or 144.kill or 151.kill or 152.kill or 153.kill or 154.kill or 155.kill or 171.kill or 172.kill or 173.kill or 174.kill or 175.kill or 176.kill or 177.kill or 178.kill or 179.kill or 180.kill or 181.kill or 182.kill or 183.kill or 184.kill or 185.kill or 191.kill or 192.kill or 193.kill or 194.kill or 301.kill or 302.kill or 303.kill or 304.kill or 331.kill or 332.kill or 333.kill or 334.kill or 351.kill or 352.kill or 353.kill or 354.kill or 391.kill or 392.kill or 393.kill or 394.kill or 395.kill or 396.kill or 397.kill or 398.kill or 401.kill or 402.kill or 403.kill or 404.kill or 405.kill or 406.kill or 431.kill or 432.kill or 433.kill or 434.kill or 435.kill or 436.kill or 451.kill or 452.kill or 453.kill or 454.kill or 455.kill or 456.kill or 491.kill or 492.kill or 493.kill or 494.kill or 501.kill or 502.kill or 503.kill or 504.kill or 531.kill or 532.kill or 533.kill or 534.kill or 551.kill or 552.kill or 553.kill or 554.kill or 591.kill or 595.kill or 601.kill or 602.kill or 603.kill or 604.kill or 604.kill or 631.kill or 632.kill or 633.kill or 634.kill or 635.kill or 636.kill or 637.kill or 651.kill or 652.kill or 653.kill or 654.kill or 655.kill or 656.kill or 657.kill or 691.kill or 692.kill or 693.kill or 701.kill or 702.kill or 703.kill or 704.kill or 705.kill or 706.kill or 707.kill or 731.kill or 732.kill or 733.kill or 734.kill or 735.kill or 736.kill or 737.kill or 751.kill or 752.kill or 753.kill or 754.kill or 755.kill or 756.kill or 757.kill or 771.kill or 772.kill or 773.kill or 774.kill or 775.kill or 776.kill or 777.kill or 791.kill or 792.kill or 793.kill or 794.kill or 795.kill or 796.kill or 901.kill or 902.kill or 903.kill or 904.kill or 905.kill or 906.kill or 907.kill or 931.kill or 932.kill or 933.kill or 934.kill or 935.kill or 936.kill or 937.kill or 991.kill or 992.kill or 993.kill or 1001.kill or 1002.kill or 1003.kill or 1004.kill or 1031.kill or 1032.kill or 1033.kill or 1034.kill or 1035.kill or 1036.kill or 1037.kill or 1038.kill or 1039.kill or 1040.kill or 1041.kill or 1061.kill or 1062.kill or 1063.kill or 1064.kill or 1065.kill or 1066.kill or 1067.kill or 1068.kill or 1069.kill or 1070.kill or 1071.kill or 1091.kill or 1092.kill or 1093.kill or 1094.kill or 1095.kill or 1101.kill or 1102.kill or 1103.kill or 1104.kill or 1105.kill or 1106.kill or 1107.kill or 1131.kill or 1132.kill or 1133.kill or 1134.kill or 1135.kill or 1136.kill or 1137.kill or 1151.kill or 1152.kill or 1153.kill or 1154.kill or 1155.kill or 1156.kill or 1157.kill or 1171.kill or 1172.kill or 1173.kill or 1174.kill or 1175.kill or 1176.kill or 1177.kill or 1191.kill or 1192.kill or 1301.kill or 1302.kill or 1303.kill or 1304.kill or 1305.kill or 1306.kill or 1307.kill or 1331.kill or 1332.kill or 1333.kill or 1334.kill or 1335.kill or 1401.kill or 1402.kill or 1403.kill or 1501.kill or 1502.kill or 1503.kill or 1601.kill or 1602.kill or 1603.kill or 1901.kill or 1902.kill or 1903.kill or 2001.kill or 2002.kill or 2003.kill or 2004.kill or 2005.kill or 2031.kill or 2032.kill or 2033.kill or 2034.kill or 2035.kill or 2036.kill or 2051.kill or 2052.kill or 2053.kill or 2054.kill or 2055.kill or 2061.kill or 2062.kill or 2063.kill or 2064.kill or 2065.kill or 2071.kill or 2072.kill or 2073.kill or 2074.kill or 2075.kill or 2076.kill or 2091.kill or 2092.kill or 2093.kill or 2101.kill or 2102.kill or 2103.kill or 2104.kill or 2105.kill or 2106.kill or 2107.kill or 2108.kill or 2131.kill or 2132.kill or 2133.kill or 2134.kill or 2135.kill or 2151.kill or 2152.kill or 2153.kill or 2154.kill or 2155.kill or 2156.kill or 2157.kill or 2158.kill or 2191.kill or 2192.kill or 2202.kill or 2201.kill or 2203.kill or 2204.kill or 2205.kill or 2206.kill or 2207.kill or 2231.kill or 2232.kill or 2233.kill or 2234.kill or 2235.kill or 2291.kill or 2301.kill or 2303.kill or 2304.kill or 2305.kill or 2306.kill or 2307.kill or 2311.kill or 2312.kill or 2313.kill or 2314.kill or 2315.kill or 2401.kill or 2402.kill or 2403.kill or 2404.kill or 2411.kill or 2412.kill or 2413.kill or 2414.kill or 2431.kill or 2432.kill or 2433.kill or 2434.kill or 2451.kill or 2452.kill or 2453.kill or 2454.kill or 2491.kill or 2492.kill or 2493.kill or 2494.kill or 2495.kill begin
  85.  
  86.    local number = number(1, 35)
  87.    if number == 1 then
  88.    game.drop_item("100039", 1)
  89.    end
  90.   end
  91.   when 100001.use begin
  92.   say("Eres rango ciudadano pobre")
  93.   say("Que deseas hacer?")
  94.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  95.    if ciudadano == 1 then
  96.    say("Vaya asin que quieres subir de rango")
  97.    say("Te propongo hacerlo mucho mas rapido")
  98.    say("Normalmente necesitas Puntos")
  99.    say("Que se dan en la guerra de reinos")
  100.    say("Yo te puedo subir de rango si me traes resentimientos")
  101.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  102.    say("En cualquier mapa")
  103.    say("Como deseas subirlo?")
  104.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  105.     if subir_rango == 1 then
  106.     if pc.count_item(100035)< 50 then
  107.     say("No tienes los puntos necesarios (50)")
  108.             else
  109.             pc.give_item2("100002", 1)
  110.             pc.remove_item("100035", 50)
  111.     pc.remove_item("100001", 1)
  112.     notice_all(""..pc.get_name().." ha subido al rango Ciudadano Honrado")
  113.             end
  114.     elseif subir_rango == 2 then
  115.     if pc.count_item(100039)< 250 then
  116.     say("No tienes los puntos necesarios (250)")
  117.             else
  118.             pc.give_item2("100002", 1)
  119.             pc.remove_item("100039", 250)
  120.     pc.remove_item("100001", 1)
  121.     notice_all(""..pc.get_name().." ha subido al rango Ciudadano Honrado")
  122.             end
  123.     elseif subir_rango == 3 then
  124.          return
  125.     end
  126.    elseif ciudadano == 2 then
  127.    say("Bonificacion de 7% en todo i 1500 de hp")
  128.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  129.     if bonificacion == 1 and pc.get_map_index()==114 then
  130.     affect.add_collect(apply.CRITICAL_PCT, 7, 60*60*1)
  131.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  132.     affect.add_collect(apply.MAX_HP, 1700, 60*60*1)
  133.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  134.     affect.add_collect(apply.ATTBONUS_HUMAN, 7, 60*60*1)
  135.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  136.     affect.add_collect(apply.DEX, 7, 60*60*1)
  137.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  138.     affect.add_collect(apply.STR, 7, 60*60*1)
  139.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  140.     affect.add_collect(apply.INT, 7, 60*60*1)
  141.     elseif bonificacion == 7 then
  142.          return
  143.     end
  144.    elseif ciudadano == 3 then
  145.    say("Con tu rango no puedes montar monturas")
  146.    elseif ciudadano == 4 then
  147.     return
  148.    end
  149.   end
  150.   when 100002.use begin
  151.   say("Eres rango ciudadano Honrado")
  152.   say("Que deseas hacer?")
  153.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  154.    if ciudadano == 1 then
  155.    say("Vaya asin que quieres subir de rango")
  156.    say("Te propongo hacerlo mucho mas rapido")
  157.    say("Normalmente necesitas Puntos")
  158.    say("Que se dan en la guerra de reinos")
  159.    say("Yo te puedo subir de rango si me traes resentimientos")
  160.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  161.    say("En cualquier mapa")
  162.    say("Como deseas subirlo?")
  163.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  164.     if subir_rango == 1 then
  165.     if pc.count_item(100035)< 100 then
  166.     say("No tienes los puntos necesarios (100)")
  167.             else
  168.             pc.give_item2("100003", 1)
  169.             pc.remove_item("100035", 100)
  170.     pc.remove_item("100002", 1)
  171.     notice_all(""..pc.get_name().." ha subido al rango Ciudadano Leal")
  172.             end
  173.     elseif subir_rango == 2 then
  174.     if pc.count_item(100039)< 300 then
  175.     say("No tienes los puntos necesarios (300)")
  176.             else
  177.             pc.give_item2("100003", 1)
  178.             pc.remove_item("100039", 300)
  179.     pc.remove_item("100002", 1)
  180.     notice_all(""..pc.get_name().." ha subido al rango Ciudadano Leal")
  181.             end
  182.     elseif subir_rango == 3 then
  183.          return
  184.     end
  185.    elseif ciudadano == 2 then
  186.    say("Bonificacion de 5% en todo i 1500 de hp")
  187.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  188.     if bonificacion == 1 and pc.get_map_index()==114 then
  189.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  190.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  191.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  192.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  193.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  194.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  195.     affect.add_collect(apply.DEX, 5, 60*60*1)
  196.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  197.     affect.add_collect(apply.STR, 5, 60*60*1)
  198.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  199.     affect.add_collect(apply.INT, 5, 60*60*1)
  200.     elseif bonificacion == 7 then
  201.          return
  202.     end
  203.    elseif ciudadano == 3 then
  204.    say("Con tu rango no puedes montar monturas")
  205.    elseif ciudadano == 4 then
  206.     return
  207.    end
  208.   end
  209.   when 100003.use begin
  210.   say("Eres rango ciudadano Leal")
  211.   say("Que deseas hacer?")
  212.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  213.    if ciudadano == 1 then
  214.    say("Vaya asin que quieres subir de rango")
  215.    say("Te propongo hacerlo mucho mas rapido")
  216.    say("Normalmente necesitas Puntos")
  217.    say("Que se dan en la guerra de reinos")
  218.    say("Yo te puedo subir de rango si me traes resentimientos")
  219.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  220.    say("En cualquier mapa")
  221.    say("Como deseas subirlo?")
  222.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  223.     if subir_rango == 1 then
  224.     if pc.count_item(100035)< 50 then
  225.     say("No tienes los puntos necesarios (50)")
  226.             else
  227.             pc.give_item2("100003", 1)
  228.             pc.remove_item("100035", 55)
  229.     pc.remove_item("100002", 1)
  230.     notice_all(""..pc.get_name().." ha subido al rango Ciudadano Ejemplar")
  231.             end
  232.     elseif subir_rango == 2 then
  233.     if pc.count_item(100039)< 250 then
  234.     say("No tienes los puntos necesarios (250)")
  235.             else
  236.             pc.give_item2("100003", 1)
  237.             pc.remove_item("100039", 250)
  238.     pc.remove_item("100002", 1)
  239.     notice_all(""..pc.get_name().." ha subido al rango Ciudadano Ejemplar")
  240.             end
  241.     elseif subir_rango == 3 then
  242.          return
  243.     end
  244.    elseif ciudadano == 2 then
  245.    say("Bonificacion de 5% en todo i 1500 de hp")
  246.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  247.     if bonificacion == 1 and pc.get_map_index()==114 then
  248.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  249.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  250.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  251.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  252.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  253.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  254.     affect.add_collect(apply.DEX, 5, 60*60*1)
  255.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  256.     affect.add_collect(apply.STR, 5, 60*60*1)
  257.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  258.     affect.add_collect(apply.INT, 5, 60*60*1)
  259.     elseif bonificacion == 7 then
  260.          return
  261.     end
  262.    elseif ciudadano == 3 then
  263.    say("Con tu rango no puedes montar monturas")
  264.    elseif ciudadano == 4 then
  265.     return
  266.    end
  267.   end
  268.   when 100004.use begin
  269.   say("Eres rango ciudadano Ejemplar")
  270.   say("Que deseas hacer?")
  271.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  272.    if ciudadano == 1 then
  273.    say("Vaya asin que quieres subir de rango")
  274.    say("Te propongo hacerlo mucho mas rapido")
  275.    say("Normalmente necesitas Puntos")
  276.    say("Que se dan en la guerra de reinos")
  277.    say("Yo te puedo subir de rango si me traes resentimientos")
  278.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  279.    say("En cualquier mapa")
  280.    say("Como deseas subirlo?")
  281.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  282.     if subir_rango == 1 then
  283.     if pc.count_item(100035)< 50 then
  284.     say("No tienes los puntos necesarios (50)")
  285.             else
  286.             pc.give_item2("100003", 1)
  287.             pc.remove_item("100035", 55)
  288.     pc.remove_item("100002", 1)
  289.     notice_all(""..pc.get_name().." ha subido al rango Soldado")
  290.             end
  291.     elseif subir_rango == 2 then
  292.     if pc.count_item(100039)< 250 then
  293.     say("No tienes los puntos necesarios (250)")
  294.             else
  295.             pc.give_item2("100003", 1)
  296.             pc.remove_item("100039", 250)
  297.     pc.remove_item("100002", 1)
  298.     notice_all(""..pc.get_name().." ha subido al rango Soldado")
  299.             end
  300.     elseif subir_rango == 3 then
  301.          return
  302.     end
  303.    elseif ciudadano == 2 then
  304.    say("Bonificacion de 5% en todo i 1500 de hp")
  305.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  306.     if bonificacion == 1 and pc.get_map_index()==114 then
  307.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  308.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  309.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  310.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  311.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  312.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  313.     affect.add_collect(apply.DEX, 5, 60*60*1)
  314.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  315.     affect.add_collect(apply.STR, 5, 60*60*1)
  316.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  317.     affect.add_collect(apply.INT, 5, 60*60*1)
  318.     elseif bonificacion == 7 then
  319.          return
  320.     end
  321.    elseif ciudadano == 3 then
  322.    say("Con tu rango no puedes montar monturas")
  323.    elseif ciudadano == 4 then
  324.     return
  325.    end
  326.   end
  327.   when 100005.use begin
  328.   say("Eres rango Soldado")
  329.   say("Que deseas hacer?")
  330.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  331.    if ciudadano == 1 then
  332.    say("Vaya asin que quieres subir de rango")
  333.    say("Te propongo hacerlo mucho mas rapido")
  334.    say("Normalmente necesitas Puntos")
  335.    say("Que se dan en la guerra de reinos")
  336.    say("Yo te puedo subir de rango si me traes resentimientos")
  337.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  338.    say("En cualquier mapa")
  339.    say("Como deseas subirlo?")
  340.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  341.     if subir_rango == 1 then
  342.     if pc.count_item(100035)< 50 then
  343.     say("No tienes los puntos necesarios (50)")
  344.             else
  345.             pc.give_item2("100003", 1)
  346.             pc.remove_item("100035", 55)
  347.     pc.remove_item("100002", 1)
  348.     notice_all(""..pc.get_name().." ha subido al rango Soldado de Primera")
  349.             end
  350.     elseif subir_rango == 2 then
  351.     if pc.count_item(100039)< 250 then
  352.     say("No tienes los puntos necesarios (250)")
  353.             else
  354.             pc.give_item2("100003", 1)
  355.             pc.remove_item("100039", 250)
  356.     pc.remove_item("100002", 1)
  357.     notice_all(""..pc.get_name().." ha subido al rango Soldado de Primera")
  358.             end
  359.     elseif subir_rango == 3 then
  360.          return
  361.     end
  362.    elseif ciudadano == 2 then
  363.    say("Bonificacion de 5% en todo i 1500 de hp")
  364.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  365.     if bonificacion == 1 and pc.get_map_index()==114 then
  366.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  367.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  368.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  369.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  370.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  371.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  372.     affect.add_collect(apply.DEX, 5, 60*60*1)
  373.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  374.     affect.add_collect(apply.STR, 5, 60*60*1)
  375.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  376.     affect.add_collect(apply.INT, 5, 60*60*1)
  377.     elseif bonificacion == 7 then
  378.          return
  379.     end
  380.    elseif ciudadano == 3 then
  381.    say("Con tu rango no puedes montar monturas")
  382.    elseif ciudadano == 4 then
  383.     return
  384.    end
  385.   end
  386.   when 100006.use begin
  387.   say("Eres rango Soldado de Primera")
  388.   say("Que deseas hacer?")
  389.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  390.    if ciudadano == 1 then
  391.    say("Vaya asin que quieres subir de rango")
  392.    say("Te propongo hacerlo mucho mas rapido")
  393.    say("Normalmente necesitas Puntos")
  394.    say("Que se dan en la guerra de reinos")
  395.    say("Yo te puedo subir de rango si me traes resentimientos")
  396.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  397.    say("En cualquier mapa")
  398.    say("Como deseas subirlo?")
  399.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  400.     if subir_rango == 1 then
  401.     if pc.count_item(100035)< 50 then
  402.     say("No tienes los puntos necesarios (50)")
  403.             else
  404.             pc.give_item2("100003", 1)
  405.             pc.remove_item("100035", 55)
  406.     pc.remove_item("100002", 1)
  407.     notice_all(""..pc.get_name().." ha subido al rango Soldado de Segunda")
  408.             end
  409.     elseif subir_rango == 2 then
  410.     if pc.count_item(100039)< 250 then
  411.     say("No tienes los puntos necesarios (250)")
  412.             else
  413.             pc.give_item2("100003", 1)
  414.             pc.remove_item("100039", 250)
  415.     pc.remove_item("100002", 1)
  416.     notice_all(""..pc.get_name().." ha subido al rango Soldado de Segunda")
  417.             end
  418.     elseif subir_rango == 3 then
  419.          return
  420.     end
  421.    elseif ciudadano == 2 then
  422.    say("Bonificacion de 5% en todo i 1500 de hp")
  423.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  424.     if bonificacion == 1 and pc.get_map_index()==114 then
  425.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  426.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  427.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  428.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  429.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  430.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  431.     affect.add_collect(apply.DEX, 5, 60*60*1)
  432.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  433.     affect.add_collect(apply.STR, 5, 60*60*1)
  434.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  435.     affect.add_collect(apply.INT, 5, 60*60*1)
  436.     elseif bonificacion == 7 then
  437.          return
  438.     end
  439.    elseif ciudadano == 3 then
  440.    say("Con tu rango no puedes montar monturas")
  441.    elseif ciudadano == 4 then
  442.     return
  443.    end
  444.   end
  445.   when 100007.use begin
  446.   say("Eres rango Soldado de Segunda")
  447.   say("Que deseas hacer?")
  448.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  449.    if ciudadano == 1 then
  450.    say("Vaya asin que quieres subir de rango")
  451.    say("Te propongo hacerlo mucho mas rapido")
  452.    say("Normalmente necesitas Puntos")
  453.    say("Que se dan en la guerra de reinos")
  454.    say("Yo te puedo subir de rango si me traes resentimientos")
  455.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  456.    say("En cualquier mapa")
  457.    say("Como deseas subirlo?")
  458.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  459.     if subir_rango == 1 then
  460.     if pc.count_item(100035)< 50 then
  461.     say("No tienes los puntos necesarios (50)")
  462.             else
  463.             pc.give_item2("100003", 1)
  464.             pc.remove_item("100035", 55)
  465.     pc.remove_item("100002", 1)
  466.     notice_all(""..pc.get_name().." ha subido al rango Soldado de Tercera")
  467.             end
  468.     elseif subir_rango == 2 then
  469.     if pc.count_item(100039)< 250 then
  470.     say("No tienes los puntos necesarios (250)")
  471.             else
  472.             pc.give_item2("100003", 1)
  473.             pc.remove_item("100039", 250)
  474.     pc.remove_item("100002", 1)
  475.     notice_all(""..pc.get_name().." ha subido al rango Soldado de Tercera")
  476.             end
  477.     elseif subir_rango == 3 then
  478.          return
  479.     end
  480.    elseif ciudadano == 2 then
  481.    say("Bonificacion de 5% en todo i 1500 de hp")
  482.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  483.     if bonificacion == 1 and pc.get_map_index()==114 then
  484.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  485.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  486.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  487.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  488.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  489.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  490.     affect.add_collect(apply.DEX, 5, 60*60*1)
  491.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  492.     affect.add_collect(apply.STR, 5, 60*60*1)
  493.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  494.     affect.add_collect(apply.INT, 5, 60*60*1)
  495.     elseif bonificacion == 7 then
  496.          return
  497.     end
  498.    elseif ciudadano == 3 then
  499.    say("Con tu rango no puedes montar monturas")
  500.    elseif ciudadano == 4 then
  501.     return
  502.    end
  503.   end
  504.   when 100008.use begin
  505.   say("Eres rango Soldado de Tercera")
  506.   say("Que deseas hacer?")
  507.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  508.    if ciudadano == 1 then
  509.    say("Vaya asin que quieres subir de rango")
  510.    say("Te propongo hacerlo mucho mas rapido")
  511.    say("Normalmente necesitas Puntos")
  512.    say("Que se dan en la guerra de reinos")
  513.    say("Yo te puedo subir de rango si me traes resentimientos")
  514.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  515.    say("En cualquier mapa")
  516.    say("Como deseas subirlo?")
  517.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  518.     if subir_rango == 1 then
  519.     if pc.count_item(100035)< 50 then
  520.     say("No tienes los puntos necesarios (50)")
  521.             else
  522.             pc.give_item2("100003", 1)
  523.             pc.remove_item("100035", 55)
  524.     pc.remove_item("100002", 1)
  525.     notice_all(""..pc.get_name().." ha subido al rango Sargento")
  526.             end
  527.     elseif subir_rango == 2 then
  528.     if pc.count_item(100039)< 250 then
  529.     say("No tienes los puntos necesarios (250)")
  530.             else
  531.             pc.give_item2("100003", 1)
  532.             pc.remove_item("100039", 250)
  533.     pc.remove_item("100002", 1)
  534.     notice_all(""..pc.get_name().." ha subido al rango Sargento")
  535.             end
  536.     elseif subir_rango == 3 then
  537.          return
  538.     end
  539.    elseif ciudadano == 2 then
  540.    say("Bonificacion de 5% en todo i 1500 de hp")
  541.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  542.     if bonificacion == 1 and pc.get_map_index()==114 then
  543.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  544.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  545.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  546.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  547.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  548.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  549.     affect.add_collect(apply.DEX, 5, 60*60*1)
  550.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  551.     affect.add_collect(apply.STR, 5, 60*60*1)
  552.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  553.     affect.add_collect(apply.INT, 5, 60*60*1)
  554.     elseif bonificacion == 7 then
  555.          return
  556.     end
  557.    elseif ciudadano == 3 then
  558.    say("Con tu rango no puedes montar monturas")
  559.    elseif ciudadano == 4 then
  560.     return
  561.    end
  562.   end
  563.   when 100009.use begin
  564.   say("Eres rango Sargento")
  565.   say("Que deseas hacer?")
  566.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  567.    if ciudadano == 1 then
  568.    say("Vaya asin que quieres subir de rango")
  569.    say("Te propongo hacerlo mucho mas rapido")
  570.    say("Normalmente necesitas Puntos")
  571.    say("Que se dan en la guerra de reinos")
  572.    say("Yo te puedo subir de rango si me traes resentimientos")
  573.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  574.    say("En cualquier mapa")
  575.    say("Como deseas subirlo?")
  576.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  577.     if subir_rango == 1 then
  578.     if pc.count_item(100035)< 50 then
  579.     say("No tienes los puntos necesarios (50)")
  580.             else
  581.             pc.give_item2("100003", 1)
  582.             pc.remove_item("100035", 55)
  583.     pc.remove_item("100002", 1)
  584.     notice_all(""..pc.get_name().." ha subido al rango Sargento de Primera")
  585.             end
  586.     elseif subir_rango == 2 then
  587.     if pc.count_item(100039)< 250 then
  588.     say("No tienes los puntos necesarios (250)")
  589.             else
  590.             pc.give_item2("100003", 1)
  591.             pc.remove_item("100039", 250)
  592.     pc.remove_item("100002", 1)
  593.     notice_all(""..pc.get_name().." ha subido al rango Sargento de Primera")
  594.             end
  595.     elseif subir_rango == 3 then
  596.          return
  597.     end
  598.    elseif ciudadano == 2 then
  599.    say("Bonificacion de 5% en todo i 1500 de hp")
  600.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  601.     if bonificacion == 1 and pc.get_map_index()==114 then
  602.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  603.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  604.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  605.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  606.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  607.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  608.     affect.add_collect(apply.DEX, 5, 60*60*1)
  609.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  610.     affect.add_collect(apply.STR, 5, 60*60*1)
  611.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  612.     affect.add_collect(apply.INT, 5, 60*60*1)
  613.     elseif bonificacion == 7 then
  614.          return
  615.     end
  616.    elseif ciudadano == 3 then
  617.    say("Con tu rango no puedes montar monturas")
  618.    elseif ciudadano == 4 then
  619.     return
  620.    end
  621.   end
  622.   when 100010.use begin
  623.   say("Eres rango Sargento de Primera")
  624.   say("Que deseas hacer?")
  625.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  626.    if ciudadano == 1 then
  627.    say("Vaya asin que quieres subir de rango")
  628.    say("Te propongo hacerlo mucho mas rapido")
  629.    say("Normalmente necesitas Puntos")
  630.    say("Que se dan en la guerra de reinos")
  631.    say("Yo te puedo subir de rango si me traes resentimientos")
  632.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  633.    say("En cualquier mapa")
  634.    say("Como deseas subirlo?")
  635.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  636.     if subir_rango == 1 then
  637.     if pc.count_item(100035)< 50 then
  638.     say("No tienes los puntos necesarios (50)")
  639.             else
  640.             pc.give_item2("100003", 1)
  641.             pc.remove_item("100035", 55)
  642.     pc.remove_item("100002", 1)
  643.     notice_all(""..pc.get_name().." ha subido al rango Sargento de Segunda")
  644.             end
  645.     elseif subir_rango == 2 then
  646.     if pc.count_item(100039)< 250 then
  647.     say("No tienes los puntos necesarios (250)")
  648.             else
  649.             pc.give_item2("100003", 1)
  650.             pc.remove_item("100039", 250)
  651.     pc.remove_item("100002", 1)
  652.     notice_all(""..pc.get_name().." ha subido al rango Sargento de Segunda")
  653.             end
  654.     elseif subir_rango == 3 then
  655.          return
  656.     end
  657.    elseif ciudadano == 2 then
  658.    say("Bonificacion de 5% en todo i 1500 de hp")
  659.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  660.     if bonificacion == 1 and pc.get_map_index()==114 then
  661.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  662.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  663.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  664.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  665.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  666.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  667.     affect.add_collect(apply.DEX, 5, 60*60*1)
  668.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  669.     affect.add_collect(apply.STR, 5, 60*60*1)
  670.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  671.     affect.add_collect(apply.INT, 5, 60*60*1)
  672.     elseif bonificacion == 7 then
  673.          return
  674.     end
  675.    elseif ciudadano == 3 then
  676.    say("Con tu rango no puedes montar monturas")
  677.    elseif ciudadano == 4 then
  678.     return
  679.    end
  680.   end
  681.   when 100011.use begin
  682.   say("Eres rango Sargento de Tercera")
  683.   say("Que deseas hacer?")
  684.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  685.    if ciudadano == 1 then
  686.    say("Vaya asin que quieres subir de rango")
  687.    say("Te propongo hacerlo mucho mas rapido")
  688.    say("Normalmente necesitas Puntos")
  689.    say("Que se dan en la guerra de reinos")
  690.    say("Yo te puedo subir de rango si me traes resentimientos")
  691.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  692.    say("En cualquier mapa")
  693.    say("Como deseas subirlo?")
  694.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  695.     if subir_rango == 1 then
  696.     if pc.count_item(100035)< 50 then
  697.     say("No tienes los puntos necesarios (50)")
  698.             else
  699.             pc.give_item2("100003", 1)
  700.             pc.remove_item("100035", 55)
  701.     pc.remove_item("100002", 1)
  702.     notice_all(""..pc.get_name().." ha subido al rango Capitan")
  703.             end
  704.     elseif subir_rango == 2 then
  705.     if pc.count_item(100039)< 250 then
  706.     say("No tienes los puntos necesarios (250)")
  707.             else
  708.             pc.give_item2("100003", 1)
  709.             pc.remove_item("100039", 250)
  710.     pc.remove_item("100002", 1)
  711.     notice_all(""..pc.get_name().." ha subido al rango Capitan")
  712.             end
  713.     elseif subir_rango == 3 then
  714.          return
  715.     end
  716.    elseif ciudadano == 2 then
  717.    say("Bonificacion de 5% en todo i 1500 de hp")
  718.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  719.     if bonificacion == 1 and pc.get_map_index()==114 then
  720.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  721.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  722.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  723.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  724.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  725.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  726.     affect.add_collect(apply.DEX, 5, 60*60*1)
  727.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  728.     affect.add_collect(apply.STR, 5, 60*60*1)
  729.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  730.     affect.add_collect(apply.INT, 5, 60*60*1)
  731.     elseif bonificacion == 7 then
  732.          return
  733.     end
  734.    elseif ciudadano == 3 then
  735.    say("Con tu rango no puedes montar monturas")
  736.    elseif ciudadano == 4 then
  737.     return
  738.    end
  739.   end
  740.   when 100012.use begin
  741.   say("Eres rango Capitan")
  742.   say("Que deseas hacer?")
  743.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  744.    if ciudadano == 1 then
  745.    say("Vaya asin que quieres subir de rango")
  746.    say("Te propongo hacerlo mucho mas rapido")
  747.    say("Normalmente necesitas Puntos")
  748.    say("Que se dan en la guerra de reinos")
  749.    say("Yo te puedo subir de rango si me traes resentimientos")
  750.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  751.    say("En cualquier mapa")
  752.    say("Como deseas subirlo?")
  753.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  754.     if subir_rango == 1 then
  755.     if pc.count_item(100035)< 50 then
  756.     say("No tienes los puntos necesarios (50)")
  757.             else
  758.             pc.give_item2("100003", 1)
  759.             pc.remove_item("100035", 55)
  760.     pc.remove_item("100002", 1)
  761.     notice_all(""..pc.get_name().." ha subido al rango Capitan de Primera")
  762.             end
  763.     elseif subir_rango == 2 then
  764.     if pc.count_item(100039)< 250 then
  765.     say("No tienes los puntos necesarios (250)")
  766.             else
  767.             pc.give_item2("100003", 1)
  768.             pc.remove_item("100039", 250)
  769.     pc.remove_item("100002", 1)
  770.     notice_all(""..pc.get_name().." ha subido al rango Capitan de Primera")
  771.             end
  772.     elseif subir_rango == 3 then
  773.          return
  774.     end
  775.    elseif ciudadano == 2 then
  776.    say("Bonificacion de 5% en todo i 1500 de hp")
  777.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  778.     if bonificacion == 1 and pc.get_map_index()==114 then
  779.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  780.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  781.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  782.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  783.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  784.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  785.     affect.add_collect(apply.DEX, 5, 60*60*1)
  786.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  787.     affect.add_collect(apply.STR, 5, 60*60*1)
  788.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  789.     affect.add_collect(apply.INT, 5, 60*60*1)
  790.     elseif bonificacion == 7 then
  791.          return
  792.     end
  793.    elseif ciudadano == 3 then
  794.    say("Con tu rango no puedes montar monturas")
  795.    elseif ciudadano == 4 then
  796.     return
  797.    end
  798.   end
  799.   when 100013.use begin
  800.   say("Eres rango Capitan de Primera")
  801.   say("Que deseas hacer?")
  802.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  803.    if ciudadano == 1 then
  804.    say("Vaya asin que quieres subir de rango")
  805.    say("Te propongo hacerlo mucho mas rapido")
  806.    say("Normalmente necesitas Puntos")
  807.    say("Que se dan en la guerra de reinos")
  808.    say("Yo te puedo subir de rango si me traes resentimientos")
  809.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  810.    say("En cualquier mapa")
  811.    say("Como deseas subirlo?")
  812.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  813.     if subir_rango == 1 then
  814.     if pc.count_item(100035)< 50 then
  815.     say("No tienes los puntos necesarios (50)")
  816.             else
  817.             pc.give_item2("100003", 1)
  818.             pc.remove_item("100035", 55)
  819.     pc.remove_item("100002", 1)
  820.     notice_all(""..pc.get_name().." ha subido al rango Capitan de Segunda")
  821.             end
  822.     elseif subir_rango == 2 then
  823.     if pc.count_item(100039)< 250 then
  824.     say("No tienes los puntos necesarios (250)")
  825.             else
  826.             pc.give_item2("100003", 1)
  827.             pc.remove_item("100039", 250)
  828.     pc.remove_item("100002", 1)
  829.     notice_all(""..pc.get_name().." ha subido al rango Capitan de Segunda")
  830.             end
  831.     elseif subir_rango == 3 then
  832.          return
  833.     end
  834.    elseif ciudadano == 2 then
  835.    say("Bonificacion de 5% en todo i 1500 de hp")
  836.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  837.     if bonificacion == 1 and pc.get_map_index()==114 then
  838.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  839.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  840.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  841.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  842.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  843.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  844.     affect.add_collect(apply.DEX, 5, 60*60*1)
  845.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  846.     affect.add_collect(apply.STR, 5, 60*60*1)
  847.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  848.     affect.add_collect(apply.INT, 5, 60*60*1)
  849.     elseif bonificacion == 7 then
  850.          return
  851.     end
  852.    elseif ciudadano == 3 then
  853.    say("Con tu rango no puedes montar monturas")
  854.    elseif ciudadano == 4 then
  855.     return
  856.    end
  857.   end
  858.   when 100014.use begin
  859.   say("Eres rango Capitan de Segunda")
  860.   say("Que deseas hacer?")
  861.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  862.    if ciudadano == 1 then
  863.    say("Vaya asin que quieres subir de rango")
  864.    say("Te propongo hacerlo mucho mas rapido")
  865.    say("Normalmente necesitas Puntos")
  866.    say("Que se dan en la guerra de reinos")
  867.    say("Yo te puedo subir de rango si me traes resentimientos")
  868.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  869.    say("En cualquier mapa")
  870.    say("Como deseas subirlo?")
  871.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  872.     if subir_rango == 1 then
  873.     if pc.count_item(100035)< 50 then
  874.     say("No tienes los puntos necesarios (50)")
  875.             else
  876.             pc.give_item2("100003", 1)
  877.             pc.remove_item("100035", 55)
  878.     pc.remove_item("100002", 1)
  879.     notice_all(""..pc.get_name().." ha subido al rango Capitan de Tercera")
  880.             end
  881.     elseif subir_rango == 2 then
  882.     if pc.count_item(100039)< 250 then
  883.     say("No tienes los puntos necesarios (250)")
  884.             else
  885.             pc.give_item2("100003", 1)
  886.             pc.remove_item("100039", 250)
  887.     pc.remove_item("100002", 1)
  888.     notice_all(""..pc.get_name().." ha subido al rango Capitan de Tercera")
  889.             end
  890.     elseif subir_rango == 3 then
  891.          return
  892.     end
  893.    elseif ciudadano == 2 then
  894.    say("Bonificacion de 5% en todo i 1500 de hp")
  895.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  896.     if bonificacion == 1 and pc.get_map_index()==114 then
  897.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  898.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  899.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  900.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  901.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  902.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  903.     affect.add_collect(apply.DEX, 5, 60*60*1)
  904.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  905.     affect.add_collect(apply.STR, 5, 60*60*1)
  906.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  907.     affect.add_collect(apply.INT, 5, 60*60*1)
  908.     elseif bonificacion == 7 then
  909.          return
  910.     end
  911.    elseif ciudadano == 3 then
  912.    say("Con tu rango no puedes montar monturas")
  913.    elseif ciudadano == 4 then
  914.     return
  915.    end
  916.   end
  917.   when 100015.use begin
  918.   say("Eres rango Capitan de Tercera")
  919.   say("Que deseas hacer?")
  920.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  921.    if ciudadano == 1 then
  922.    say("Vaya asin que quieres subir de rango")
  923.    say("Te propongo hacerlo mucho mas rapido")
  924.    say("Normalmente necesitas Puntos")
  925.    say("Que se dan en la guerra de reinos")
  926.    say("Yo te puedo subir de rango si me traes resentimientos")
  927.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  928.    say("En cualquier mapa")
  929.    say("Como deseas subirlo?")
  930.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  931.     if subir_rango == 1 then
  932.     if pc.count_item(100035)< 50 then
  933.     say("No tienes los puntos necesarios (50)")
  934.             else
  935.             pc.give_item2("100003", 1)
  936.             pc.remove_item("100035", 55)
  937.     pc.remove_item("100002", 1)
  938.     notice_all(""..pc.get_name().." ha subido al rango Comandante")
  939.             end
  940.     elseif subir_rango == 2 then
  941.     if pc.count_item(100039)< 250 then
  942.     say("No tienes los puntos necesarios (250)")
  943.             else
  944.             pc.give_item2("100003", 1)
  945.             pc.remove_item("100039", 250)
  946.     pc.remove_item("100002", 1)
  947.     notice_all(""..pc.get_name().." ha subido al rango Comandante")
  948.             end
  949.     elseif subir_rango == 3 then
  950.          return
  951.     end
  952.    elseif ciudadano == 2 then
  953.    say("Bonificacion de 5% en todo i 1500 de hp")
  954.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  955.     if bonificacion == 1 and pc.get_map_index()==114 then
  956.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  957.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  958.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  959.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  960.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  961.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  962.     affect.add_collect(apply.DEX, 5, 60*60*1)
  963.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  964.     affect.add_collect(apply.STR, 5, 60*60*1)
  965.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  966.     affect.add_collect(apply.INT, 5, 60*60*1)
  967.     elseif bonificacion == 7 then
  968.          return
  969.     end
  970.    elseif ciudadano == 3 then
  971.    say("Con tu rango no puedes montar monturas")
  972.    elseif ciudadano == 4 then
  973.     return
  974.    end
  975.   end
  976.   when 100016.use begin
  977.   say("Eres rango Comandante")
  978.   say("Que deseas hacer?")
  979.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  980.    if ciudadano == 1 then
  981.    say("Vaya asin que quieres subir de rango")
  982.    say("Te propongo hacerlo mucho mas rapido")
  983.    say("Normalmente necesitas Puntos")
  984.    say("Que se dan en la guerra de reinos")
  985.    say("Yo te puedo subir de rango si me traes resentimientos")
  986.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  987.    say("En cualquier mapa")
  988.    say("Como deseas subirlo?")
  989.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  990.     if subir_rango == 1 then
  991.     if pc.count_item(100035)< 50 then
  992.     say("No tienes los puntos necesarios (50)")
  993.             else
  994.             pc.give_item2("100003", 1)
  995.             pc.remove_item("100035", 55)
  996.     pc.remove_item("100002", 1)
  997.     notice_all(""..pc.get_name().." ha subido al rango Comandante de Primera")
  998.             end
  999.     elseif subir_rango == 2 then
  1000.     if pc.count_item(100039)< 250 then
  1001.     say("No tienes los puntos necesarios (250)")
  1002.             else
  1003.             pc.give_item2("100003", 1)
  1004.             pc.remove_item("100039", 250)
  1005.     pc.remove_item("100002", 1)
  1006.     notice_all(""..pc.get_name().." ha subido al rango Comandante de Primera")
  1007.             end
  1008.     elseif subir_rango == 3 then
  1009.          return
  1010.     end
  1011.    elseif ciudadano == 2 then
  1012.    say("Bonificacion de 5% en todo i 1500 de hp")
  1013.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1014.     if bonificacion == 1 and pc.get_map_index()==114 then
  1015.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1016.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1017.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1018.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1019.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1020.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1021.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1022.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1023.     affect.add_collect(apply.STR, 5, 60*60*1)
  1024.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1025.     affect.add_collect(apply.INT, 5, 60*60*1)
  1026.     elseif bonificacion == 7 then
  1027.          return
  1028.     end
  1029.    elseif ciudadano == 3 then
  1030.    say("Con tu rango no puedes montar monturas")
  1031.    elseif ciudadano == 4 then
  1032.     return
  1033.    end
  1034.   end
  1035.   when 100017.use begin
  1036.   say("Eres rango Comandante de Primera")
  1037.   say("Que deseas hacer?")
  1038.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1039.    if ciudadano == 1 then
  1040.    say("Vaya asin que quieres subir de rango")
  1041.    say("Te propongo hacerlo mucho mas rapido")
  1042.    say("Normalmente necesitas Puntos")
  1043.    say("Que se dan en la guerra de reinos")
  1044.    say("Yo te puedo subir de rango si me traes resentimientos")
  1045.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1046.    say("En cualquier mapa")
  1047.    say("Como deseas subirlo?")
  1048.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1049.     if subir_rango == 1 then
  1050.     if pc.count_item(100035)< 50 then
  1051.     say("No tienes los puntos necesarios (50)")
  1052.             else
  1053.             pc.give_item2("100003", 1)
  1054.             pc.remove_item("100035", 55)
  1055.     pc.remove_item("100002", 1)
  1056.     notice_all(""..pc.get_name().." ha subido al rango Comandante de Segunda")
  1057.             end
  1058.     elseif subir_rango == 2 then
  1059.     if pc.count_item(100039)< 250 then
  1060.     say("No tienes los puntos necesarios (250)")
  1061.             else
  1062.             pc.give_item2("100003", 1)
  1063.             pc.remove_item("100039", 250)
  1064.     pc.remove_item("100002", 1)
  1065.     notice_all(""..pc.get_name().." ha subido al rango Comandante de Segunda")
  1066.             end
  1067.     elseif subir_rango == 3 then
  1068.          return
  1069.     end
  1070.    elseif ciudadano == 2 then
  1071.    say("Bonificacion de 5% en todo i 1500 de hp")
  1072.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1073.     if bonificacion == 1 and pc.get_map_index()==114 then
  1074.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1075.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1076.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1077.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1078.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1079.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1080.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1081.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1082.     affect.add_collect(apply.STR, 5, 60*60*1)
  1083.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1084.     affect.add_collect(apply.INT, 5, 60*60*1)
  1085.     elseif bonificacion == 7 then
  1086.          return
  1087.     end
  1088.    elseif ciudadano == 3 then
  1089.    say("Con tu rango no puedes montar monturas")
  1090.    elseif ciudadano == 4 then
  1091.     return
  1092.    end
  1093.   end
  1094.   when 100018.use begin
  1095.   say("Eres rango Comandante de Segunda")
  1096.   say("Que deseas hacer?")
  1097.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1098.    if ciudadano == 1 then
  1099.    say("Vaya asin que quieres subir de rango")
  1100.    say("Te propongo hacerlo mucho mas rapido")
  1101.    say("Normalmente necesitas Puntos")
  1102.    say("Que se dan en la guerra de reinos")
  1103.    say("Yo te puedo subir de rango si me traes resentimientos")
  1104.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1105.    say("En cualquier mapa")
  1106.    say("Como deseas subirlo?")
  1107.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1108.     if subir_rango == 1 then
  1109.     if pc.count_item(100035)< 50 then
  1110.     say("No tienes los puntos necesarios (50)")
  1111.             else
  1112.             pc.give_item2("100003", 1)
  1113.             pc.remove_item("100035", 55)
  1114.     pc.remove_item("100002", 1)
  1115.     notice_all(""..pc.get_name().." ha subido al rango Comandante de Tercera")
  1116.             end
  1117.     elseif subir_rango == 2 then
  1118.     if pc.count_item(100039)< 250 then
  1119.     say("No tienes los puntos necesarios (250)")
  1120.             else
  1121.             pc.give_item2("100003", 1)
  1122.             pc.remove_item("100039", 250)
  1123.     pc.remove_item("100002", 1)
  1124.     notice_all(""..pc.get_name().." ha subido al rango Comandante de Tercera")
  1125.             end
  1126.     elseif subir_rango == 3 then
  1127.          return
  1128.     end
  1129.    elseif ciudadano == 2 then
  1130.    say("Bonificacion de 5% en todo i 1500 de hp")
  1131.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1132.     if bonificacion == 1 and pc.get_map_index()==114 then
  1133.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1134.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1135.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1136.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1137.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1138.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1139.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1140.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1141.     affect.add_collect(apply.STR, 5, 60*60*1)
  1142.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1143.     affect.add_collect(apply.INT, 5, 60*60*1)
  1144.     elseif bonificacion == 7 then
  1145.          return
  1146.     end
  1147.    elseif ciudadano == 3 then
  1148.    say("Con tu rango no puedes montar monturas")
  1149.    elseif ciudadano == 4 then
  1150.     return
  1151.    end
  1152.   end
  1153.   when 100019.use begin
  1154.   say("Eres rango Comandante de Tercera")
  1155.   say("Que deseas hacer?")
  1156.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1157.    if ciudadano == 1 then
  1158.    say("Vaya asin que quieres subir de rango")
  1159.    say("Te propongo hacerlo mucho mas rapido")
  1160.    say("Normalmente necesitas Puntos")
  1161.    say("Que se dan en la guerra de reinos")
  1162.    say("Yo te puedo subir de rango si me traes resentimientos")
  1163.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1164.    say("En cualquier mapa")
  1165.    say("Como deseas subirlo?")
  1166.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1167.     if subir_rango == 1 then
  1168.     if pc.count_item(100035)< 50 then
  1169.     say("No tienes los puntos necesarios (50)")
  1170.             else
  1171.             pc.give_item2("100003", 1)
  1172.             pc.remove_item("100035", 55)
  1173.     pc.remove_item("100002", 1)
  1174.     notice_all(""..pc.get_name().." ha subido al rango General")
  1175.             end
  1176.     elseif subir_rango == 2 then
  1177.     if pc.count_item(100039)< 250 then
  1178.     say("No tienes los puntos necesarios (250)")
  1179.             else
  1180.             pc.give_item2("100003", 1)
  1181.             pc.remove_item("100039", 250)
  1182.     pc.remove_item("100002", 1)
  1183.     notice_all(""..pc.get_name().." ha subido al rango General")
  1184.             end
  1185.     elseif subir_rango == 3 then
  1186.          return
  1187.     end
  1188.    elseif ciudadano == 2 then
  1189.    say("Bonificacion de 5% en todo i 1500 de hp")
  1190.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1191.     if bonificacion == 1 and pc.get_map_index()==114 then
  1192.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1193.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1194.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1195.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1196.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1197.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1198.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1199.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1200.     affect.add_collect(apply.STR, 5, 60*60*1)
  1201.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1202.     affect.add_collect(apply.INT, 5, 60*60*1)
  1203.     elseif bonificacion == 7 then
  1204.          return
  1205.     end
  1206.    elseif ciudadano == 3 then
  1207.    say("Con tu rango no puedes montar monturas")
  1208.    elseif ciudadano == 4 then
  1209.     return
  1210.    end
  1211.   end
  1212.   when 100020.use begin
  1213.   say("Eres rango General")
  1214.   say("Que deseas hacer?")
  1215.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Defensores", "Salir")
  1216.    if ciudadano == 1 then
  1217.    say("Vaya asin que quieres subir de rango")
  1218.    say("Te propongo hacerlo mucho mas rapido")
  1219.    say("Normalmente necesitas Puntos")
  1220.    say("Que se dan en la guerra de reinos")
  1221.    say("Yo te puedo subir de rango si me traes resentimientos")
  1222.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1223.    say("En cualquier mapa")
  1224.    say("Como deseas subirlo?")
  1225.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1226.     if subir_rango == 1 then
  1227.     if pc.count_item(100035)< 50 then
  1228.     say("No tienes los puntos necesarios (50)")
  1229.             else
  1230.             pc.give_item2("100003", 1)
  1231.             pc.remove_item("100035", 55)
  1232.     pc.remove_item("100002", 1)
  1233.     notice_all(""..pc.get_name().." ha subido al rango General de Primera")
  1234.             end
  1235.     elseif subir_rango == 2 then
  1236.     if pc.count_item(100039)< 250 then
  1237.     say("No tienes los puntos necesarios (250)")
  1238.             else
  1239.             pc.give_item2("100003", 1)
  1240.             pc.remove_item("100039", 250)
  1241.     pc.remove_item("100002", 1)
  1242.     notice_all(""..pc.get_name().." ha subido al rango General de Primera")
  1243.             end
  1244.     elseif subir_rango == 3 then
  1245.          return
  1246.     end
  1247.    elseif ciudadano == 2 then
  1248.    say("Bonificacion de 5% en todo i 1500 de hp")
  1249.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1250.     if bonificacion == 1 and pc.get_map_index()==114 then
  1251.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1252.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1253.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1254.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1255.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1256.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1257.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1258.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1259.     affect.add_collect(apply.STR, 5, 60*60*1)
  1260.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1261.     affect.add_collect(apply.INT, 5, 60*60*1)
  1262.     elseif bonificacion == 7 then
  1263.          return
  1264.     end
  1265.    elseif ciudadano == 3 then
  1266.    say("Con tu rango no puedes montar monturas")
  1267.    elseif ciudadano == 4 then
  1268.    say("Que defensor deseas invocar")
  1269.     local defensor_def = select("Minotauro", "Azrael", "Dragon", "Salir")
  1270.     if defensor_def == 1 then
  1271.     say("Con el minotauro podras defenderte de los enemigos")
  1272.     say("Deseas invocarlo?")
  1273.          local invocar = select("Si", "No")
  1274.          if invocar == 1 then
  1275.          if pc.count_item(100039)< 100 then
  1276.          say("No tienes la cantidad necesaria")
  1277.          else
  1278.          pc.give_item2("100041", 1)
  1279.          pc.remove_item("100039", 100)
  1280.          end
  1281.          elseif invocar == 2 then
  1282.           return
  1283.          end
  1284.     elseif defensor_def == 2 then
  1285.     say("feo")
  1286.     elseif defensor_def == 3 then
  1287.     say("feo")
  1288.     elseif defensor_def == 4 then
  1289.          return
  1290.     end
  1291.    elseif ciudadano == 5 then
  1292.     return
  1293.    end
  1294.   end
  1295.   when 100021.use begin
  1296.   say("Eres rango General de Primera")
  1297.   say("Que deseas hacer?")
  1298.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1299.    if ciudadano == 1 then
  1300.    say("Vaya asin que quieres subir de rango")
  1301.    say("Te propongo hacerlo mucho mas rapido")
  1302.    say("Normalmente necesitas Puntos")
  1303.    say("Que se dan en la guerra de reinos")
  1304.    say("Yo te puedo subir de rango si me traes resentimientos")
  1305.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1306.    say("En cualquier mapa")
  1307.    say("Como deseas subirlo?")
  1308.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1309.     if subir_rango == 1 then
  1310.     if pc.count_item(100035)< 50 then
  1311.     say("No tienes los puntos necesarios (50)")
  1312.             else
  1313.             pc.give_item2("100003", 1)
  1314.             pc.remove_item("100035", 55)
  1315.     pc.remove_item("100002", 1)
  1316.     notice_all(""..pc.get_name().." ha subido al rango General de Segunda")
  1317.             end
  1318.     elseif subir_rango == 2 then
  1319.     if pc.count_item(100039)< 250 then
  1320.     say("No tienes los puntos necesarios (250)")
  1321.             else
  1322.             pc.give_item2("100003", 1)
  1323.             pc.remove_item("100039", 250)
  1324.     pc.remove_item("100002", 1)
  1325.     notice_all(""..pc.get_name().." ha subido al rango General de Segunda")
  1326.             end
  1327.     elseif subir_rango == 3 then
  1328.          return
  1329.     end
  1330.    elseif ciudadano == 2 then
  1331.    say("Bonificacion de 5% en todo i 1500 de hp")
  1332.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1333.     if bonificacion == 1 and pc.get_map_index()==114 then
  1334.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1335.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1336.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1337.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1338.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1339.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1340.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1341.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1342.     affect.add_collect(apply.STR, 5, 60*60*1)
  1343.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1344.     affect.add_collect(apply.INT, 5, 60*60*1)
  1345.     elseif bonificacion == 7 then
  1346.          return
  1347.     end
  1348.    elseif ciudadano == 3 then
  1349.    say("Con tu rango no puedes montar monturas")
  1350.    elseif ciudadano == 4 then
  1351.     return
  1352.    end
  1353.   end
  1354.   when 100022.use begin
  1355.   say("Eres rango General de Segunda")
  1356.   say("Que deseas hacer?")
  1357.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1358.    if ciudadano == 1 then
  1359.    say("Vaya asin que quieres subir de rango")
  1360.    say("Te propongo hacerlo mucho mas rapido")
  1361.    say("Normalmente necesitas Puntos")
  1362.    say("Que se dan en la guerra de reinos")
  1363.    say("Yo te puedo subir de rango si me traes resentimientos")
  1364.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1365.    say("En cualquier mapa")
  1366.    say("Como deseas subirlo?")
  1367.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1368.     if subir_rango == 1 then
  1369.     if pc.count_item(100035)< 50 then
  1370.     say("No tienes los puntos necesarios (50)")
  1371.             else
  1372.             pc.give_item2("100003", 1)
  1373.             pc.remove_item("100035", 55)
  1374.     pc.remove_item("100002", 1)
  1375.     notice_all(""..pc.get_name().." ha subido al rango General de Tercera")
  1376.             end
  1377.     elseif subir_rango == 2 then
  1378.     if pc.count_item(100039)< 250 then
  1379.     say("No tienes los puntos necesarios (250)")
  1380.             else
  1381.             pc.give_item2("100003", 1)
  1382.             pc.remove_item("100039", 250)
  1383.     pc.remove_item("100002", 1)
  1384.     notice_all(""..pc.get_name().." ha subido al rango General de Tercera")
  1385.             end
  1386.     elseif subir_rango == 3 then
  1387.          return
  1388.     end
  1389.    elseif ciudadano == 2 then
  1390.    say("Bonificacion de 5% en todo i 1500 de hp")
  1391.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1392.     if bonificacion == 1 and pc.get_map_index()==114 then
  1393.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1394.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1395.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1396.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1397.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1398.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1399.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1400.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1401.     affect.add_collect(apply.STR, 5, 60*60*1)
  1402.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1403.     affect.add_collect(apply.INT, 5, 60*60*1)
  1404.     elseif bonificacion == 7 then
  1405.          return
  1406.     end
  1407.    elseif ciudadano == 3 then
  1408.    say("Con tu rango no puedes montar monturas")
  1409.    elseif ciudadano == 4 then
  1410.     return
  1411.    end
  1412.   end
  1413.   when 100023.use begin
  1414.   say("Eres rango General de Tercera")
  1415.   say("Que deseas hacer?")
  1416.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1417.    if ciudadano == 1 then
  1418.    say("Vaya asin que quieres subir de rango")
  1419.    say("Te propongo hacerlo mucho mas rapido")
  1420.    say("Normalmente necesitas Puntos")
  1421.    say("Que se dan en la guerra de reinos")
  1422.    say("Yo te puedo subir de rango si me traes resentimientos")
  1423.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1424.    say("En cualquier mapa")
  1425.    say("Como deseas subirlo?")
  1426.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1427.     if subir_rango == 1 then
  1428.     if pc.count_item(100035)< 50 then
  1429.     say("No tienes los puntos necesarios (50)")
  1430.             else
  1431.             pc.give_item2("100003", 1)
  1432.             pc.remove_item("100035", 55)
  1433.     pc.remove_item("100002", 1)
  1434.     notice_all(""..pc.get_name().." ha subido al rango General de Cuarta")
  1435.             end
  1436.     elseif subir_rango == 2 then
  1437.     if pc.count_item(100039)< 250 then
  1438.     say("No tienes los puntos necesarios (250)")
  1439.             else
  1440.             pc.give_item2("100003", 1)
  1441.             pc.remove_item("100039", 250)
  1442.     pc.remove_item("100002", 1)
  1443.     notice_all(""..pc.get_name().." ha subido al rango General de Cuarta")
  1444.             end
  1445.     elseif subir_rango == 3 then
  1446.          return
  1447.     end
  1448.    elseif ciudadano == 2 then
  1449.    say("Bonificacion de 5% en todo i 1500 de hp")
  1450.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1451.     if bonificacion == 1 and pc.get_map_index()==114 then
  1452.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1453.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1454.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1455.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1456.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1457.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1458.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1459.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1460.     affect.add_collect(apply.STR, 5, 60*60*1)
  1461.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1462.     affect.add_collect(apply.INT, 5, 60*60*1)
  1463.     elseif bonificacion == 7 then
  1464.          return
  1465.     end
  1466.    elseif ciudadano == 3 then
  1467.    say("Con tu rango no puedes montar monturas")
  1468.    elseif ciudadano == 4 then
  1469.     return
  1470.    end
  1471.   end
  1472.   when 100024.use begin
  1473.   say("Eres rango General de Cuarta")
  1474.   say("Que deseas hacer?")
  1475.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1476.    if ciudadano == 1 then
  1477.    say("Vaya asin que quieres subir de rango")
  1478.    say("Te propongo hacerlo mucho mas rapido")
  1479.    say("Normalmente necesitas Puntos")
  1480.    say("Que se dan en la guerra de reinos")
  1481.    say("Yo te puedo subir de rango si me traes resentimientos")
  1482.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1483.    say("En cualquier mapa")
  1484.    say("Como deseas subirlo?")
  1485.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1486.     if subir_rango == 1 then
  1487.     if pc.count_item(100035)< 50 then
  1488.     say("No tienes los puntos necesarios (50)")
  1489.             else
  1490.             pc.give_item2("100003", 1)
  1491.             pc.remove_item("100035", 55)
  1492.     pc.remove_item("100002", 1)
  1493.     notice_all(""..pc.get_name().." ha subido al rango General de Quinta")
  1494.             end
  1495.     elseif subir_rango == 2 then
  1496.     if pc.count_item(100039)< 250 then
  1497.     say("No tienes los puntos necesarios (250)")
  1498.             else
  1499.             pc.give_item2("100003", 1)
  1500.             pc.remove_item("100039", 250)
  1501.     pc.remove_item("100002", 1)
  1502.     notice_all(""..pc.get_name().." ha subido al rango General de Quinta")
  1503.             end
  1504.     elseif subir_rango == 3 then
  1505.          return
  1506.     end
  1507.    elseif ciudadano == 2 then
  1508.    say("Bonificacion de 5% en todo i 1500 de hp")
  1509.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1510.     if bonificacion == 1 and pc.get_map_index()==114 then
  1511.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1512.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1513.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1514.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1515.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1516.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1517.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1518.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1519.     affect.add_collect(apply.STR, 5, 60*60*1)
  1520.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1521.     affect.add_collect(apply.INT, 5, 60*60*1)
  1522.     elseif bonificacion == 7 then
  1523.          return
  1524.     end
  1525.    elseif ciudadano == 3 then
  1526.    say("Con tu rango no puedes montar monturas")
  1527.    elseif ciudadano == 4 then
  1528.     return
  1529.    end
  1530.   end
  1531.   when 100025.use begin
  1532.   say("Eres rango General de Quinta")
  1533.   say("Que deseas hacer?")
  1534.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1535.    if ciudadano == 1 then
  1536.    say("Vaya asin que quieres subir de rango")
  1537.    say("Te propongo hacerlo mucho mas rapido")
  1538.    say("Normalmente necesitas Puntos")
  1539.    say("Que se dan en la guerra de reinos")
  1540.    say("Yo te puedo subir de rango si me traes resentimientos")
  1541.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1542.    say("En cualquier mapa")
  1543.    say("Como deseas subirlo?")
  1544.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1545.     if subir_rango == 1 then
  1546.     if pc.count_item(100035)< 50 then
  1547.     say("No tienes los puntos necesarios (50)")
  1548.             else
  1549.             pc.give_item2("100003", 1)
  1550.             pc.remove_item("100035", 55)
  1551.     pc.remove_item("100002", 1)
  1552.     notice_all(""..pc.get_name().." ha subido al rango General de Sexta")
  1553.             end
  1554.     elseif subir_rango == 2 then
  1555.     if pc.count_item(100039)< 250 then
  1556.     say("No tienes los puntos necesarios (250)")
  1557.             else
  1558.             pc.give_item2("100003", 1)
  1559.             pc.remove_item("100039", 250)
  1560.     pc.remove_item("100002", 1)
  1561.     notice_all(""..pc.get_name().." ha subido al rango General de Sexta")
  1562.             end
  1563.     elseif subir_rango == 3 then
  1564.          return
  1565.     end
  1566.    elseif ciudadano == 2 then
  1567.    say("Bonificacion de 5% en todo i 1500 de hp")
  1568.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1569.     if bonificacion == 1 and pc.get_map_index()==114 then
  1570.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1571.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1572.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1573.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1574.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1575.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1576.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1577.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1578.     affect.add_collect(apply.STR, 5, 60*60*1)
  1579.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1580.     affect.add_collect(apply.INT, 5, 60*60*1)
  1581.     elseif bonificacion == 7 then
  1582.          return
  1583.     end
  1584.    elseif ciudadano == 3 then
  1585.    say("Con tu rango no puedes montar monturas")
  1586.    elseif ciudadano == 4 then
  1587.     return
  1588.    end
  1589.   end
  1590.   when 100026.use begin
  1591.   say("Eres rango General de Sexta")
  1592.   say("Que deseas hacer?")
  1593.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1594.    if ciudadano == 1 then
  1595.    say("Vaya asin que quieres subir de rango")
  1596.    say("Te propongo hacerlo mucho mas rapido")
  1597.    say("Normalmente necesitas Puntos")
  1598.    say("Que se dan en la guerra de reinos")
  1599.    say("Yo te puedo subir de rango si me traes resentimientos")
  1600.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1601.    say("En cualquier mapa")
  1602.    say("Como deseas subirlo?")
  1603.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1604.     if subir_rango == 1 then
  1605.     if pc.count_item(100035)< 50 then
  1606.     say("No tienes los puntos necesarios (50)")
  1607.             else
  1608.             pc.give_item2("100003", 1)
  1609.             pc.remove_item("100035", 55)
  1610.     pc.remove_item("100002", 1)
  1611.     notice_all(""..pc.get_name().." ha subido al rango General de Septima")
  1612.             end
  1613.     elseif subir_rango == 2 then
  1614.     if pc.count_item(100039)< 250 then
  1615.     say("No tienes los puntos necesarios (250)")
  1616.             else
  1617.             pc.give_item2("100003", 1)
  1618.             pc.remove_item("100039", 250)
  1619.     pc.remove_item("100002", 1)
  1620.     notice_all(""..pc.get_name().." ha subido al rango General de Septima")
  1621.             end
  1622.     elseif subir_rango == 3 then
  1623.          return
  1624.     end
  1625.    elseif ciudadano == 2 then
  1626.    say("Bonificacion de 5% en todo i 1500 de hp")
  1627.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1628.     if bonificacion == 1 and pc.get_map_index()==114 then
  1629.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1630.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1631.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1632.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1633.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1634.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1635.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1636.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1637.     affect.add_collect(apply.STR, 5, 60*60*1)
  1638.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1639.     affect.add_collect(apply.INT, 5, 60*60*1)
  1640.     elseif bonificacion == 7 then
  1641.          return
  1642.     end
  1643.    elseif ciudadano == 3 then
  1644.    say("Con tu rango no puedes montar monturas")
  1645.    elseif ciudadano == 4 then
  1646.     return
  1647.    end
  1648.   end
  1649.   when 100027.use begin
  1650.   say("Eres rango General de Septima")
  1651.   say("Que deseas hacer?")
  1652.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1653.    if ciudadano == 1 then
  1654.    say("Vaya asin que quieres subir de rango")
  1655.    say("Te propongo hacerlo mucho mas rapido")
  1656.    say("Normalmente necesitas Puntos")
  1657.    say("Que se dan en la guerra de reinos")
  1658.    say("Yo te puedo subir de rango si me traes resentimientos")
  1659.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1660.    say("En cualquier mapa")
  1661.    say("Como deseas subirlo?")
  1662.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1663.     if subir_rango == 1 then
  1664.     if pc.count_item(100035)< 50 then
  1665.     say("No tienes los puntos necesarios (50)")
  1666.             else
  1667.             pc.give_item2("100003", 1)
  1668.             pc.remove_item("100035", 55)
  1669.     pc.remove_item("100002", 1)
  1670.     notice_all(""..pc.get_name().." ha subido al rango General de Octava")
  1671.             end
  1672.     elseif subir_rango == 2 then
  1673.     if pc.count_item(100039)< 250 then
  1674.     say("No tienes los puntos necesarios (250)")
  1675.             else
  1676.             pc.give_item2("100003", 1)
  1677.             pc.remove_item("100039", 250)
  1678.     pc.remove_item("100002", 1)
  1679.     notice_all(""..pc.get_name().." ha subido al rango General de Octava")
  1680.             end
  1681.     elseif subir_rango == 3 then
  1682.          return
  1683.     end
  1684.    elseif ciudadano == 2 then
  1685.    say("Bonificacion de 5% en todo i 1500 de hp")
  1686.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1687.     if bonificacion == 1 and pc.get_map_index()==114 then
  1688.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1689.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1690.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1691.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1692.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1693.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1694.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1695.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1696.     affect.add_collect(apply.STR, 5, 60*60*1)
  1697.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1698.     affect.add_collect(apply.INT, 5, 60*60*1)
  1699.     elseif bonificacion == 7 then
  1700.          return
  1701.     end
  1702.    elseif ciudadano == 3 then
  1703.    say("Con tu rango no puedes montar monturas")
  1704.    elseif ciudadano == 4 then
  1705.     return
  1706.    end
  1707.   end
  1708.   when 100028.use begin
  1709.   say("Eres rango General de Octava")
  1710.   say("Que deseas hacer?")
  1711.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1712.    if ciudadano == 1 then
  1713.    say("Vaya asin que quieres subir de rango")
  1714.    say("Te propongo hacerlo mucho mas rapido")
  1715.    say("Normalmente necesitas Puntos")
  1716.    say("Que se dan en la guerra de reinos")
  1717.    say("Yo te puedo subir de rango si me traes resentimientos")
  1718.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1719.    say("En cualquier mapa")
  1720.    say("Como deseas subirlo?")
  1721.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1722.     if subir_rango == 1 then
  1723.     if pc.count_item(100035)< 50 then
  1724.     say("No tienes los puntos necesarios (50)")
  1725.             else
  1726.             pc.give_item2("100003", 1)
  1727.             pc.remove_item("100035", 55)
  1728.     pc.remove_item("100002", 1)
  1729.     notice_all(""..pc.get_name().." ha subido al rango General de Novena")
  1730.             end
  1731.     elseif subir_rango == 2 then
  1732.     if pc.count_item(100039)< 250 then
  1733.     say("No tienes los puntos necesarios (250)")
  1734.             else
  1735.             pc.give_item2("100003", 1)
  1736.             pc.remove_item("100039", 250)
  1737.     pc.remove_item("100002", 1)
  1738.     notice_all(""..pc.get_name().." ha subido al rango General de Novena")
  1739.             end
  1740.     elseif subir_rango == 3 then
  1741.          return
  1742.     end
  1743.    elseif ciudadano == 2 then
  1744.    say("Bonificacion de 5% en todo i 1500 de hp")
  1745.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1746.     if bonificacion == 1 and pc.get_map_index()==114 then
  1747.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1748.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1749.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1750.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1751.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1752.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1753.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1754.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1755.     affect.add_collect(apply.STR, 5, 60*60*1)
  1756.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1757.     affect.add_collect(apply.INT, 5, 60*60*1)
  1758.     elseif bonificacion == 7 then
  1759.          return
  1760.     end
  1761.    elseif ciudadano == 3 then
  1762.    say("Con tu rango no puedes montar monturas")
  1763.    elseif ciudadano == 4 then
  1764.     return
  1765.    end
  1766.   end
  1767.   when 100029.use begin
  1768.   say("Eres rango General de Novena")
  1769.   say("Que deseas hacer?")
  1770.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1771.    if ciudadano == 1 then
  1772.    say("Vaya asin que quieres subir de rango")
  1773.    say("Te propongo hacerlo mucho mas rapido")
  1774.    say("Normalmente necesitas Puntos")
  1775.    say("Que se dan en la guerra de reinos")
  1776.    say("Yo te puedo subir de rango si me traes resentimientos")
  1777.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1778.    say("En cualquier mapa")
  1779.    say("Como deseas subirlo?")
  1780.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1781.     if subir_rango == 1 then
  1782.     if pc.count_item(100035)< 50 then
  1783.     say("No tienes los puntos necesarios (50)")
  1784.             else
  1785.             pc.give_item2("100003", 1)
  1786.             pc.remove_item("100035", 55)
  1787.     pc.remove_item("100002", 1)
  1788.     notice_all(""..pc.get_name().." ha subido al rango General de Decima")
  1789.             end
  1790.     elseif subir_rango == 2 then
  1791.     if pc.count_item(100039)< 250 then
  1792.     say("No tienes los puntos necesarios (250)")
  1793.             else
  1794.             pc.give_item2("100003", 1)
  1795.             pc.remove_item("100039", 250)
  1796.     pc.remove_item("100002", 1)
  1797.     notice_all(""..pc.get_name().." ha subido al rango General de Decima")
  1798.             end
  1799.     elseif subir_rango == 3 then
  1800.          return
  1801.     end
  1802.    elseif ciudadano == 2 then
  1803.    say("Bonificacion de 5% en todo i 1500 de hp")
  1804.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1805.     if bonificacion == 1 and pc.get_map_index()==114 then
  1806.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1807.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1808.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1809.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1810.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1811.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1812.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1813.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1814.     affect.add_collect(apply.STR, 5, 60*60*1)
  1815.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1816.     affect.add_collect(apply.INT, 5, 60*60*1)
  1817.     elseif bonificacion == 7 then
  1818.          return
  1819.     end
  1820.    elseif ciudadano == 3 then
  1821.    say("Con tu rango no puedes montar monturas")
  1822.    elseif ciudadano == 4 then
  1823.     return
  1824.    end
  1825.   end
  1826.   when 100030.use begin
  1827.   say("Eres rango General de Decima")
  1828.   say("Que deseas hacer?")
  1829.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1830.    if ciudadano == 1 then
  1831.    say("Vaya asin que quieres subir de rango")
  1832.    say("Te propongo hacerlo mucho mas rapido")
  1833.    say("Normalmente necesitas Puntos")
  1834.    say("Que se dan en la guerra de reinos")
  1835.    say("Yo te puedo subir de rango si me traes resentimientos")
  1836.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1837.    say("En cualquier mapa")
  1838.    say("Como deseas subirlo?")
  1839.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1840.     if subir_rango == 1 then
  1841.     if pc.count_item(100035)< 50 then
  1842.     say("No tienes los puntos necesarios (50)")
  1843.             else
  1844.             pc.give_item2("100003", 1)
  1845.             pc.remove_item("100035", 55)
  1846.     pc.remove_item("100002", 1)
  1847.     notice_all(""..pc.get_name().." ha subido al rango Jinete del Apocalipsis")
  1848.             end
  1849.     elseif subir_rango == 2 then
  1850.     if pc.count_item(100039)< 250 then
  1851.     say("No tienes los puntos necesarios (250)")
  1852.             else
  1853.             pc.give_item2("100003", 1)
  1854.             pc.remove_item("100039", 250)
  1855.     pc.remove_item("100002", 1)
  1856.     notice_all(""..pc.get_name().." ha subido al rango Jinete del Apocalipsis")
  1857.             end
  1858.     elseif subir_rango == 3 then
  1859.          return
  1860.     end
  1861.    elseif ciudadano == 2 then
  1862.    say("Bonificacion de 5% en todo i 1500 de hp")
  1863.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1864.     if bonificacion == 1 and pc.get_map_index()==114 then
  1865.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1866.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1867.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1868.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1869.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1870.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1871.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1872.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1873.     affect.add_collect(apply.STR, 5, 60*60*1)
  1874.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1875.     affect.add_collect(apply.INT, 5, 60*60*1)
  1876.     elseif bonificacion == 7 then
  1877.          return
  1878.     end
  1879.    elseif ciudadano == 3 then
  1880.    say("Con tu rango no puedes montar monturas")
  1881.    elseif ciudadano == 4 then
  1882.     return
  1883.    end
  1884.   end
  1885.   when 100031.use begin
  1886.   say("Eres rango Jinete del Apocalipsis")
  1887.   say("Que deseas hacer?")
  1888.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1889.    if ciudadano == 1 then
  1890.    say("Vaya asin que quieres subir de rango")
  1891.    say("Te propongo hacerlo mucho mas rapido")
  1892.    say("Normalmente necesitas Puntos")
  1893.    say("Que se dan en la guerra de reinos")
  1894.    say("Yo te puedo subir de rango si me traes resentimientos")
  1895.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1896.    say("En cualquier mapa")
  1897.    say("Como deseas subirlo?")
  1898.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1899.     if subir_rango == 1 then
  1900.     if pc.count_item(100035)< 50 then
  1901.     say("No tienes los puntos necesarios (50)")
  1902.             else
  1903.             pc.give_item2("100003", 1)
  1904.             pc.remove_item("100035", 55)
  1905.     pc.remove_item("100002", 1)
  1906.     notice_all(""..pc.get_name().." ha subido al rango *|Guardia Real|*")
  1907.             end
  1908.     elseif subir_rango == 2 then
  1909.     if pc.count_item(100039)< 250 then
  1910.     say("No tienes los puntos necesarios (250)")
  1911.             else
  1912.             pc.give_item2("100003", 1)
  1913.             pc.remove_item("100039", 250)
  1914.     pc.remove_item("100002", 1)
  1915.     notice_all(""..pc.get_name().." ha subido al rango *|Guardia Real|*")
  1916.             end
  1917.     elseif subir_rango == 3 then
  1918.          return
  1919.     end
  1920.    elseif ciudadano == 2 then
  1921.    say("Bonificacion de 5% en todo i 1500 de hp")
  1922.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1923.     if bonificacion == 1 and pc.get_map_index()==114 then
  1924.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1925.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1926.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1927.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1928.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1929.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1930.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1931.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1932.     affect.add_collect(apply.STR, 5, 60*60*1)
  1933.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1934.     affect.add_collect(apply.INT, 5, 60*60*1)
  1935.     elseif bonificacion == 7 then
  1936.          return
  1937.     end
  1938.    elseif ciudadano == 3 then
  1939.    say("Con tu rango no puedes montar monturas")
  1940.    elseif ciudadano == 4 then
  1941.     return
  1942.    end
  1943.   end
  1944.   when 100032.use begin
  1945.   say("Eres rango *|Guardia Real|*")
  1946.   say("Que deseas hacer?")
  1947.    local ciudadano = select("Subir Rango", "Obtener bonificaciones", "Montar monturas", "Salir")
  1948.    if ciudadano == 1 then
  1949.    say("Vaya asin que quieres subir de rango")
  1950.    say("Te propongo hacerlo mucho mas rapido")
  1951.    say("Normalmente necesitas Puntos")
  1952.    say("Que se dan en la guerra de reinos")
  1953.    say("Yo te puedo subir de rango si me traes resentimientos")
  1954.    say("Te costara mas cantidad, pero te los tiran los monstruos")
  1955.    say("En cualquier mapa")
  1956.    say("Como deseas subirlo?")
  1957.     local subir_rango = select("Con puntos", "Con resentimientos", "Salir")
  1958.     if subir_rango == 1 then
  1959.     if pc.count_item(100035)< 50 then
  1960.     say("No tienes los puntos necesarios (50)")
  1961.             else
  1962.             pc.give_item2("100003", 1)
  1963.             pc.remove_item("100035", 55)
  1964.     pc.remove_item("100002", 1)
  1965.     notice_all(""..pc.get_name().." ha subido al rango *|Monarca|*")
  1966.             end
  1967.     elseif subir_rango == 2 then
  1968.     if pc.count_item(100039)< 250 then
  1969.     say("No tienes los puntos necesarios (250)")
  1970.             else
  1971.             pc.give_item2("100003", 1)
  1972.             pc.remove_item("100039", 250)
  1973.     pc.remove_item("100002", 1)
  1974.     notice_all(""..pc.get_name().." ha subido al rango *|Monarca|*")
  1975.             end
  1976.     elseif subir_rango == 3 then
  1977.          return
  1978.     end
  1979.    elseif ciudadano == 2 then
  1980.    say("Bonificacion de 5% en todo i 1500 de hp")
  1981.     local bonificacion = select ("Criticos", "HP", "Mediohumanos", "DEX", "STR", "INT", "Salir")
  1982.     if bonificacion == 1 and pc.get_map_index()==114 then
  1983.     affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*1)
  1984.     elseif bonificacion == 2 and pc.get_map_index()==114 then
  1985.     affect.add_collect(apply.MAX_HP, 1500, 60*60*1)
  1986.     elseif bonificacion == 3 and pc.get_map_index()==114 then
  1987.     affect.add_collect(apply.ATTBONUS_HUMAN, 5, 60*60*1)
  1988.     elseif bonificacion == 4 and pc.get_map_index()==114 then
  1989.     affect.add_collect(apply.DEX, 5, 60*60*1)
  1990.     elseif bonificacion == 5 and pc.get_map_index()==114 then
  1991.     affect.add_collect(apply.STR, 5, 60*60*1)
  1992.     elseif bonificacion == 6 and pc.get_map_index()==114 then
  1993.     affect.add_collect(apply.INT, 5, 60*60*1)
  1994.     elseif bonificacion == 7 then
  1995.          return
  1996.     end
  1997.    elseif ciudadano == 3 then
  1998.    say("Con tu rango no puedes montar monturas")
  1999.    elseif ciudadano == 4 then
  2000.     return
  2001.    end
  2002.   end
  2003.   when 100033.use begin
  2004.          pc.give_item2("1", 1)
  2005.          pc.give_item2("1", 1)
  2006.          pc.give_item2("1", 1)
  2007.          pc.give_item2("1", 1)
  2008.          pc.give_item2("1", 1)
  2009.          pc.give_item2("1", 1)
  2010.          pc.give_item2("1", 1)
  2011.          pc.give_item2("100040", 4)
  2012.          pc.give_item2("100042", 1)
  2013.          notice_all(""..pc.get_name().." es el nuevo |***||/MONARCA\||***|")
  2014.          notice_all("el resto de jugadores volvera al rango *|Ciudadano Pobre|*")
  2015.          mysql_query("UPDATE item SET vnum=100001 where vnum=100002")
  2016.          mysql_query("UPDATE item SET vnum=100001 where vnum=100003")
  2017.          mysql_query("UPDATE item SET vnum=100001 where vnum=100004")
  2018.          mysql_query("UPDATE item SET vnum=100001 where vnum=100005")
  2019.          mysql_query("UPDATE item SET vnum=100001 where vnum=100006")
  2020.          mysql_query("UPDATE item SET vnum=100001 where vnum=100007")
  2021.          mysql_query("UPDATE item SET vnum=100001 where vnum=100008")
  2022.          mysql_query("UPDATE item SET vnum=100001 where vnum=100009")
  2023.          mysql_query("UPDATE item SET vnum=100001 where vnum=100010")
  2024.          mysql_query("UPDATE item SET vnum=100001 where vnum=100011")
  2025.          mysql_query("UPDATE item SET vnum=100001 where vnum=100012")
  2026.          mysql_query("UPDATE item SET vnum=100001 where vnum=100013")
  2027.          mysql_query("UPDATE item SET vnum=100001 where vnum=100014")
  2028.          mysql_query("UPDATE item SET vnum=100001 where vnum=100015")
  2029.          mysql_query("UPDATE item SET vnum=100001 where vnum=100016")
  2030.          mysql_query("UPDATE item SET vnum=100001 where vnum=100017")
  2031.          mysql_query("UPDATE item SET vnum=100001 where vnum=100018")
  2032.          mysql_query("UPDATE item SET vnum=100001 where vnum=100019")
  2033.          mysql_query("UPDATE item SET vnum=100001 where vnum=100020")
  2034.          mysql_query("UPDATE item SET vnum=100001 where vnum=100021")
  2035.          mysql_query("UPDATE item SET vnum=100001 where vnum=100022")
  2036.          mysql_query("UPDATE item SET vnum=100001 where vnum=100023")
  2037.          mysql_query("UPDATE item SET vnum=100001 where vnum=100024")
  2038.          mysql_query("UPDATE item SET vnum=100001 where vnum=100025")
  2039.          mysql_query("UPDATE item SET vnum=100001 where vnum=100026")
  2040.          mysql_query("UPDATE item SET vnum=100001 where vnum=100027")
  2041.          mysql_query("UPDATE item SET vnum=100001 where vnum=100028")
  2042.          mysql_query("UPDATE item SET vnum=100001 where vnum=100029")
  2043.          mysql_query("UPDATE item SET vnum=100001 where vnum=100030")
  2044.          mysql_query("UPDATE item SET vnum=100001 where vnum=100031")
  2045.          mysql_query("UPDATE item SET vnum=100001 where vnum=100032")
  2046.          chat("Obtienes tu equipo de MONARCA")
  2047.          chat("Como no queremos que reines solo")
  2048.          chat("Se te han otorgado 4 plumas sagradas")
  2049.          chat("Entregalas a tus amigos, para que se conviertan")
  2050.          chat("En tus PROTECTORES REALES")
  2051.          item.remove()
  2052.        
  2053.   end
  2054.   when 100042.use begin
  2055.  
  2056.    say_title("Beneficios de Monarca")
  2057.    say("")
  2058.    say("Vaya "..pc.get_name().." veo que eres el nuevo monarca")
  2059.    say("Dime de que reino eres y te dejare hacer funciones")
  2060.    say("Para que tu reino tenga bonificaciones que los otros 2 no tienen")
  2061.    say("")
  2062.  
  2063.   local reino = select ("Jinno", "Shinsoo", "Chunjo", "Salir")
  2064.  
  2065.    if reino == 1 then
  2066.  
  2067.     say("Te recuerdo que el uso de los poderes no es ilimitado")
  2068.     say("Usalos con cabeza")
  2069.    
  2070.    local jinno = select ("Añadir EXP", "Añadir YANG", "Añadir DROP", "Salir")
  2071.  
  2072.          if jinno == 1 then
  2073.        
  2074.           if get_time() < pc.getqf("tiempo") then
  2075.          
  2076.            chat("Espera 24 horas")
  2077.            return
  2078.            end
  2079.          
  2080.           __give_empire_priv(3, 4, 75, 60*60*6)
  2081.           notice_all("El monarca "..pc.get_name().." ha puesto EXP 75% 6 horas")
  2082.           pc.setqf("tiempo", get_time() + 60*60*24)
  2083.  
  2084.     elseif jinno == 2 then
  2085.     if get_time() < pc.getqf("tiempo") then
  2086.     chat("Espera 24 horas")
  2087.          return
  2088.     end
  2089.     __give_empire_priv(3, 2, 50, 60*60*6)
  2090.     notice_all("El monarca "..pc.get_name().." ha puesto YANG 50% 6 horas")
  2091.     pc.setqf("tiempo", get_time() + 60*60*24)
  2092.     elseif jinno == 3 then
  2093.     if get_time() < pc.getqf("tiempo") then
  2094.     chat("Espera 24 horas")
  2095.          return
  2096.     end
  2097.     __give_empire_priv(3, 1, 25, 60*60*6)
  2098.     notice_all("El monarca "..pc.get_name().." ha puesto DROP 25% 6 horas")
  2099.     pc.setqf("tiempo", get_time() + 60*60*24)
  2100.     elseif jinno == 4 then
  2101.          return
  2102.     end
  2103.    elseif reino == 2 then
  2104.    say("Te recuerdo que el uso de los poderes no es ilimitado")
  2105.    say("Usalos con cabeza")
  2106.     local shinsoo = select ("Añadir EXP", "Añadir YANG", "Añadir DROP", "Salir")
  2107.     if shinsoo == 1 then
  2108.     if get_time() < pc.getqf("tiempo") then
  2109.     chat("Espera 24 horas")
  2110.          return
  2111.     end
  2112.     __give_empire_priv(3, 4, 75, 60*60*6)
  2113.     notice_all("El monarca "..pc.get_name().." ha puesto EXP 75% 6 horas")
  2114.     pc.setqf("tiempo", get_time() + 60*60*24)
  2115.  
  2116.     elseif shinsoo == 2 then
  2117.     if get_time() < pc.getqf("tiempo") then
  2118.     chat("Espera 24 horas")
  2119.          return
  2120.     end
  2121.     __give_empire_priv(3, 2, 50, 60*60*6)
  2122.     notice_all("El monarca "..pc.get_name().." ha puesto YANG 50% 6 horas")
  2123.     pc.setqf("tiempo", get_time() + 60*60*24)
  2124.     elseif shinsoo == 3 then
  2125.     if get_time() < pc.getqf("tiempo") then
  2126.     chat("Espera 24 horas")
  2127.          return
  2128.     end
  2129.     __give_empire_priv(3, 1, 25, 60*60*6)
  2130.     notice_all("El monarca "..pc.get_name().." ha puesto DROP 25% 6 horas")
  2131.     pc.setqf("tiempo", get_time() + 60*60*24)
  2132.     elseif shinsoo == 4 then
  2133.          return
  2134.     end
  2135.    elseif reino == 3 then
  2136.    say("Te recuerdo que el uso de los poderes no es ilimitado")
  2137.    say("Usalos con cabeza")
  2138.     local shinsoo = select ("Añadir EXP", "Añadir YANG", "Añadir DROP", "Salir")
  2139.     if shinsoo == 1 then
  2140.     if get_time() < pc.getqf("tiempo") then
  2141.     chat("Espera 2 horas")
  2142.          return
  2143.     end
  2144.     notice_all("El monarca "..pc.get_name().." ha puesto EXP 75% 6 horas")
  2145.     pc.setqf("tiempo", get_time() + 60*60*2)
  2146.  
  2147.     elseif shinsoo == 2 then
  2148.     if get_time() < pc.getqf("tiempo") then
  2149.     chat("Espera 24 horas")
  2150.          return
  2151.     end
  2152.     __give_empire_priv(3, 2, 50, 60*60*6)
  2153.     notice_all("El monarca "..pc.get_name().." ha puesto YANG 50% 6 horas")
  2154.     pc.setqf("tiempo", get_time() + 60*60*24)
  2155.     elseif shinsoo == 3 then
  2156.     if get_time() < pc.getqf("tiempo") then
  2157.     chat("Espera 24 horas")
  2158.          return
  2159.     end
  2160.     __give_empire_priv(3, 1, 25, 60*60*6)
  2161.     notice_all("El monarca "..pc.get_name().." ha puesto DROP 25% 6 horas")
  2162.     pc.setqf("tiempo", get_time() + 60*60*24)
  2163.     elseif shinsoo == 4 then
  2164.          return
  2165.     end
  2166.  
  2167.    elseif reino == 4 then
  2168.     return
  2169.    end
  2170.   end
  2171.  
  2172.   when 100041.use begin
  2173.   notice_all(""..pc.get_name().." ha invocado 1 defensor")
  2174.  
  2175.    local coor_x = pc.get_local_x()
  2176.    local coor_y = pc.get_local_y()
  2177.    local cor_x = math.random(0,10)
  2178.    local cor_y = math.random(0,10)
  2179.  
  2180.     if pc.get_empire() == 1 then
  2181.    
  2182.          mob.spawn(2599, coor_x + cor_x , coor_y + cor_y, 1)
  2183.          pc.remove_item("100041", 1)
  2184.        
  2185.     elseif pc.get_empire() == 2 then
  2186.    
  2187.           mob.spawn(2599, coor_x + cor_x , coor_y + cor_y, 1)
  2188.          
  2189.     elseif pc.get_empire() == 3 then
  2190.           mob.spawn(2599, coor_x + cor_x , coor_y + cor_y, 1)
  2191.  
  2192.     end
  2193.   end  
  2194.   when 100035.use begin
  2195.          if pc.count_item("100001") == 1 then
  2196.     if get_time() < pc.getqf("tiempo") then
  2197.          chat("Espera 24 horas")
  2198.           return
  2199.          end
  2200.          notice_all(""..pc.get_name().." es rango *|Ciudadano Pobre|*")
  2201.          pc.setqf("tiempo", get_time() + 60*60*24)
  2202.    end
  2203.          if pc.count_item("100002") == 1 then
  2204.     if get_time() < pc.getqf("tiempo") then
  2205.          chat("Espera 24 horas")
  2206.           return
  2207.          end
  2208.          notice_all(""..pc.get_name().." es rango *|Ciudadano Leal|*")
  2209.          pc.setqf("tiempo", get_time() + 60*60*24)
  2210.    end
  2211.          if pc.count_item("100003") == 1 then
  2212.     if get_time() < pc.getqf("tiempo") then
  2213.          chat("Espera 24 horas")
  2214.           return
  2215.          end
  2216.          notice_all(""..pc.get_name().." es rango *|Ciudadano Honrado|*")
  2217.          pc.setqf("tiempo", get_time() + 60*60*24)
  2218.    end
  2219.          if pc.count_item("100004") == 1 then
  2220.     if get_time() < pc.getqf("tiempo") then
  2221.          chat("Espera 24 horas")
  2222.           return
  2223.          end
  2224.          notice_all(""..pc.get_name().." es rango *|Sargento|*")
  2225.          pc.setqf("tiempo", get_time() + 60*60*24)
  2226.    end
  2227.          if pc.count_item("100005") == 1 then
  2228.     if get_time() < pc.getqf("tiempo") then
  2229.          chat("Espera 24 horas")
  2230.           return
  2231.          end
  2232.          notice_all(""..pc.get_name().." es rango *|Sargento de Primera|*")
  2233.          pc.setqf("tiempo", get_time() + 60*60*24)
  2234.    end
  2235.          if pc.count_item("100006") == 1 then
  2236.     if get_time() < pc.getqf("tiempo") then
  2237.          chat("Espera 24 horas")
  2238.           return
  2239.          end
  2240.          notice_all(""..pc.get_name().." es rango *|Sargento de Segunda|*")
  2241.          pc.setqf("tiempo", get_time() + 60*60*24)
  2242.    end
  2243.          if pc.count_item("100007") == 1 then
  2244.     if get_time() < pc.getqf("tiempo") then
  2245.          chat("Espera 24 horas")
  2246.           return
  2247.          end
  2248.          notice_all(""..pc.get_name().." es rango *|Sargento de Tercera|*")
  2249.          pc.setqf("tiempo", get_time() + 60*60*24)
  2250.    end
  2251.          if pc.count_item("100008") == 1 then
  2252.     if get_time() < pc.getqf("tiempo") then
  2253.          chat("Espera 24 horas")
  2254.           return
  2255.          end
  2256.          notice_all(""..pc.get_name().." es rango *|Comandante|*")
  2257.          pc.setqf("tiempo", get_time() + 60*60*24)
  2258.    end
  2259.          if pc.count_item("100009") == 1 then
  2260.     if get_time() < pc.getqf("tiempo") then
  2261.          chat("Espera 24 horas")
  2262.           return
  2263.          end
  2264.          notice_all(""..pc.get_name().." es rango *|Comandante de Primera|*")
  2265.          pc.setqf("tiempo", get_time() + 60*60*24)
  2266.    end
  2267.          if pc.count_item("100010") == 1 then
  2268.     if get_time() < pc.getqf("tiempo") then
  2269.          chat("Espera 24 horas")
  2270.           return
  2271.          end
  2272.          notice_all(""..pc.get_name().." es rango *|Comandante de Segunda|*")
  2273.          pc.setqf("tiempo", get_time() + 60*60*24)
  2274.    end
  2275.          if pc.count_item("100011") == 1 then
  2276.     if get_time() < pc.getqf("tiempo") then
  2277.          chat("Espera 24 horas")
  2278.           return
  2279.          end
  2280.          notice_all(""..pc.get_name().." es rango *|Comandante de Tercera|*")
  2281.          pc.setqf("tiempo", get_time() + 60*60*24)
  2282.    end
  2283.          if pc.count_item("100012") == 1 then
  2284.     if get_time() < pc.getqf("tiempo") then
  2285.          chat("Espera 24 horas")
  2286.           return
  2287.          end
  2288.          notice_all(""..pc.get_name().." es rango *|General|*")
  2289.          pc.setqf("tiempo", get_time() + 60*60*24)
  2290.    end
  2291.          if pc.count_item("100013") == 1 then
  2292.     if get_time() < pc.getqf("tiempo") then
  2293.          chat("Espera 24 horas")
  2294.           return
  2295.          end
  2296.          notice_all(""..pc.get_name().." es rango *|General de Primera|*")
  2297.          pc.setqf("tiempo", get_time() + 60*60*24)
  2298.    end
  2299.          if pc.count_item("100014") == 1 then
  2300.     if get_time() < pc.getqf("tiempo") then
  2301.          chat("Espera 24 horas")
  2302.           return
  2303.          end
  2304.          notice_all(""..pc.get_name().." es rango *|General de Segunda|*")
  2305.          pc.setqf("tiempo", get_time() + 60*60*24)
  2306.    end
  2307.          if pc.count_item("100015") == 1 then
  2308.     if get_time() < pc.getqf("tiempo") then
  2309.          chat("Espera 24 horas")
  2310.           return
  2311.          end
  2312.          notice_all(""..pc.get_name().." es rango *|General de Tercera|*")
  2313.          pc.setqf("tiempo", get_time() + 60*60*24)
  2314.    end
  2315.          if pc.count_item("100016") == 1 then
  2316.     if get_time() < pc.getqf("tiempo") then
  2317.          chat("Espera 24 horas")
  2318.           return
  2319.          end
  2320.          notice_all(""..pc.get_name().." es rango *|General de Cuarta|*")
  2321.          pc.setqf("tiempo", get_time() + 60*60*24)
  2322.    end
  2323.          if pc.count_item("100017") == 1 then
  2324.     if get_time() < pc.getqf("tiempo") then
  2325.          chat("Espera 24 horas")
  2326.           return
  2327.          end
  2328.          notice_all(""..pc.get_name().." es rango *|General de Quinta|*")
  2329.          pc.setqf("tiempo", get_time() + 60*60*24)
  2330.    end
  2331.          if pc.count_item("100018") == 1 then
  2332.     if get_time() < pc.getqf("tiempo") then
  2333.          chat("Espera 24 horas")
  2334.           return
  2335.          end
  2336.          notice_all(""..pc.get_name().." es rango *|General de Sexta|*")
  2337.          pc.setqf("tiempo", get_time() + 60*60*24)
  2338.    end
  2339.          if pc.count_item("100019") == 1 then
  2340.     if get_time() < pc.getqf("tiempo") then
  2341.          chat("Espera 24 horas")
  2342.           return
  2343.          end
  2344.          notice_all(""..pc.get_name().." es rango *|General de Septima|*")
  2345.          pc.setqf("tiempo", get_time() + 60*60*24)
  2346.    end
  2347.          if pc.count_item("100020") == 1 then
  2348.     if get_time() < pc.getqf("tiempo") then
  2349.          chat("Espera 24 horas")
  2350.           return
  2351.          end
  2352.          notice_all(""..pc.get_name().." es rango *|General de Octava|*")
  2353.          pc.setqf("tiempo", get_time() + 60*60*24)
  2354.    end
  2355.          if pc.count_item("100021") == 1 then
  2356.     if get_time() < pc.getqf("tiempo") then
  2357.          chat("Espera 24 horas")
  2358.           return
  2359.          end
  2360.          notice_all(""..pc.get_name().." es rango *|General de Novena|*")
  2361.          pc.setqf("tiempo", get_time() + 60*60*24)
  2362.    end
  2363.          if pc.count_item("100022") == 1 then
  2364.     if get_time() < pc.getqf("tiempo") then
  2365.          chat("Espera 24 horas")
  2366.           return
  2367.          end
  2368.          notice_all(""..pc.get_name().." es rango *|General de Decima|*")
  2369.          pc.setqf("tiempo", get_time() + 60*60*24)
  2370.    end
  2371.          if pc.count_item("100023") == 1 then
  2372.     if get_time() < pc.getqf("tiempo") then
  2373.          chat("Espera 24 horas")
  2374.           return
  2375.          end
  2376.          notice_all(""..pc.get_name().." es rango *|Samurai|*")
  2377.          pc.setqf("tiempo", get_time() + 60*60*24)
  2378.    end
  2379.          if pc.count_item("100024") == 1 then
  2380.     if get_time() < pc.getqf("tiempo") then
  2381.          chat("Espera 24 horas")
  2382.           return
  2383.          end
  2384.          notice_all(""..pc.get_name().." es rango *|Samurai de Primera|*")
  2385.          pc.setqf("tiempo", get_time() + 60*60*24)
  2386.    end
  2387.          if pc.count_item("100025") == 1 then
  2388.     if get_time() < pc.getqf("tiempo") then
  2389.          chat("Espera 24 horas")
  2390.           return
  2391.          end
  2392.          notice_all(""..pc.get_name().." es rango *|Samurai de Segunda|*")
  2393.          pc.setqf("tiempo", get_time() + 60*60*24)
  2394.    end
  2395.          if pc.count_item("100026") == 1 then
  2396.     if get_time() < pc.getqf("tiempo") then
  2397.          chat("Espera 24 horas")
  2398.           return
  2399.          end
  2400.          notice_all(""..pc.get_name().." es rango *|Samurai de Tercera|*")
  2401.          pc.setqf("tiempo", get_time() + 60*60*24)
  2402.    end
  2403.          if pc.count_item("100027") == 1 then
  2404.     if get_time() < pc.getqf("tiempo") then
  2405.          chat("Espera 24 horas")
  2406.           return
  2407.          end
  2408.          notice_all(""..pc.get_name().." es rango *|Coronel|*")
  2409.          pc.setqf("tiempo", get_time() + 60*60*24)
  2410.    end
  2411.          if pc.count_item("100028") == 1 then
  2412.     if get_time() < pc.getqf("tiempo") then
  2413.          chat("Espera 24 horas")
  2414.           return
  2415.          end
  2416.          notice_all(""..pc.get_name().." es rango *|Coronel de Segunda|*")
  2417.          pc.setqf("tiempo", get_time() + 60*60*24)
  2418.    end
  2419.          if pc.count_item("100029") == 1 then
  2420.     if get_time() < pc.getqf("tiempo") then
  2421.          chat("Espera 24 horas")
  2422.           return
  2423.          end
  2424.          notice_all(""..pc.get_name().." es rango *|Coronel de Tercera|*")
  2425.          pc.setqf("tiempo", get_time() + 60*60*24)
  2426.    end
  2427.          if pc.count_item("100030") == 1 then
  2428.     if get_time() < pc.getqf("tiempo") then
  2429.          chat("Espera 24 horas")
  2430.           return
  2431.          end
  2432.          notice_all(""..pc.get_name().." es rango *|Verdugo|*")
  2433.          pc.setqf("tiempo", get_time() + 60*60*24)
  2434.    end
  2435.          if pc.count_item("100031") == 1 then
  2436.     if get_time() < pc.getqf("tiempo") then
  2437.          chat("Espera 24 horas")
  2438.           return
  2439.          end
  2440.          notice_all(""..pc.get_name().." es rango *|Jinete del Apocalipsis|*")
  2441.          pc.setqf("tiempo", get_time() + 60*60*24)
  2442.    end
  2443.          if pc.count_item("100032") == 1 then
  2444.     if get_time() < pc.getqf("tiempo") then
  2445.          chat("Espera 24 horas")
  2446.           return
  2447.          end
  2448.          notice_all(""..pc.get_name().." es rango *|/CAZADOR\|*")
  2449.          pc.setqf("tiempo", get_time() + 60*60*24)
  2450.    end
  2451.          if pc.count_item("100033") == 1 then
  2452.     if get_time() < pc.getqf("tiempo") then
  2453.          chat("Espera 24 horas")
  2454.           return
  2455.          end
  2456.          notice_all(""..pc.get_name().." es rango ***|/MONARCA\|***")
  2457.          pc.setqf("tiempo", get_time() + 60*60*24)
  2458.    end
  2459.          if pc.count_item("100034") == 1 then
  2460.     if get_time() < pc.getqf("tiempo") then
  2461.          chat("Espera 24 horas")
  2462.           return
  2463.          end
  2464.          notice_all(""..pc.get_name().." es rango **|/PROTECTOR REAL\|**")
  2465.          pc.setqf("tiempo", get_time() + 60*60*24)
  2466.    end
  2467.   end
  2468. end
  2469. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement