I tried searching for a mammoth sculpting script because I needed one, but I couldn't find any, so why not make one? Basically you just use an knife (since the obsidian knife is already used) on an ice cube and it changes into four different stages before becoming a full mammoth sculpture.
Use the knife (2566)
\/
Ice Cube (7441)
\/
Another stage (7442)
\/
Another stage (7444)
\/
Another stage (7445)
\/
Ice Mammoth (7446)
In data/actions/scripts/tools/icemammoth.lua:
In actions.xml:
The break chances may be very high, but I'm doing it according to TibiaWiki (Ice Mammoth - TibiaWiki - Quests, Items, Spells, and more)
If you find this very helpful, I don't mind receiving a reputation from you.
Bored scripter,
Lostboy
Use the knife (2566)

\/
Ice Cube (7441)

\/
Another stage (7442)
\/
Another stage (7444)
\/
Another stage (7445)
\/
Ice Mammoth (7446)

In data/actions/scripts/tools/icemammoth.lua:
Code:
function onUse(cid, item, frompos, item2, topos)
local chance1 = math.random(1,2) -- 50%
local chance2 = math.random(1,4) -- 25%
local chance3 = math.random(1,6) -- 17%
local chance4 = math.random(1,8) -- 13%
local chance5 = math.random(1,10) -- 10%
local effect = 3
if item2.itemid == 7441 then
if chance1 == 1 then
doSendMagicEffect(topos,effect)
doTransformItem(item2.uid,7442)
else
doSendMagicEffect(topos,effect)
doRemoveItem(item2.uid,1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You broke the ice cube.')
end
elseif item2.itemid == 7442 then
if chance2 == 1 then
doSendMagicEffect(topos,effect)
doTransformItem(item2.uid,7444)
else
doSendMagicEffect(topos,effect)
doRemoveItem(item2.uid,1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You broke the ice cube.')
end
elseif item2.itemid == 7444 then
if chance3 == 1 then
doSendMagicEffect(topos,effect)
doTransformItem(item2.uid,7445)
else
doSendMagicEffect(topos,effect)
doRemoveItem(item2.uid,1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You broke the ice cube.')
end
elseif item2.itemid == 7445 then
if chance4 == 1 then
doSendMagicEffect(topos,effect)
doTransformItem(item2.uid,7446)
else
doSendMagicEffect(topos,effect)
doRemoveItem(item2.uid,1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You broke the ice cube.')
end
else
doSendMagicEffect(getPlayerPosition(cid),2)
end
end
In actions.xml:
Code:
<action itemid="2566" event="script" value="tools/icemammoth.lua" />
The break chances may be very high, but I'm doing it according to TibiaWiki (Ice Mammoth - TibiaWiki - Quests, Items, Spells, and more)
If you find this very helpful, I don't mind receiving a reputation from you.
Bored scripter,
Lostboy
Last edited: