Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Cost = 10000 -- Edit this with coinage that is needed for power buff currently 1gold needed!
- local BUFFIDS = {48074, 48170, 43223, 36880, 467, 48469, 48162} -- add/remove spell IDs for buffs (used in the buff command).
- local POWERBUFFIDS = {48074, 48170, 43223, 36880, 467, 48469, 48162, 26662} -- add/remove spell IDs for buffs (used in the buff command).
- function Buff(event, player, message, type, language)
- if(message:lower() == "~buff") then
- if (player:GetCoinage() >= Cost) then
- player:ModifyMoney(-Cost) -- Remove this line if you don't want player to loose golds.
- for k, v in pairs(POWERBUFFIDS) do
- player:AddAura(v, player)
- end
- else
- for k, v in pairs(BUFFIDS) do
- player:AddAura(v, player)
- end
- end
- player:SendBroadcastMessage("|cFFFF0000You have been buffed, enjoy!|r")
- return false
- end
- end
- RegisterServerHook(18, Buff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement