jpkulik
New Member
- Joined
- Mar 15, 2008
- Messages
- 208
- Reaction score
- 2
Hello all!
I was looking there in the forum, and i found 1 scripts of the obsidian Knife.
But is not perfect.
This one is working 100% for TFS(Mystic Spirit).I have tested.
Create a news File.LUA in:actions/tools with the name obsidian.lua
and in actions.xml add the following line:
Script:
For change the chance of the creature itens come, change
in each page..
OBS: 15 is Normal in Tibia Global.
1 is Every time.
100 is RARE!

I hope you enjoy!
Cya
I was looking there in the forum, and i found 1 scripts of the obsidian Knife.
But is not perfect.
This one is working 100% for TFS(Mystic Spirit).I have tested.
Create a news File.LUA in:actions/tools with the name obsidian.lua
and in actions.xml add the following line:
Code:
<action itemid="5908" script="tools/obsidian.lua"/>
Script:
Code:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 0 then
return 0
end
--------Behemoth--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2931 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2932)
doPlayerAddItem(cid,5893,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2931 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2932)
end
end
--------Minotaur--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2830 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2831)
doPlayerAddItem(cid,5878,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2830 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2831)
end
end
--------Minotaur Archer--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2871 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2872)
doPlayerAddItem(cid,5878,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2871 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2872)
end
end
--------Minotaur Guard--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2876 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2877)
doPlayerAddItem(cid,5878,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2876 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2877)
end
end
--------Minotaur Mage--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2866 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2867)
doPlayerAddItem(cid,5878,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2866 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2867)
end
end
--------Lizard Sentinel--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 4259 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,4260)
doPlayerAddItem(cid,5876,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 4259 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,4260)
end
end
--------Lizard Templar--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 4256 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,4257)
doPlayerAddItem(cid,5876,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 4256 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,4257)
end
end
--------Lizard Snakecharmer--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 4262 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,4263)
doPlayerAddItem(cid,5876,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 4262 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,4263)
end
end
--------Dragon--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2844 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2845)
doPlayerAddItem(cid,5877,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2844 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2845)
end
end
--------Dragon Lord--------
random = math.random(1,10)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2881 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2882)
doPlayerAddItem(cid,5948,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 2881 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2882)
end
end
--------Bone Beast--------
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 3031 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,3032)
doPlayerAddItem(cid,5925,1)
doSendAnimatedText(frompos,"",18);
elseif item2.itemid == 3031 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,3032)
end
end
doPlayerSendCancel(cid,"You cant skin this.")
return 1
end
Code:
random = math.random(1,15)
OBS: 15 is Normal in Tibia Global.
1 is Every time.
100 is RARE!

I hope you enjoy!
Cya
Last edited by a moderator: