• 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!

new change gold system?

dragaria

New Member
Joined
Apr 11, 2010
Messages
4
Reaction score
0
hey I would like to suggest to one more change gold thing, right now we have 100 gold coins to 1 platina coin and 100 platina coins to 1 cristal coin, but what after that cristal coin? i have 100 cristal coin and it irritate me that i cant change them to a voin that is valuable like 100 cc to 1 dimond coin or something :D it vould be lots easyer to have in a bag or something in the dp then like 10*100 cristal coin

sorry for my bad english
 
/\ yeah that would solve anything, people would whine about it so much.

[/sarcasm on the first part]
 
I may add it, but you will not be able to buy anything with them in shops etc. It will just be as a cap/spot saving thing.
 
well I could have used backpacks, but if I didnt my dp was filled ;/
 
local ITEM_GOLD_INGOT, ITEM_GOLD_NUGGET = 9971, 2157
local coins = {
[ITEM_GOLD_COIN] = {
to = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_YELLOW
},
[ITEM_PLATINUM_COIN] = {
from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_LIGHTBLUE
},
[ITEM_CRYSTAL_COIN] = {
from = ITEM_PLATINUM_COIN, to = ITEM_GOLD_INGOT, effect = TEXTCOLOR_TEAL
},
[ITEM_GOLD_INGOT] = {
from = ITEM_CRYSTAL_COIN, to = ITEM_GOLD_NUGGET, effect = TEXTCOLOR_YELLOW
},
[ITEM_GOLD_NUGGET] = {
from = ITEM_GOLD_INGOT, effect = TEXTCOLOR_YELLOW
}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
local coin = coins[item.itemid]
if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM) or not coin) then
return false
elseif(coin.to and item.type == ITEMCOUNT_MAX) then
doChangeTypeItem(item.uid, item.type - item.type)
doPlayerAddItem(cid, coin.to, 1)
doSendAnimatedText(fromPosition, "$$$", coins[coin.to].effect)
elseif(coin.from) then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX)
doSendAnimatedText(fromPosition, "$$$", coins[coin.from].effect)
end
return true
end

Credits goes to Cykotitan

Add this script at changegold.lua
 
Back
Top