• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved autoloot

leandroluck

New Member
Joined
Dec 24, 2010
Messages
104
Reaction score
1
edit by me
Code:
        local itemName = tonumber(split[2]) and itemType:getName() or item
        local size = 0
        for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do
            local storage = player:getStorageValue(i)
           

            if size == AUTO_LOOT_MAX_ITEMS and not player:isVip() then
            player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "free teste.")
            else
            if size == AUTO_LOOT_MAX_ITEMSvip and player:isVip() then
            player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "vip teste")
            end
                          end


the script I edited does not show the messages
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "vip teste")
or
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "free teste.")




original
Code:
        local itemName = tonumber(split[2]) and itemType:getName() or item
        local size = 0
        for i = AUTOLOOT_STORAGE_START, AUTOLOOT_STORAGE_END do
            local storage = player:getStorageValue(i)
            if size == AUTO_LOOT_MAX_ITEMS then
                player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "The list is full, please remove from the list to make some room.")
                break
            end
 
Lua:
    if size == AUTO_LOOT_MAX_ITEMS and not player:isVip() then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "free teste.")
    elseif size == AUTO_LOOT_MAX_ITEMSvip and player:isVip() then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "vip teste")
    end
 
Back
Top