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

obsidian knife problem tfs 1.2

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hi folks! I found a bug onUse a obsidian knife on a piece of marble rock and also with ice cube, check the gif below, seems it make two items instead of just one. It also is missing a feature, it is suppost to give a achievement when you sculpt a Beautiful Marble Statue, and another achievement when you sculpted five Beautiful Marble Statues.

fmCk9t.gif


Here we go the script: http://pastebin.com/91ra8KFY

How I can fix it?

Thanks for the support.
 
Change this:
Code:
 if target.itemid == 11343 then
                    effect = CONST_ME_ICEAREA
                    local gobletItem = player:addItem(_skin.newItem, _skin.amount or 1)
                    if gobletItem then
                        gobletItem:setDescription(_skin.desc:gsub('|PLAYERNAME|', player:getName()))
                    end

For this:
Code:
    if target.itemid == 11343 then
        effect = CONST_ME_ICEAREA
        target:setDescription(_skin.desc:gsub('|PLAYERNAME|', player:getName()))

In the 2 parts you see that bit of code.
 
Back
Top