ond
Veteran OT User
I wanna have this script so I can buy runes with it instead of manas.
Code:
P.S! This doesn't work at the moment.
Code:
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local container = 0
local cost = 5000
local potion_id = 2268
local backpack_id = 2000
if(item.itemid == 1945) then
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
doTransformItem(item.uid, item.itemid+1)
container = doPlayerAddItem(cid, backpack_id, 1)
for i = 1, 20 do
doAddContainerItem(container, potion_id)
end
else
doPlayerSendCancel(cid,"Sorry, you don't have enough money.")
end
elseif(item.itemid == 1946) then
doTransformItem(item.uid, item.itemid-1)
end
return TRUE
end
P.S! This doesn't work at the moment.