Wycinanie słonika z ice cube za pomoc± ob knife

PRzeSteR

Wycinanie słonika z ice cube za pomoc± ob knife
  twój stary to orc



  A nie łatwiej zedytować istniej±cy w tfs'ie plik od obsidiana ?

Robiłem to dawno i nie pamiętam już jak dokładnie działał. Jednak wiem iż działa na pewno..
Kod: local config = {
        level = 2
}

local SKINS = {
        -- Minotaurs
        [2830] = {25000, 5878},
        [2871] = {25000, 5878},
        [2866] = {25000, 5878},
        [2876] = {25000, 5878},
        [3090] = {25000, 5878},

        -- Lizards
        [4259] = {25000, 5876},
        [4262] = {25000, 5876},
        [4256] = {25000, 5876},

        -- Dragons
        [3104] = {25000, 5877},
        [2844] = {25000, 5877},

        -- Dragon Lords
        [2881] = {25000, 5948},

        -- Behemoths
        [2931] = {25000, 5893},

        -- Bone Beasts
        [3031] = {25000, 5925},

        -- Ice cube
          -- Ice Mammoth
        [7441] = {15000, 7442},
        [7442] = {25000, 7444},
        [7444] = {25000, 7445},
        [7445] = {25000, 7446}

local id = {3976, 2148, 2152, 2160}
local ilosc = {5, 100, 10, 1}
local szansa = {20, 10, 5, 1}
local text = {"I like how I did not gut the fish...", "God again these fish?", "only does it.."}

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if(getPlayerLevel(cid) < config.level) then
                doPlayerSendCancel(cid, "You have to be at least Level " .. config.level .. " to use this tool.")
                return true
        end

        if (itemEx.itemid == 2667) and (itemEx.actionid == 142) then
        for i = 1, #id do
          if math.random(1, 100) < szansa[i] then
            doPlayerAddItem(cid, id[i], math.random(1, ilosc[i]), true)
          end
        end
        doCreatureSay(cid, text[math.random(1, #text)], 19)
        doRemoveItem(itemEx.uid, 1)
        return true
        elseif (itemEx.itemid == 2667) then
          doCreatureSay(cid, "what? is this fish old?", 19)
        end

        local skin = SKINS[itemEx.itemid]
        if(not skin) then
                doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
                return true
        end

        local random, effect = math.random(1, 100000), CONST_ME_GROUNDSHAKER
        if(random <= skin[1]) then
                doPlayerAddItem(cid, skin[2], 1)
        elseif(skin[3] and random >= skin[3]) then
                doPlayerAddItem(cid, skin[4], 1)
        else
                effect = CONST_ME_POFF
        end

        doSendMagicEffect(toPosition, effect)
        if itemEx.itemid < 7441 then
        doTransformItem(itemEx.uid, itemEx.itemid + 1)
        else
        doRemoveItem(cid,itemEx.uid,1)
        end
        return true
end Aha tylko ten mój skrypt też ¶wiezo wyłowione ryby rozpruwał więc jak co¶ to usun±ć wystarczy
Kod:         if (itemEx.itemid == 2667) and (itemEx.actionid == 142) then
        for i = 1, #id do
          if math.random(1, 100) < szansa[i] then
            doPlayerAddItem(cid, id[i], math.random(1, ilosc[i]), true)
          end
        end
        doCreatureSay(cid, text[math.random(1, #text)], 19)
        doRemoveItem(itemEx.uid, 1)
        return true
        elseif (itemEx.itemid == 2667) then
          doCreatureSay(cid, "what? is this fish old?", 19)
        end I będzie ¶migał z samymi kostkami lodu.
Copyright (c) 2009 PRzeSteR | Powered by Wordpress. Fresh News Theme by WooThemes - Premium Wordpress Themes.