PureDarkSlayer
New Member
- Joined
- Apr 10, 2009
- Messages
- 62
- Reaction score
- 3
I wanted to know how I would be able to rescript my donation system from 8.4 to 8.54. My donation system is based on coins. Please help 

I wanted to know how I would be able to rescript my donation system from 8.4 to 8.54. My donation system is based on coins. Please help![]()
function onUse(cid, item, frompos, item2, topos)
if item.uid == 9999 and doPlayerRemoveItem(cid, 4351, 10) == TRUE then
if item.itemid == 1945 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
end
else
end
return 1
end
function onUse(cid, item, frompos, item2, topos)
if item.uid == 9997 and doPlayerRemoveItem(cid, 4351, 2) == TRUE then
if item.itemid == 1945 then
doPlayerSendTextMessage(cid,22,"You obtained 2 Billion and lost 2 donation coin.")
doPlayerAddExp(cid,2000000000)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 9997 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
end
return 1
end
end
true = >= 1, 0 = falseI'm pretty sure it should work.
If it doesn't, try changing return 1 to return true
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 9999 and doPlayerRemoveItem(cid, 4351, 10) == TRUE then
if item.itemid == 1945 then
if getPlayerStorageValue(cid, 11551) < 1 then
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
end
end
end
return TRUE
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 9997 and doPlayerRemoveItem(cid, 4351, 2) == TRUE then
if isInArray({1945, 1946}, item.itemid) then
doPlayerSendTextMessage(cid, 22, "You obtained 2 Billion and lost 2 donation coin.")
doPlayerAddExp(cid, 2000000000)
end
doTransformItem(item.uid, (item.itemid == 1945 and 1946 or 1945))
return TRUE
end
end