Imfreezing
Krossa Kapitalismen
hi boys and girls,I was woundering if it was possible to make a script that like when you use a item on another item
Example using key on a crate / box, it says Uncreating your crate , 3 , 2, 1,
then you get a random item with procentage ,
i started to trying to modifiy this old script
But couldnt put all attachment on,countdown,randomize with procentage
Thanks
Imburning
@Limos
Example using key on a crate / box, it says Uncreating your crate , 3 , 2, 1,
then you get a random item with procentage ,
i started to trying to modifiy this old script
Code:
local changes = {
[itemid] = itemid,
}
function onUse (cid, item, fromPosition, itemEx, toPosition)
if itemEx.type > 1 then
return doPlayerSendCancel(cid, "Use the key on 1 item.")
end
if changes[itemEx.itemid] then
doCreatureSay(cid,"Uncrated You found item ..item..!",19)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You uncreated "..getItemInfo(itemEx.itemid).article.." "..getItemInfo(itemEx.itemid).name.." to "..getItemInfo(changes[itemEx.itemid]).article.." "..getItemInfo(changes[itemEx.itemid]).name..".")
doTransformItem(itemEx.uid, changes[itemEx.itemid])
return true
end
end
Thanks
Imburning
@Limos
Last edited by a moderator: