Hi guys.
I got this script and wondering if somone could add some effect when buying, and maybe a text will come up so u see that u bought the item.
And dont give me another script, just the same as i got but changed , cuz this is the only script that are working
Thanks!
I got this script and wondering if somone could add some effect when buying, and maybe a text will come up so u see that u bought the item.
And dont give me another script, just the same as i got but changed , cuz this is the only script that are working
Thanks!
Code:
local Cost = 6000
local RuneId = 2268
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, Cost) == 1 then
backpack = doPlayerAddItem(cid, 2003, 1)
for i = 1, 20 do
doAddContainerItem(backpack, RuneId, 1)
end
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return 1
end