• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Was wondering if anyone can help me make a 2.4.3 buff in Eluna

Status
Not open for further replies.

Tommy

Founder
For one he never registered the event. So, it wouldn't work at all regardless. Here is the updated part:

Code:
local function BuffCommand(event, player, msg, Type, lang)
    if(msg:lower() == "#buff") then
        player:AddAura(48074, player)
        player:AddAura(48170, player)
        player:AddAura(43223, player)
        player:AddAura(36880, player)
        player:AddAura(467, player)
        player:AddAura(48469, player)
        player:AddAura(48162, player)
        player:SendBroadcastMessage("You have been buffed, enjoy!")
    end
    return false
end

RegisterPlayerEvent(18, BuffCommand)
 

Foereaper

Founder
The above would bug out and not allow any messages to be sent at all. You need to move the return to inside the if statement.
 
Status
Not open for further replies.
Top