Bayue
http://s.click.aliexpress.com/e/jMb2Nju33
- Joined
- May 10, 2013
- Messages
- 46
- Reaction score
- 0
I want my items to stack in my backpack automatically, like when I change gold it stacks with together etc. Is there a way to fix this?
Also when I try to buy aol or bless with the command "!aol" or "!bless" It says I still don't have enough money. I have changed it so it's alright but the problem is that it only detects gold coins, like when I have platinums or cyrstal coins it wont buy!
Here's the code for both commands.
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You purchased an amulet of loss.')
else
doPlayerSendCancel(cid, "You need 10000 gold coins to purchase an amulet of loss.")
end
return TRUE
end
-----------------------------------------------------------------------------------------------
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You are already blessed.')
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You have successfully been blessed.')
else
doPlayerSendCancel(cid, "You need 50000 gold coins to purchase all the blessings.")
end
end
return 1
end
----------
Thanks in advance!
Also when I try to buy aol or bless with the command "!aol" or "!bless" It says I still don't have enough money. I have changed it so it's alright but the problem is that it only detects gold coins, like when I have platinums or cyrstal coins it wont buy!
Here's the code for both commands.
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You purchased an amulet of loss.')
else
doPlayerSendCancel(cid, "You need 10000 gold coins to purchase an amulet of loss.")
end
return TRUE
end
-----------------------------------------------------------------------------------------------
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You are already blessed.')
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'You have successfully been blessed.')
else
doPlayerSendCancel(cid, "You need 50000 gold coins to purchase all the blessings.")
end
end
return 1
end
----------
Thanks in advance!