XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Loot = Sound

  1. #11
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    @Elizabeth
    This one should alert on every item drop
    Code:
    local items = {"royal helmet", "shard"}
    
    LootMessageProxy.OnReceive("", function(proxy, message)
        if (table.find(items, string.lower(message)) then
            alert()
        end
    end)
    22:08 XenoScript Error:
    Error: ')' expected near 'then'
    This is an error with user-input and should not be reported as a bug with XenoBot.

    What wrong with this script?:
    if (table.find(items, string.lower(message)) then

  2. #12
    Moderator Elvang's Avatar
    Join Date
    Dec 2010
    Location
    B.C. Canada
    Posts
    1,365
    Mentioned
    104 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    22:08 XenoScript Error:
    Error: ')' expected near 'then'
    This is an error with user-input and should not be reported as a bug with XenoBot.

    What wrong with this script?:
    if (table.find(items, string.lower(message)) then
    Count the brackets, there is three opening brackets and only two closing brackets.

  3. #13

    Join Date
    Jan 2014
    Posts
    183
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    22:08 XenoScript Error:
    Error: ')' expected near 'then'
    This is an error with user-input and should not be reported as a bug with XenoBot.

    What wrong with this script?:
    if (table.find(items, string.lower(message)) then
    Reading errors is really important and really not that hard. The error message is telling you exacly what is going on.

  4. #14
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    @kamilqq @Elvang

    I tries and don't work...

  5. #15
    Lifetime Subscriber Sheradial's Avatar
    Join Date
    Apr 2015
    Posts
    165
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elizabeth View Post
    @kamilqq @Elvang

    I tries and don't work...
    Code:
    local items = {"royal helmet", "shard"}
    
    LootMessageProxy.OnReceive("", function(proxy, message))
        if (table.find(items, string.lower(message))) then
            alert()
        end
    end)


  6. #16
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sheradial View Post
    Code:
    local items = {"royal helmet", "shard"}
    
    LootMessageProxy.OnReceive("", function(proxy, message))
        if (table.find(items, string.lower(message))) then
            alert()
        end
    end)
    Ok, now added, but script still dont work. I just looting Royal Helmet, but sound didnt open ;s

  7. #17
    Lifetime Subscriber
    Join Date
    Aug 2012
    Location
    Stockholm, Sweden
    Posts
    428
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Are you playing OT ?
    Belden's Free Scripts
    Belden's Quest Scripts

    Bought Lifetime Subscription from Fractal
    Bought TeamSpeak 3 Service from Sikkness
    Bought Leveling Service from Y2Quakepc2

  8. #18
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    @Elizabeth
    I fked up, try this one
    Code:
    local items = {"royal helmet", "shard"}
    
    LootMessageProxy.OnReceive("", function(proxy, message))
        for i = 1, #items do
            if (string.find(string.lower(message), string.lower(items[i]))) then
                alert()
            end
        end
    end)

  9. #19
    Elizabeth's Avatar
    Join Date
    Mar 2016
    Location
    Poland
    Posts
    72
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    @Elizabeth
    I fked up, try this one
    Code:
    local items = {"royal helmet", "shard"}
    
    LootMessageProxy.OnReceive("", function(proxy, message))
        for i = 1, #items do
            if (string.find(string.lower(message), string.lower(items[i]))) then
                alert()
            end
        end
    end)
    Finally work!
    Thank U my master :P.

Posting Permissions

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