EnzzoCaaue

addonmount.lua

Feb 5th, 2015
23,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. function onLogin(cid)
  2.  
  3.  
  4. local player = Player(cid)
  5. local addons ={
  6. --[storage] = {outfit_male, outfit_female},
  7. [28416] = {143, 147}, -- barbarian
  8. [28417] = {134, 142}, -- warrior
  9. [28418] = {152, 156}, -- assassins
  10. [28419] = {465, 466}, -- Insectoid
  11. [28420] = {133, 141}, -- summoner
  12. [28421] = {472, 471}, -- Entrepreneur
  13. [28422] = {144, 148}, -- duid
  14. [28423] = {278, 279}, -- brotherhood
  15. [28424] = {577, 578}, -- Dream Warden
  16. [28425] = {610, 618}, -- Glooth Engineer
  17. [28426] = {130, 138}, -- mage
  18. [28427] = {634, 635}, -- Conjurer
  19. [28428] = {128, 136}, -- Citizen
  20. [28429] = {129, 137}, -- Hunter
  21. [28430] = {131, 139}, -- Kinghit
  22. [28431] = {132, 140}, -- Noblewoman
  23. [28432] = {145, 149}, -- Wizard
  24. [28433] = {146, 150}, -- Oriental
  25. [28434] = {151, 155}, -- Pirate
  26. [28435] = {153, 157}, -- Beggar
  27. [28436] = {154, 158}, -- Shaman
  28. [28437] = {251, 252}, -- Norsewoman
  29. [28438] = {268, 269}, -- Nightmare
  30. [28439] = {273, 270}, -- jester
  31. [28441] = {289, 288}, -- demonhunter
  32. [28442] = {325, 324}, -- yalaharian
  33. [28444] = {335, 336}, -- warnaster
  34. [28445] = {327, 366}, -- wayfarer
  35. [28446] = {430, 431}, -- afflicted
  36. [28447] = {432, 433}, -- elementalist
  37. [28448] = {463, 464}, -- deepling
  38. [28449] = {512, 513}, -- crystal warlord
  39. [28450] = {516, 514}, -- soil guardian
  40. [28451] = {541, 542}, -- demon
  41. [28452] = {574, 575}, -- cave explorer
  42. [28453] = {619, 620}, -- jersey
  43. [28454] = {637, 636}, -- beastmaster
  44. [28455] = {632, 633} -- champion
  45.  
  46. }
  47.  
  48. for storage, addon in pairs(addons) do
  49. if player:getStorageValue(storage) > 0 then
  50. player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
  51. player:addOutfitAddon(addon[1], 3)
  52. player:addOutfitAddon(addon[2], 3)
  53. player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!")
  54. player:setStorageValue(storage, 0)
  55. end
  56. end
  57.  
  58.  
  59. local mounts ={
  60. --[storage] = mounts,
  61. [80000] = 1, -- Widow Queen
  62. [80001] = 2, -- Racing Bird
  63. [80002] = 3, -- War Bear
  64. [80003] = 4, -- Black Sheep
  65. [80004] = 5, -- Midnight Panther
  66. [80005] = 6, -- Draptor
  67. [80006] = 7, -- Titanica
  68. [80007] = 8, -- Tin Lizzard
  69. [80008] = 9, -- Blazebringer
  70. [80009] = 10, -- Rapid Boar
  71. [80010] = 11, -- Stampor
  72. [80011] = 12, -- Undead Cavebear
  73. [80012] = 13, -- Donkey
  74. [80013] = 14, -- Tiger Slug
  75. [80014] = 15, -- Uniwheel
  76. [80015] = 16, -- Crystal Wolf
  77. [80016] = 17, -- War Horse
  78. [80017] = 18, -- Kingly Deer
  79. [80018] = 19, -- Tamed Panda
  80. [80019] = 20, -- Dromedary
  81. [80020] = 21, -- King Scorpion
  82. [80021] = 22, -- Rented Horse
  83. [80022] = 23, -- Armoured War Horse
  84. [80023] = 24, -- Shadow Draptor"
  85. [80024] = 25, -- Rented Horse
  86. [80025] = 26, -- Nethersteed
  87. [80026] = 27, -- Ladybug
  88. [80027] = 28, -- Manta
  89. [80028] = 29, -- Ironblight
  90. [80029] = 30, -- Magma Crawler
  91. [80030] = 31, -- Dragonling
  92. [80031] = 32, -- Gnarlhound
  93. [80032] = 33, -- Crimson Ray
  94. [80033] = 34, -- Steelbeak
  95. [80034] = 35, -- Water Buffalo
  96. [80035] = 36, -- Tombstinger
  97. [80036] = 37, -- Platesaurian
  98. [80037] = 38, -- Ursagrodon
  99. [80038] = 39, -- The Hellgrip
  100. [80039] = 40, -- Jade Lion
  101. [80040] = 41, -- Golden Lion
  102. [80041] = 42, -- Shock Head
  103. [80042] = 43, -- Walker
  104. [80043] = 44, -- Azudocus
  105. [80044] = 45, -- Carpacosaurus
  106. [80045] = 46, -- Death Crawler
  107. [80046] = 47, -- Flamesteed
  108. [80047] = 48, -- Jade Pincer
  109. [80048] = 49, -- Tempest
  110. [80049] = 50 -- Winter King
  111.  
  112. }
  113.  
  114. for storage, mount in pairs(mounts) do
  115. if player:getStorageValue(storage) > 0 then
  116. player:getPosition():sendMagicEffect(CONST_ME_GIFT_WRAPS)
  117. player:addMount(mount)
  118. player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua Mount foi adicionado!")
  119. player:setStorageValue(storage, 0)
  120. end
  121. end
  122. return true
  123. end
Advertisement
Add Comment
Please, Sign In to add comment