• 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!

TalkAction Spy system

Andy Man

Advanced OT User
Joined
Jun 15, 2011
Messages
1,689
Reaction score
194
Location
México
This will show you what the player has in his set and backpack, just if he's online,

Lua:
function getItemsInContainer(cont, sep)
    local text = ""
    local tsep = ""
    local count = ""
    for i=1, sep do
        tsep = tsep.."-"
    end
    tsep = tsep..">"
    for i=0, getContainerSize(cont.uid)-1 do
        local item = getContainerItem(cont.uid, i)
        if isContainer(item.uid) == FALSE then
            if item.type > 0 then
                count = "("..item.type.."x)"
            end
            text = text.."\n"..tsep..getItemNameById(item.itemid).." "..count
        else
            if getContainerSize(item.uid) > 0 then
                text = text.."\n"..tsep..getItemNameById(item.itemid)
                text = text..getItemsInContainer(item, sep+2)
            else
                text = text.."\n"..tsep..getItemNameById(item.itemid)
            end
        end
    end
    return text
end
 
function onSay(cid, words, param, channel)
    if(param == "") then
        doPlayerSendCancel(cid, "Necesitas poner un nombre.")
        return TRUE
    end
    local slotName = {"Head", "Amulet", "Backpack", "Armadura", "Right Hand", "Left Hand", "Legs", "Feet", "Ring", "Arrow Slot"}
    local player = getPlayerByNameWildcard(param)
    if isPlayer(player) == TRUE then
        local text = getPlayerName(player).."'s Equip: "   
        for i=1, 10 do
            text = text.."\n\n"
            local item = getPlayerSlotItem(player, i)
            if item.itemid > 0 then
                if isContainer(item.uid) == TRUE then
                    text = text..slotName[i]..": "..getItemNameById(item.itemid)..getItemsInContainer(item, 1)
                else
                    text = text..slotName[i]..": "..getItemNameById(item.itemid)
                end
            else
                text = text..slotName[i]..": Vacio"
            end
        end
        doShowTextDialog(cid, 6579, text)
    else
        doPlayerSendCancel(cid, "This player isn't online.")
    end
 return TRUE
end
 
This made me laugh.


I don't see a purpose for this script.

Maybe the GOD gave someone CM, and the CM gave items for his other chart, but he denies it, so instead of login into his account he just checks what he has, ohhh yeah how he has this item if it's impossible to get it, demoted!
 
This isn't made by you, atleast put the credits of the owner (dixon)

Maybe the GOD gave someone CM, and the CM gave items for his other chart, but he denies it, so instead of login into his account he just checks what he has, ohhh yeah how he has this item if it's impossible to get it, demoted!

data/logs/talkactions?
 
Who said I did it? I just extracted it from my server, and in my server theirs no credits ;/

I am not blaming at you, I'm just saying that you should post the credits of the one who made it, besides, its a cool script :')
 
I am not blaming at you, I'm just saying that you should post the credits of the one who made it.

So I just should guess for the creator's name? I don't have any idea who did it, I'm just extracting it :p
 
Back
Top