User Tag List

Page 1 of 5 1 2 3 4 5 LastLast
Results 1 to 7 of 32

Thread: Buff Command - Eluna

  1. #1
    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

    Buff Command - Eluna

    Hello,

    I'm releasing a buff command, which is a version of my buff command I made in C++.

    Buffs-
    • Mark Of The Wild
    • Prayer Of Shadow Protection
    • Prayer Of Fortitude
    • Prayer Of Spirit
    • Greater Blessing Of Kings
    • Arcane Intellect
    • Thorns


    The command to do this is #buff


    Lua script - LINK DEAD

    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)
    Last edited by slp13at420; 12-15-2016 at 04:34 PM.
    Awards:
    LOL

  2. The Following 6 Users Say Thank You to Ghostcrawler336 For This Useful Post:


  3. #2
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,391
    XP
    3,449,104
    Level
    378
    Thanks
    889
    Thanked 1,855 Times in 1,119 Posts
    Thanks. \o/

  4. #3
    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
    Have you tested this? It looks like this would buff you no matter what you say?

  5. #4
    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 Foereaper View Post
    Have you tested this? It looks like this would buff you no matter what you say?
    I did test it ingame with #buff and it worked, it buffed me and sent the message. But other then that, I didn't test it with any other word.

  6. #5
    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
    Go in game with that script loaded and type whatever :P

  7. #6
    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 Foereaper View Post
    Go in game with that script loaded and type whatever :P
    You're right, it works with whatever word :( do you have any idea how to fix it?

  8. #7
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,391
    XP
    3,449,104
    Level
    378
    Thanks
    889
    Thanked 1,855 Times in 1,119 Posts
    Quote Originally Posted by Ghostcrawler336 View Post
    You're right, it works with whatever word :( do you have any idea how to fix it?
    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)

  9. The Following User Says Thank You to Tommy For This Useful Post:


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
  •