Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Author : Jafferwaffer
- --Core : Trinity Core with Eluna 3.3.5a
- --Script : EasyRiding
- --Thanks to the Eluna Devs!
- --Please do not share without asking, message me on http://emudevs.com
- --Also report any bugs the same way, enjoy!
- local RidingLevels = {
- [20] = 33389, --Apprentice
- [40] = 33392, --Journeyman
- [60] = 34092, --Expert
- [70] = 34093, --Artisan
- [80] = 54197, --Cold Weather
- }
- local Mounts = {
- ["Human"] = {
- [20] = 5655,
- [40] = 18776,
- [60] = 25470,
- [70] = 44689,
- },
- ["Dwarf"] = {
- [20] = 5864,
- [40] = 46748,
- [60] = 25470,
- [70] = 44689,
- },
- ["Night Elf"] = {
- [20] = 8631,
- [40] = 18902,
- [60] = 25470,
- [70] = 44689,
- },
- ["Gnome"] = {
- [20] = 8563,
- [40] = 18774,
- [60] = 25470,
- [70] = 44689,
- },
- ["Draenei"] = {
- [20] = 29743,
- [40] = 29747,
- [60] = 25470,
- [70] = 44689,
- },
- ["Orc"] = {
- [20] = 5665,
- [40] = 18797,
- [60] = 25475,
- [70] = 44690,
- },
- ["Undead"] = {
- [20] = 46308,
- [40] = 47101,
- [60] = 25475,
- [70] = 44690,
- },
- ["Tauren"] = {
- [20] = 46100,
- [40] = 18793,
- [60] = 25475,
- [70] = 44690,
- },
- ["Troll"] = {
- [20] = 8591,
- [40] = 18789,
- [60] = 25475,
- [70] = 44690,
- },
- ["Blood Elf"] = {
- [20] = 29221,
- [40] = 28936,
- [60] = 25475,
- [70] = 44690,
- },
- }
- local function getRiding(event, player)
- local plrLvl = player:GetLevel();
- local plrRace = player:GetRaceAsString(0);
- if RidingLevels[plrLvl] ~= nil then
- player:LearnSpell(RidingLevels[plrLvl]);
- if not(player:AddItem(Mounts[plrRace][plrLvl])) then --If bags full then send mount in mail.
- SendMail("Level "..plrLvl.." Mount", "Your bags were full upon reaching level "..plrLvl..". Here is the mount you should have recieved!", player:GetGUIDLow(), 0, 61, 0, 0, 0, (Mounts[plrRace][plrLvl]), 1);
- player:SendBroadcastMessage("A mount has been sent to you by mail. If it does not show please relog."); --Mounts weren't comming through until player relogged.
- end
- end
- end
- RegisterPlayerEvent(13,getRiding) --Upon Character Change level run getRiding function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement