okey I will go right on the problem...
As you see I want to remove a item and then add a other item... (I guess you understand) but it won't remove that item when I use it... whats wrong with the script?
Well while I ask this I can ask a other question...
How do I do to use Scarab coin as money, like: 100cc = 1 scarab coin, and when I shop I can use that scarab coin to buy items with.
Well I mean dose it change to cc, pc or gc, when I shoping with scarab coin, or do I need to make a kind of script for it?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 2275 then
doPlayerRemoveItem(cid,2275,1)
doPlayerAddItem(cid, 2229, 6)
doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL)
else
return FALSE
end
return TRUE
end
Well while I ask this I can ask a other question...
How do I do to use Scarab coin as money, like: 100cc = 1 scarab coin, and when I shop I can use that scarab coin to buy items with.
Well I mean dose it change to cc, pc or gc, when I shoping with scarab coin, or do I need to make a kind of script for it?