Advertisement
Clotic

Buff2.lua

Aug 5th, 2019
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. local Cost = 100000 --- How much buff command cost to use. 10gold atm
  2. local buff = {
  3.     48074,
  4.     48170,
  5.     43223,
  6.     36880,
  7.     467,
  8.     48469,
  9.     48162,
  10.     32728,
  11.     21564,
  12.     26035,
  13.     48469,
  14.     48073,
  15.     16609,
  16.     36880,
  17.     15366,
  18.     43223,
  19.     65077,
  20.     65075,
  21.     38734,
  22.     35912,
  23.     48074
  24. } -- add/remove spell IDs for buffs (used in the buff command).
  25.  
  26. function Buff(event, player, message, type, language)
  27.     if (message:lower() == "buff") then
  28.         if (player:GetCoinage() >= Cost) then
  29.             player:ModifyMoney(-Cost) ---Remove gold from player
  30.             for k, v in pairs(buff) do
  31.                 player:AddAura(v, player)
  32.             end
  33.         end
  34.         player:SendBroadcastMessage("|cFFFF0000You have been buffed, enjoy!|r")
  35.         return false
  36.     end
  37. end
  38.  
  39. RegisterPlayerEvent(42, Buff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement