Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif cmd[1] == "increases" then
- if cmd[2] == "Strength" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- if cmd[2] == "Intelligence" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- if cmd[2] == "Willpower" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- if cmd[2] == "Agility" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- if cmd[2] == "Speed" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- if cmd[2] == "Endurance" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- if cmd[2] == "Personality" then
- local value = Players[pid].data.attributeSkillIncreases[cmd[2]]
- local increase
- if value == 0 then
- increase = "one"
- end
- if value > 0 and value <= 4 then
- increase = "two"
- end
- if value > 4 and value <= 7 then
- increase = "three"
- end
- if value > 7 and value <= 9 then
- increase = "four"
- end
- if value >= 10 then
- increase = "five"
- end
- 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"
- tes3mp.SendMessage(pid, message, true)
- end
- 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
- local message = "That is not a valid attribute. Please enter the caps sensitive attribute after increases. i.e. 'Strength'\n"
- tes3mp.SendMessage(pid, message, true)
- end
- elseif cmd[2] == nil then
- local message = "Please enter a valid attribute.\n"
- tes3mp.SendMessage(pid, message, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement