- Joined
- Aug 6, 2007
- Messages
- 1,767
- Reaction score
- 35
This is one of my first released script long time ago, i dotn even know if it works for TFS if it dosen't just tell me and i'll fix it up
Begin=============
Data>Actions>Script and make a file named "obsidian knife"
and past this inside:
NOTE TO MAKE IT HARDER TO GET DUST OR LEATHERS CHANGE THIS
random = math.random(1,15)
it's 15 at the moment how hier it is how harder it is to get it!
Osbian Knife
Blessed Wooden stake
Begin=============
Data>Actions>Script and make a file named "obsidian knife"
and past this inside:
NOTE TO MAKE IT HARDER TO GET DUST OR LEATHERS CHANGE THIS
random = math.random(1,15)
it's 15 at the moment how hier it is how harder it is to get it!
Osbian Knife
Code:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 0 then
return 0
end
---------------------------------All the minotaurs--------------
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2830 or item2.itemid == 2871 or item2.itemid == 2866 or item2.itemid == 2876 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,item2.itemid+1)
doPlayerAddItem(cid,5878,1)
doSendAnimatedText(frompos,"~success~",18);
elseif item2.itemid == 2830 or item2.itemid == 2871 or item2.itemid == 2866 or item2.itemid == 2876 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,item2.itemid+1)
end
end
---------------------------------All the Lizards--------------
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 4259 or item2.itemid == 4262 or item2.itemid == 4251 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,itemid+1)
doPlayerAddItem(cid,5876,1)
doSendAnimatedText(frompos,"~success~",18);
elseif item2.itemid == 4259 or item2.itemid == 4262 or item2.itemid == 4251 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,itemid+1)
end
end
----------------------Dragon---------------------------
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 3104 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,3105)
doPlayerAddItem(cid,5877,1)
doSendAnimatedText(frompos,"~success~",18);
elseif item2.itemid == 3104 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,3105)
end
end
----------------------Dragon with other corpse--------------------------
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2844 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,3105)
doPlayerAddItem(cid,5877,1)
doSendAnimatedText(frompos,"~success~",18);
elseif item2.itemid == 2844 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,3105)
end
end
----------------------Dragon lord------------------------
random = math.random(1,15)
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,"~success~",18);
elseif item2.itemid == 2881 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2882)
end
end
----------------------behemoth------------------------
random = math.random(1,15)
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,"~success~",18);
elseif item2.itemid == 2931 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2932)
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,"~success~",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
Blessed Wooden stake
Code:
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 0 then
return 0
end
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2916 and random == 1 then
doTransformItem(item2.uid,2917)
doSendMagicEffect(topos, 12)
doPlayerAddItem(cid,5906,1)
doSendAnimatedText(frompos,"~success~",18);
elseif item2.itemid == 2916 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2917)
end
end
random = math.random(1,15)
if getPlayerLevel(cid) >= 1 then
if item2.itemid == 2956 and random == 1 then
doSendMagicEffect(topos, 12)
doTransformItem(item2.uid,2957)
doPlayerAddItem(cid,5905,1)
doSendAnimatedText(frompos,"~success~",18);
elseif item2.itemid == 2956 and random >= 2 then
doSendMagicEffect(topos, 3)
doTransformItem(item2.uid,2957)
end
end
doPlayerSendCancel(cid,"You cant make dust of this.")
return 1
end
Last edited: