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

komendy goda

eXekuTor1221

New Member
Joined
Jan 21, 2009
Messages
27
Reaction score
2
dawno nie bawilem sie w tworzenie serwera dzisiaj sciagnalem i odpalilem tfsa pod 10.77 i wiekszosc komend ktore pamietam nie dzialaja, podajcie mi wiekszosc komend, na tworzenie potworow i na tworzenie itemow bo nic nie dziala :< z gory dzieki xd
 
wlasnie sprawdzalem ale komendy takie jak /m , /i nie dzialaja, /t , /goto , /c , /a , dzialaja :<
 
/ban
Wiem że ta komenda działa(byłem GM na serwerze pod 10.77).
 
W phpmyadmin daj postaci group_id 3.
 
Odświeżę i dołączę się do pytania. Czemu komenda /i nie działa? group_id=3 ustawione


Code:
function onSay(player, words, param)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end

    local split = param:split(",")

    local itemType = ItemType(split[1])
    if itemType:getId() == 0 then
        itemType = ItemType(tonumber(split[1]))
        if itemType:getId() == 0 then
            player:sendCancelMessage("There is no item with that id or name.")
            return false
        end
    end

    local count = tonumber(split[2])
    if count ~= nil then
        if itemType:isStackable() then
            count = math.min(10000, math.max(1, count))
        elseif not itemType:hasSubType() then
            count = math.min(100, math.max(1, count))
        else
            count = math.max(1, count)
        end
    else
        count = 1
    end

    local result = player:addItem(itemType:getId(), count)
    if result ~= nil then
        if not itemType:isStackable() then
            if type(result) == "table" then
                for _, item in ipairs(result) do
                    item:decay()
                end
            else
                result:decay()
            end
        end
        player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
    end
    return false
end
 
Back
Top