Majster12
Member
- Joined
- Feb 20, 2009
- Messages
- 134
- Solutions
- 1
- Reaction score
- 16
TFS 1.2
pileofbones.lua
Code:
function onUse(player, item, position, fromPosition, toPosition)
local position = getCreaturePosition(cid)
local chance = math.random(1, 30)
if chance <= 28 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You ransack the pile but fail to find any useful parts.")
doTransformItem(item.uid, 22514)
doSummonCreature("Guzzlemaw", position)
elseif chance == 29 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Amidst the pile of various bones you find a large, hollow part, similar to a pipe.")
doPlayerAddItem(cid, 22389)
doTransformItem(item.uid, 22514)
elseif chance == 30 then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a mouthpiece for a horn.")
doPlayerAddItem(cid, 22391)
doTransformItem(item.uid, 22514)
end
end
compat.lua
Code:
http://pastebin.com/nYaD1iku