Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.36 KB | None | 0 0
  1.         elseif cmd[1] == "increases" then
  2.             if cmd[2] == "Strength" then
  3.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  4.                 local increase
  5.                
  6.                 if value == 0 then
  7.                     increase = "one"
  8.                 end
  9.                 if value > 0 and value <= 4 then
  10.                     increase = "two"
  11.                 end
  12.                 if value > 4 and value <= 7 then
  13.                     increase = "three"
  14.                 end
  15.                 if value > 7 and value <= 9 then
  16.                     increase = "four"
  17.                 end
  18.                 if value >= 10 then
  19.                     increase = "five"
  20.                 end
  21.                    
  22.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  23.                 tes3mp.SendMessage(pid, message, true)
  24.             end
  25.            
  26.             if cmd[2] == "Intelligence" then
  27.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  28.                 local increase
  29.                
  30.                 if value == 0 then
  31.                     increase = "one"
  32.                 end
  33.                 if value > 0 and value <= 4 then
  34.                     increase = "two"
  35.                 end
  36.                 if value > 4 and value <= 7 then
  37.                     increase = "three"
  38.                 end
  39.                 if value > 7 and value <= 9 then
  40.                     increase = "four"
  41.                 end
  42.                 if value >= 10 then
  43.                     increase = "five"
  44.                 end
  45.                    
  46.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  47.                 tes3mp.SendMessage(pid, message, true)
  48.             end
  49.            
  50.             if cmd[2] == "Willpower" then
  51.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  52.                 local increase
  53.                
  54.                 if value == 0 then
  55.                     increase = "one"
  56.                 end
  57.                 if value > 0 and value <= 4 then
  58.                     increase = "two"
  59.                 end
  60.                 if value > 4 and value <= 7 then
  61.                     increase = "three"
  62.                 end
  63.                 if value > 7 and value <= 9 then
  64.                     increase = "four"
  65.                 end
  66.                 if value >= 10 then
  67.                     increase = "five"
  68.                 end
  69.                    
  70.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  71.                 tes3mp.SendMessage(pid, message, true)
  72.             end
  73.            
  74.             if cmd[2] == "Agility" then
  75.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  76.                 local increase
  77.                
  78.                 if value == 0 then
  79.                     increase = "one"
  80.                 end
  81.                 if value > 0 and value <= 4 then
  82.                     increase = "two"
  83.                 end
  84.                 if value > 4 and value <= 7 then
  85.                     increase = "three"
  86.                 end
  87.                 if value > 7 and value <= 9 then
  88.                     increase = "four"
  89.                 end
  90.                 if value >= 10 then
  91.                     increase = "five"
  92.                 end
  93.                    
  94.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  95.                 tes3mp.SendMessage(pid, message, true)
  96.             end
  97.            
  98.             if cmd[2] == "Speed" then
  99.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  100.                 local increase
  101.                
  102.                 if value == 0 then
  103.                     increase = "one"
  104.                 end
  105.                 if value > 0 and value <= 4 then
  106.                     increase = "two"
  107.                 end
  108.                 if value > 4 and value <= 7 then
  109.                     increase = "three"
  110.                 end
  111.                 if value > 7 and value <= 9 then
  112.                     increase = "four"
  113.                 end
  114.                 if value >= 10 then
  115.                     increase = "five"
  116.                 end
  117.                    
  118.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  119.                 tes3mp.SendMessage(pid, message, true)
  120.             end
  121.            
  122.             if cmd[2] == "Endurance" then
  123.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  124.                 local increase
  125.                
  126.                 if value == 0 then
  127.                     increase = "one"
  128.                 end
  129.                 if value > 0 and value <= 4 then
  130.                     increase = "two"
  131.                 end
  132.                 if value > 4 and value <= 7 then
  133.                     increase = "three"
  134.                 end
  135.                 if value > 7 and value <= 9 then
  136.                     increase = "four"
  137.                 end
  138.                 if value >= 10 then
  139.                     increase = "five"
  140.                 end
  141.                    
  142.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  143.                 tes3mp.SendMessage(pid, message, true)
  144.             end
  145.            
  146.             if cmd[2] == "Personality" then
  147.                 local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
  148.                 local increase
  149.                
  150.                 if value == 0 then
  151.                     increase = "one"
  152.                 end
  153.                 if value > 0 and value <= 4 then
  154.                     increase = "two"
  155.                 end
  156.                 if value > 4 and value <= 7 then
  157.                     increase = "three"
  158.                 end
  159.                 if value > 7 and value <= 9 then
  160.                     increase = "four"
  161.                 end
  162.                 if value >= 10 then
  163.                     increase = "five"
  164.                 end
  165.                    
  166.                 local message = "Your current level stat increases for "..cmd[2].." are "..value..".\nYou will gain "..increase.." point(s) toward "..cmd[2].." on the next level up.\n"
  167.                 tes3mp.SendMessage(pid, message, true)
  168.             end
  169.             if cmd[2] ~= nil and cmd[2] ~= "Strength" and cmd[2] ~= "Intelligence" and cmd[2] ~= "Willpower" and cmd[2] ~= "Agility" and cmd[2] ~= "Speed" and cmd[2] ~= "Endurance" and cmd[2] ~= "Personality" then
  170.                 local message = "That is not a valid attribute. Please enter the caps sensitive attribute after increases. i.e. 'Strength'\n"
  171.                 tes3mp.SendMessage(pid, message, true)
  172.             end
  173.             elseif cmd[2] == nil then
  174.                 local message = "Please enter a valid attribute.\n"
  175.                 tes3mp.SendMessage(pid, message, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement