XRobin
Beginner Mapper/Spriter
- Joined
- Nov 13, 2008
- Messages
- 99
- Reaction score
- 0
Screenshot:
Script:
Regards,
XRobin
------
Credits : Shawak
Script:
Lua:
local cost = 1000000
local newItem = {7388, 1}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, cost) == FALSE then
doPlayerSendTextMessage(cid, 26, "You need "..cost.." gold coins for "..newItem[2].."x "..getItemNameById(newItem[1])..".")
doSendMagicEffect(getCreaturePosition(cid), 2)
return TRUE
end
if item.itemid == 1945 then
doTransformItem(item.uid, 1946)
else
doTransformItem(item.uid, 1945)
end
doPlayerAddItem(cid, newItem[1], newItem[2])
doPlayerSendTextMessage(cid, 22, "You bought "..newItem[2].."x "..getItemNameById(newItem[1]).." for "..cost..".")
return TRUE
end
Regards,
XRobin
------
Credits : Shawak
Last edited: