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

Solved Player cannot buy xxx thing!

70011983

Ners
Joined
Nov 21, 2011
Messages
354
Solutions
1
Reaction score
56
Location
Croatia
Well,after running my server (got some testers too :DD) I'm stuck to a problem,a player can buy bless/aol by the command !bless/!aol,but,2 of the players came to a problem,once they died (after some time) it happent that when they would use !aol/!bless to get aol/bless,it would say they do not have enought cash even if they have the cash,cap and space (for aol)
If you understand me,lol..it's weird :p Idk what it is...
Im using cryingdamson 0.3.6 (8.60) V5 <--if this can be the problem
or can it be the "changegold script"? I made it so you can change crystal coins in gold ingots and the opposite too..hope for an answer soon..

BTW:Even if they die again,or after restarting the server,they keep getting the message "You don't have enought cash for xxx" even if they have the cash..
 
Well,i removed the thing in changegold and it works now...so,anyone got a changegold script /crystal->ingot so ti works and doesn't cause that kind of problems?



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_TEAL
},
[ITEM_CRYSTAL_COIN] = {
from = ITEM_PLATINUM_COIN, to = ITEM_GOLD_INGOT, effect = TEXTCOLOR_TEAL
},
[ITEM_GOLD_INGOT] = {
from = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_YELLOW
}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then
return false
end

local coin = coins[item.itemid]
if(not coin) then
return false
end

if(coin.to ~= nil 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 ~= nil) then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX)
doSendAnimatedText(fromPosition, "$$$", coins[coin.from].effect)
end
return true
end
Was like this (i reedited it in the files)
 
I ment the talkaction script. But do you mean they get the message: "You don't have enought cash for xxx" when they have only gold ingots?
Then add this to the gold ingot in items.xml
XML:
<attribute key="worth" value="1000000" />
 
Lol,had 1 of "0" extra,well thanks again..I think it's fixed now..

- - - Updated - - -

BTW Limos,i made it so runes are infinite,but if I stack 2 or more,it will use them until it comes at the last one,which stays infinite..how I fix it?
 
Last edited:
Back
Top