User Tag List

Page 2 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 8 to 14 of 32

Thread: Buff Command - Eluna

  1. #8
    Original Poster
    Epic Member Ghostcrawler336's Avatar
    Join Date
    Jul 2013
    Location
    United States
    Posts
    268
    XP
    5,101
    Level
    21
    Thanks
    35
    Thanked 86 Times in 34 Posts
    Quote Originally Posted by Tommy View Post
    You don't have the other methods in the if statement:

    Code:
    	
    
    --[[
        - Developer(s): Ghostcrawler336
        - Thanks to: Tommy && Laurea
        - Complete: %100
        - ScriptName: 'Buff Command'
        - Comment: N/A
    ]]--
         
         
    function Buffcommand(event, player, msg, _, 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
    
    RegisterServerHook(18, Buffcommand)
    Oh I see, I actually had it written that way at first... but thought it looked wrong... But thank you!

  2. #9
    Founder <span style='color: #FF4500'>Foereaper</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    926
    XP
    38,862
    Level
    60
    Thanks
    125
    Thanked 329 Times in 156 Posts
    Move the return false to inside the if statement, else you won't be able to say anything at all in game

  3. #10
    Exalted Member Noven's Avatar
    Join Date
    Jan 2014
    Location
    Norway.
    Posts
    178
    XP
    108,988
    Level
    100
    Thanks
    44
    Thanked 8 Times in 8 Posts
    I get this; attempt to call global RegisterServerHook ( a nil value)

    When I try to use RegisterServerEvent, I do not get any errors when I reload, but nothing happens when I type #buff

  4. #11
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Haha, the script doesnt have a register :D
    Use RegisterPlayerEvent

    We separated the player events and server events and so on.
    Chat is player event. (ID 18)

  5. #12
    Exalted Member Noven's Avatar
    Join Date
    Jan 2014
    Location
    Norway.
    Posts
    178
    XP
    108,988
    Level
    100
    Thanks
    44
    Thanked 8 Times in 8 Posts
    Still nothing :s

    - - - Updated - - -

    AddAura a nil value

  6. #13
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,859
    XP
    13,487
    Level
    35
    Thanks
    95
    Thanked 591 Times in 418 Posts
    Update eluna?

  7. #14
    Exalted Member Noven's Avatar
    Join Date
    Jan 2014
    Location
    Norway.
    Posts
    178
    XP
    108,988
    Level
    100
    Thanks
    44
    Thanked 8 Times in 8 Posts
    It's just a few weeks since I compiled my repack with eluna :s

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •