Advertisement
smd111

dynamic and basic equips

Nov 19th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.15 KB | None | 0 0
  1. --Dynamic
  2. function get_sets()
  3.     sets.Engaged = {
  4.     main="Golden Spear",
  5.     sub="Tenax Strap",
  6.     ammo="Fullmetal Bullet",
  7.     head="Drachen Armet",
  8.     body="Drachen Mail",
  9.     hands="Drachen Fng. Gnt.",
  10.     legs="Drachen Brais",
  11.     feet="Drachen Greaves",
  12.     neck={ name="Wivre Gorget", augments={'"Subtle Blow"+4','MP+3',}},
  13.     left_ear="Zircon Earring",
  14.     right_ear="Sardonyx Earring",
  15.     left_ring="Rajas Ring",
  16.     right_ring="Dasra's Ring",
  17.     back="Behemoth Mantle",
  18.     }
  19.     sets.weaponskill = {
  20.     element = {
  21.         Transfixion={
  22.             Fire = {neck="Light Gorget",waist="Light Belt"},
  23.             Earth = {neck="Light Gorget",waist="Light Belt"},
  24.             Water = {neck="Light Gorget",waist="Light Belt"},
  25.             Wind = {neck="Light Gorget",waist="Light Belt"},
  26.             Ice = {neck="Light Gorget",waist="Light Belt"},
  27.             Lightning = {neck="Light Gorget",waist="Light Belt"},
  28.             Light = {neck="Light Gorget",waist="Light Belt"},
  29.             Dark = {neck="Light Gorget",waist="Light Belt"},
  30.             },
  31.         Compression={
  32.             Fire = {neck="Shadow Gorget",waist="Shadow Belt"},
  33.             Earth = {neck="Shadow Gorget",waist="Shadow Belt"},
  34.             Water = {neck="Shadow Gorget",waist="Shadow Belt"},
  35.             Wind = {neck="Shadow Gorget",waist="Shadow Belt"},
  36.             Ice = {neck="Shadow Gorget",waist="Shadow Belt"},
  37.             Lightning = {neck="Shadow Gorget",waist="Shadow Belt"},
  38.             Light = {neck="Shadow Gorget",waist="Shadow Belt"},
  39.             Dark = {neck="Shadow Gorget",waist="Shadow Belt"},
  40.             },
  41.         Liquefaction={
  42.             Fire = {neck="Flame Gorget",waist="Flame Belt"},
  43.             Earth = {neck="Flame Gorget",waist="Flame Belt"},
  44.             Water = {neck="Flame Gorget",waist="Flame Belt"},
  45.             Wind = {neck="Flame Gorget",waist="Flame Belt"},
  46.             Ice = {neck="Flame Gorget",waist="Flame Belt"},
  47.             Lightning = {neck="Flame Gorget",waist="Flame Belt"},
  48.             Light = {neck="Flame Gorget",waist="Flame Belt"},
  49.             Dark = {neck="Flame Gorget",waist="Flame Belt"},
  50.             },
  51.         Scission={
  52.             Fire = {neck="Soil Gorget",waist="Soil Belt"},
  53.             Earth = {neck="Soil Gorget",waist="Soil Belt"},
  54.             Water = {neck="Soil Gorget",waist="Soil Belt"},
  55.             Wind = {neck="Soil Gorget",waist="Soil Belt"},
  56.             Ice = {neck="Soil Gorget",waist="Soil Belt"},
  57.             Lightning = {neck="Soil Gorget",waist="Soil Belt"},
  58.             Light = {neck="Soil Gorget",waist="Soil Belt"},
  59.             Dark = {neck="Soil Gorget",waist="Soil Belt"},
  60.             },
  61.         Reverberation={
  62.             Fire = {neck="Aqua Gorget",waist="Aqua Belt"},
  63.             Earth = {neck="Aqua Gorget",waist="Aqua Belt"},
  64.             Water = {neck="Aqua Gorget",waist="Aqua Belt"},
  65.             Wind = {neck="Aqua Gorget",waist="Aqua Belt"},
  66.             Ice = {neck="Aqua Gorget",waist="Aqua Belt"},
  67.             Lightning = {neck="Aqua Gorget",waist="Aqua Belt"},
  68.             Light = {neck="Aqua Gorget",waist="Aqua Belt"},
  69.             Dark = {neck="Aqua Gorget",waist="Aqua Belt"},
  70.             },
  71.         Detonation={
  72.             Fire = {neck="Breeze Gorget",waist="Breeze Belt"},
  73.             Earth = {neck="Breeze Gorget",waist="Breeze Belt"},
  74.             Water = {neck="Breeze Gorget",waist="Breeze Belt"},
  75.             Wind = {neck="Breeze Gorget",waist="Breeze Belt"},
  76.             Ice = {neck="Breeze Gorget",waist="Breeze Belt"},
  77.             Lightning = {neck="Breeze Gorget",waist="Breeze Belt"},
  78.             Light = {neck="Breeze Gorget",waist="Breeze Belt"},
  79.             Dark = {neck="Breeze Gorget",waist="Breeze Belt"},
  80.             },
  81.         Induration={
  82.             Fire = {neck="Snow Gorget",waist="Snow Belt"},
  83.             Earth = {neck="Snow Gorget",waist="Snow Belt"},
  84.             Water = {neck="Snow Gorget",waist="Snow Belt"},
  85.             Wind = {neck="Snow Gorget",waist="Snow Belt"},
  86.             Ice = {neck="Snow Gorget",waist="Snow Belt"},
  87.             Lightning = {neck="Snow Gorget",waist="Snow Belt"},
  88.             Light = {neck="Snow Gorget",waist="Snow Belt"},
  89.             Dark = {neck="Snow Gorget",waist="Snow Belt"},
  90.             },
  91.         Impaction={
  92.             Fire = {neck="Thunder Gorget",waist="Thunder Belt"},
  93.             Earth = {neck="Thunder Gorget",waist="Thunder Belt"},
  94.             Water = {neck="Thunder Gorget",waist="Thunder Belt"},
  95.             Wind = {neck="Thunder Gorget",waist="Thunder Belt"},
  96.             Ice = {neck="Thunder Gorget",waist="Thunder Belt"},
  97.             Lightning = {neck="Thunder Gorget",waist="Thunder Belt"},
  98.             Light = {neck="Thunder Gorget",waist="Thunder Belt"},
  99.             Dark = {neck="Thunder Gorget",waist="Thunder Belt"},
  100.             },
  101.         Gravitation={
  102.             Fire = {neck="Shadow Gorget",waist="Shadow Belt"},
  103.             Earth = {neck="Soil Gorget",waist="Soil Belt"},
  104.             Water = {neck="Soil Gorget",waist="Soil Belt"},
  105.             Wind = {neck="Shadow Gorget",waist="Shadow Belt"},
  106.             Ice = {neck="Shadow Gorget",waist="Shadow Belt"},
  107.             Lightning = {neck="Soil Gorget",waist="Soil Belt"},
  108.             Light = {neck="Soil Gorget",waist="Soil Belt"},
  109.             Dark = {neck="Shadow Gorget",waist="Shadow Belt"},
  110.             },
  111.         Distortion={
  112.             Fire = {neck="Aqua Gorget",waist="Aqua Belt"},
  113.             Earth = {neck="Snow Gorget",waist="Snow Belt"},
  114.             Water = {neck="Aqua Gorget",waist="Aqua Belt"},
  115.             Wind = {neck="Aqua Gorget",waist="Aqua Belt"},
  116.             Ice = {neck="Snow Gorget",waist="Snow Belt"},
  117.             Lightning = {neck="Snow Gorget",waist="Snow Belt"},
  118.             Light = {neck="Aqua Gorget",waist="Aqua Belt"},
  119.             Dark = {neck="Snow Gorget",waist="Snow Belt"},
  120.             },
  121.         Fusion={
  122.             Fire = {neck="Flame Gorget",waist="Flame Belt"},
  123.             Earth = {neck="Light Gorget",waist="Light Belt"},
  124.             Water = {neck="Light Gorget",waist="Light Belt"},
  125.             Wind = {neck="Flame Gorget",waist="Flame Belt"},
  126.             Ice = {neck="Flame Gorget",waist="Flame Belt"},
  127.             Lightning = {neck="Light Gorget",waist="Light Belt"},
  128.             Light = {neck="Light Gorget",waist="Light Belt"},
  129.             Dark = {neck="Flame Gorget",waist="Flame Belt"},
  130.             },
  131.         Fragmentation={
  132.             Fire = {neck="Breeze Gorget",waist="Breeze Belt"},
  133.             Earth = {neck="Breeze Gorget",waist="Breeze Belt"},
  134.             Water = {neck="Thunder Gorget",waist="Thunder Belt"},
  135.             Wind = {neck="Breeze Gorget",waist="Breeze Belt"},
  136.             Ice = {neck="Thunder Gorget",waist="Thunder Belt"},
  137.             Lightning = {neck="Thunder Gorget",waist="Thunder Belt"},
  138.             Light = {neck="Thunder Gorget",waist="Thunder Belt"},
  139.             Dark = {neck="Breeze Gorget",waist="Breeze Belt"},
  140.             },
  141.         Light={
  142.             Fire = {neck="Flame Gorget",waist="Flame Belt"},
  143.             Earth = {neck="Breeze Gorget",waist="Breeze Belt"},
  144.             Water = {neck="Thunder Gorget",waist="Thunder Belt"},
  145.             Wind = {neck="Breeze Gorget",waist="Breeze Belt"},
  146.             Ice = {neck="Flame Gorget",waist="Flame Belt"},
  147.             Lightning = {neck="Thunder Gorget",waist="Thunder Belt"},
  148.             Light = {neck="Light Gorget",waist="Light Belt"},
  149.             Dark = {neck="Light Gorget",waist="Light Belt"},
  150.             },
  151.         Darkness={
  152.             Fire = {neck="Aqua Gorget",waist="Aqua Belt"},
  153.             Earth = {neck="Soil Gorget",waist="Soil Belt"},
  154.             Water = {neck="Aqua Gorget",waist="Aqua Belt"},
  155.             Wind = {neck="Snow Gorget",waist="Snow Belt"},
  156.             Ice = {neck="Snow Gorget",waist="Snow Belt"},
  157.             Lightning = {neck="Soil Gorget",waist="Soil Belt"},
  158.             Light = {neck="Shadow Gorget",waist="Shadow Belt"},
  159.             Dark = {neck="Shadow Gorget",waist="Shadow Belt"},
  160.             },
  161.         },
  162.     types = {
  163.         ['Hand-to-Hand'] = {head="Tokon Hachimaki"},
  164.         ['Dagger'] = {head="Issen Hachimaki"},
  165.         ['Sword'] = {head="Kensho Hachimaki"},
  166.         ['Great Sword'] = {head="Hako Hachimaki"},
  167.         ['Axe'] = {head="Ryoshi Hachimaki"},
  168.         ['Great Axe'] = {head="Senshin Hachimaki"},
  169.         ['Scythe'] = {head="Rekka Hachimaki"},
  170.         ['Polearm'] = {head="Shitotsu Hachimaki"},
  171.         ['Katana'] = {head="Kanja Hachimaki"},
  172.         ['Great Katana'] = {head="Kengo Hachimaki"},
  173.         ['Club'] = {head="Rokugo Hachimaki"},
  174.         ['Staff'] = {head="Hakke Hachimaki"},
  175.         ['Archery'] = {head="Shunten Hachimaki"},
  176.         ['Marksmanship'] = {head="Saika Hachimaki"},
  177.         ['Throwing'] = {},
  178.         }
  179.     }
  180. end
  181. function precast(spell,status,set_gear)
  182.     local dwelement = world.day_element
  183.     if world.weather_element ~= "None" and world.weather_element ~= nil then
  184.         dwelement = world.weather_element
  185.     end
  186.     local set_gear = sets.Engaged
  187.     if spell.type == "WeaponSkill" then
  188.         if sets.weaponskill.element[spell.skillchain_a][dwelement] then
  189.             set_gear = set_combine(set_gear, sets.weaponskill.element[spell.skillchain_a][dwelement])--changes neck and waist to the specific ones you want(does not equip them yet)
  190.         end
  191.         if sets.weaponskill.types[spell.skill] then
  192.             set_gear = set_combine(set_gear, sets.weaponskill.types[spell.skill])--changes head to the specific one you want(does not equip them yet)
  193.         end
  194.     end
  195.     equip(set_gear)--now it equips your desired gear with all the changes in it
  196. end
  197.  
  198. --GS Default
  199. function get_sets()
  200.     sets.Engaged = {
  201.     main="Golden Spear",
  202.     sub="Tenax Strap",
  203.     ammo="Fullmetal Bullet",
  204.     head="Drachen Armet",
  205.     body="Drachen Mail",
  206.     hands="Drachen Fng. Gnt.",
  207.     legs="Drachen Brais",
  208.     feet="Drachen Greaves",
  209.     neck={ name="Wivre Gorget", augments={'"Subtle Blow"+4','MP+3',}},
  210.     left_ear="Zircon Earring",
  211.     right_ear="Sardonyx Earring",
  212.     left_ring="Rajas Ring",
  213.     right_ring="Dasra's Ring",
  214.     back="Behemoth Mantle",
  215.     }
  216.     sets.weaponskill = {
  217.     element = {
  218.         Transfixion={
  219.             Fire = {neck="Light Gorget",waist="Light Belt"},
  220.             Earth = {neck="Light Gorget",waist="Light Belt"},
  221.             Water = {neck="Light Gorget",waist="Light Belt"},
  222.             Wind = {neck="Light Gorget",waist="Light Belt"},
  223.             Ice = {neck="Light Gorget",waist="Light Belt"},
  224.             Lightning = {neck="Light Gorget",waist="Light Belt"},
  225.             Light = {neck="Light Gorget",waist="Light Belt"},
  226.             Dark = {neck="Light Gorget",waist="Light Belt"},
  227.             },
  228.         Compression={
  229.             Fire = {neck="Shadow Gorget",waist="Shadow Belt"},
  230.             Earth = {neck="Shadow Gorget",waist="Shadow Belt"},
  231.             Water = {neck="Shadow Gorget",waist="Shadow Belt"},
  232.             Wind = {neck="Shadow Gorget",waist="Shadow Belt"},
  233.             Ice = {neck="Shadow Gorget",waist="Shadow Belt"},
  234.             Lightning = {neck="Shadow Gorget",waist="Shadow Belt"},
  235.             Light = {neck="Shadow Gorget",waist="Shadow Belt"},
  236.             Dark = {neck="Shadow Gorget",waist="Shadow Belt"},
  237.             },
  238.         Liquefaction={
  239.             Fire = {neck="Flame Gorget",waist="Flame Belt"},
  240.             Earth = {neck="Flame Gorget",waist="Flame Belt"},
  241.             Water = {neck="Flame Gorget",waist="Flame Belt"},
  242.             Wind = {neck="Flame Gorget",waist="Flame Belt"},
  243.             Ice = {neck="Flame Gorget",waist="Flame Belt"},
  244.             Lightning = {neck="Flame Gorget",waist="Flame Belt"},
  245.             Light = {neck="Flame Gorget",waist="Flame Belt"},
  246.             Dark = {neck="Flame Gorget",waist="Flame Belt"},
  247.             },
  248.         Scission={
  249.             Fire = {neck="Soil Gorget",waist="Soil Belt"},
  250.             Earth = {neck="Soil Gorget",waist="Soil Belt"},
  251.             Water = {neck="Soil Gorget",waist="Soil Belt"},
  252.             Wind = {neck="Soil Gorget",waist="Soil Belt"},
  253.             Ice = {neck="Soil Gorget",waist="Soil Belt"},
  254.             Lightning = {neck="Soil Gorget",waist="Soil Belt"},
  255.             Light = {neck="Soil Gorget",waist="Soil Belt"},
  256.             Dark = {neck="Soil Gorget",waist="Soil Belt"},
  257.             },
  258.         Reverberation={
  259.             Fire = {neck="Aqua Gorget",waist="Aqua Belt"},
  260.             Earth = {neck="Aqua Gorget",waist="Aqua Belt"},
  261.             Water = {neck="Aqua Gorget",waist="Aqua Belt"},
  262.             Wind = {neck="Aqua Gorget",waist="Aqua Belt"},
  263.             Ice = {neck="Aqua Gorget",waist="Aqua Belt"},
  264.             Lightning = {neck="Aqua Gorget",waist="Aqua Belt"},
  265.             Light = {neck="Aqua Gorget",waist="Aqua Belt"},
  266.             Dark = {neck="Aqua Gorget",waist="Aqua Belt"},
  267.             },
  268.         Detonation={
  269.             Fire = {neck="Breeze Gorget",waist="Breeze Belt"},
  270.             Earth = {neck="Breeze Gorget",waist="Breeze Belt"},
  271.             Water = {neck="Breeze Gorget",waist="Breeze Belt"},
  272.             Wind = {neck="Breeze Gorget",waist="Breeze Belt"},
  273.             Ice = {neck="Breeze Gorget",waist="Breeze Belt"},
  274.             Lightning = {neck="Breeze Gorget",waist="Breeze Belt"},
  275.             Light = {neck="Breeze Gorget",waist="Breeze Belt"},
  276.             Dark = {neck="Breeze Gorget",waist="Breeze Belt"},
  277.             },
  278.         Induration={
  279.             Fire = {neck="Snow Gorget",waist="Snow Belt"},
  280.             Earth = {neck="Snow Gorget",waist="Snow Belt"},
  281.             Water = {neck="Snow Gorget",waist="Snow Belt"},
  282.             Wind = {neck="Snow Gorget",waist="Snow Belt"},
  283.             Ice = {neck="Snow Gorget",waist="Snow Belt"},
  284.             Lightning = {neck="Snow Gorget",waist="Snow Belt"},
  285.             Light = {neck="Snow Gorget",waist="Snow Belt"},
  286.             Dark = {neck="Snow Gorget",waist="Snow Belt"},
  287.             },
  288.         Impaction={
  289.             Fire = {neck="Thunder Gorget",waist="Thunder Belt"},
  290.             Earth = {neck="Thunder Gorget",waist="Thunder Belt"},
  291.             Water = {neck="Thunder Gorget",waist="Thunder Belt"},
  292.             Wind = {neck="Thunder Gorget",waist="Thunder Belt"},
  293.             Ice = {neck="Thunder Gorget",waist="Thunder Belt"},
  294.             Lightning = {neck="Thunder Gorget",waist="Thunder Belt"},
  295.             Light = {neck="Thunder Gorget",waist="Thunder Belt"},
  296.             Dark = {neck="Thunder Gorget",waist="Thunder Belt"},
  297.             },
  298.         Gravitation={
  299.             Fire = {neck="Shadow Gorget",waist="Shadow Belt"},
  300.             Earth = {neck="Soil Gorget",waist="Soil Belt"},
  301.             Water = {neck="Soil Gorget",waist="Soil Belt"},
  302.             Wind = {neck="Shadow Gorget",waist="Shadow Belt"},
  303.             Ice = {neck="Shadow Gorget",waist="Shadow Belt"},
  304.             Lightning = {neck="Soil Gorget",waist="Soil Belt"},
  305.             Light = {neck="Soil Gorget",waist="Soil Belt"},
  306.             Dark = {neck="Shadow Gorget",waist="Shadow Belt"},
  307.             },
  308.         Distortion={
  309.             Fire = {neck="Aqua Gorget",waist="Aqua Belt"},
  310.             Earth = {neck="Snow Gorget",waist="Snow Belt"},
  311.             Water = {neck="Aqua Gorget",waist="Aqua Belt"},
  312.             Wind = {neck="Aqua Gorget",waist="Aqua Belt"},
  313.             Ice = {neck="Snow Gorget",waist="Snow Belt"},
  314.             Lightning = {neck="Snow Gorget",waist="Snow Belt"},
  315.             Light = {neck="Aqua Gorget",waist="Aqua Belt"},
  316.             Dark = {neck="Snow Gorget",waist="Snow Belt"},
  317.             },
  318.         Fusion={
  319.             Fire = {neck="Flame Gorget",waist="Flame Belt"},
  320.             Earth = {neck="Light Gorget",waist="Light Belt"},
  321.             Water = {neck="Light Gorget",waist="Light Belt"},
  322.             Wind = {neck="Flame Gorget",waist="Flame Belt"},
  323.             Ice = {neck="Flame Gorget",waist="Flame Belt"},
  324.             Lightning = {neck="Light Gorget",waist="Light Belt"},
  325.             Light = {neck="Light Gorget",waist="Light Belt"},
  326.             Dark = {neck="Flame Gorget",waist="Flame Belt"},
  327.             },
  328.         Fragmentation={
  329.             Fire = {neck="Breeze Gorget",waist="Breeze Belt"},
  330.             Earth = {neck="Breeze Gorget",waist="Breeze Belt"},
  331.             Water = {neck="Thunder Gorget",waist="Thunder Belt"},
  332.             Wind = {neck="Breeze Gorget",waist="Breeze Belt"},
  333.             Ice = {neck="Thunder Gorget",waist="Thunder Belt"},
  334.             Lightning = {neck="Thunder Gorget",waist="Thunder Belt"},
  335.             Light = {neck="Thunder Gorget",waist="Thunder Belt"},
  336.             Dark = {neck="Breeze Gorget",waist="Breeze Belt"},
  337.             },
  338.         Light={
  339.             Fire = {neck="Flame Gorget",waist="Flame Belt"},
  340.             Earth = {neck="Breeze Gorget",waist="Breeze Belt"},
  341.             Water = {neck="Thunder Gorget",waist="Thunder Belt"},
  342.             Wind = {neck="Breeze Gorget",waist="Breeze Belt"},
  343.             Ice = {neck="Flame Gorget",waist="Flame Belt"},
  344.             Lightning = {neck="Thunder Gorget",waist="Thunder Belt"},
  345.             Light = {neck="Light Gorget",waist="Light Belt"},
  346.             Dark = {neck="Light Gorget",waist="Light Belt"},
  347.             },
  348.         Darkness={
  349.             Fire = {neck="Aqua Gorget",waist="Aqua Belt"},
  350.             Earth = {neck="Soil Gorget",waist="Soil Belt"},
  351.             Water = {neck="Aqua Gorget",waist="Aqua Belt"},
  352.             Wind = {neck="Snow Gorget",waist="Snow Belt"},
  353.             Ice = {neck="Snow Gorget",waist="Snow Belt"},
  354.             Lightning = {neck="Soil Gorget",waist="Soil Belt"},
  355.             Light = {neck="Shadow Gorget",waist="Shadow Belt"},
  356.             Dark = {neck="Shadow Gorget",waist="Shadow Belt"},
  357.             },
  358.         },
  359.     types = {
  360.         ['Hand-to-Hand'] = {head="Tokon Hachimaki"},
  361.         ['Dagger'] = {head="Issen Hachimaki"},
  362.         ['Sword'] = {head="Kensho Hachimaki"},
  363.         ['Great Sword'] = {head="Hako Hachimaki"},
  364.         ['Axe'] = {head="Ryoshi Hachimaki"},
  365.         ['Great Axe'] = {head="Senshin Hachimaki"},
  366.         ['Scythe'] = {head="Rekka Hachimaki"},
  367.         ['Polearm'] = {head="Shitotsu Hachimaki"},
  368.         ['Katana'] = {head="Kanja Hachimaki"},
  369.         ['Great Katana'] = {head="Kengo Hachimaki"},
  370.         ['Club'] = {head="Rokugo Hachimaki"},
  371.         ['Staff'] = {head="Hakke Hachimaki"},
  372.         ['Archery'] = {head="Shunten Hachimaki"},
  373.         ['Marksmanship'] = {head="Saika Hachimaki"},
  374.         ['Throwing'] = {},
  375.         }
  376.     }
  377. end
  378. function precast(spell,status,set_gear)
  379.     local dwelement = world.day_element
  380.     if world.weather_element ~= "None" and world.weather_element ~= nil then
  381.         dwelement = world.weather_element
  382.     end
  383.     if spell.type == "WeaponSkill" then
  384.         if sets.weaponskill.element[spell.skillchain_a][dwelement]
  385.             equip(sets.weaponskill.element[spell.skillchain_a][dwelement])--equips this part of the set now
  386.         end
  387.         if sets.weaponskill.types[spell.skill] then
  388.             equip(sets.weaponskill.types[spell.skill])--equips this part of the set now
  389.         end
  390.     end
  391. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement