- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Hello!
How can I remake this script to mod?
How can I remake this script to mod?
Code:
local t = {
[8887] = 7884,
[2501] = 11296,
[8886] = 11295,
[8885] = 11350,
[2300] = 2298,
[2539] = 8908,
[9931] = 11113,
[7886] = 11114,
[9932] = 11234
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local i = t[itemEx.itemid]
if i then
doRemoveItem(item.uid)
doTransformItem(itemEx.uid, i)
doCreatureSay(cid, getItemNameById(i), TALKTYPE_ORANGE_1)
return true
end
end