• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Can some one Hep me with a Quick Problem plzzz? i'll Rep you!!

Death Bot

Map Editor
Joined
Mar 25, 2009
Messages
36
Reaction score
0
Location
Florida
How do i change 100 Crystal Coin's, into 1 gold Nugget....
i want it to be like how 1 Gold coin turns into a Platinum Coin so now you know what i mean Please Help me... ill Rep you!!
 
Go to your actions and find the script for changing 100 platinum coins to 1crystal. Just try to make something simuliar to that, only replace ids, so it would be crystal coins to golden nuggets. I dont think its that hard.
 
Go to your actions and find the script for changing 100 platinum coins to 1crystal. Just try to make something simuliar to that, only replace ids, so it would be crystal coins to golden nuggets. I dont think its that hard.
This is my ChangeGold File,
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then
doChangeTypeItem(item.uid, item.type - item.type)
doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1)
doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_PLATINUMBLUE)
elseif item.itemid == ITEM_PLATINUM_COIN and item.type == ITEMCOUNT_MAX then
doChangeTypeItem(item.uid, item.type - item.type)
doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, 1)
doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL)
elseif item.itemid == ITEM_PLATINUM_COIN and item.type < ITEMCOUNT_MAX then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, ITEM_GOLD_COIN, ITEMCOUNT_MAX)
doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_YELLOW)
elseif item.itemid == ITEM_CRYSTAL_COIN then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, ITEM_PLATINUM_COIN, ITEMCOUNT_MAX)
doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_PLATINUMBLUE)
else
return FALSE
end
return TRUE
end

WHAT DO I ADD?.....
 
Back
Top