- Joined
- Jun 19, 2009
- Messages
- 1,852
- Reaction score
- 5
Hello!
For some reason, Amulet of Loss in my server is unlimited... why is that?
Thanks,
For some reason, Amulet of Loss in my server is unlimited... why is that?
Thanks,
It's in itemx.xml, better edit that part or you will have problems for sure.
function onSay(cid, words, param, channel)
local shop = {
["aol"] = { id = 2173, count = 1, cost = 10000 },
["backpack"] = { id = 1988, count = 1, cost = 50 }
}
local purchase = shop[param]
if(param == "") then
doPlayerSendCancel(cid, "Command requires param.")
elseif(getPlayerMoney(cid) < purchase.cost) then
doPlayerSendCancel(cid, "You do not have enough money.")
else
doPlayerRemoveMoney(cid, purchase.cost)
doPlayerAddItem(cid, purchase.id, purchase.count)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have purchased a " .. getItemNameById(purchase.id) .. ".")
end
return true
end
Try using this Mary.
Code:function onSay(cid, words, param, channel) local shop = { ["aol"] = { id = 2173, count = 1, cost = 10000 }, ["backpack"] = { id = 1988, count = 1, cost = 50 } } local purchase = shop[param] if(param == "") then doPlayerSendCancel(cid, "Command requires param.") elseif(getPlayerMoney(cid) < purchase.cost) then doPlayerSendCancel(cid, "You do not have enough money.") else doPlayerRemoveMoney(cid, purchase.cost) doPlayerAddItem(cid, purchase.id, purchase.count) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have purchased a " .. getItemNameById(purchase.id) .. ".") end return true end
Delete <attribute key="charges" value="1"/> or set value to 0 not sure anymore xd
that will make it unlimited you are suppose to have it to 1
Nop, as far as i know it should be fine, the only probably that i might see is if you are making it with your GM that you have lots of charges, what you can do is make a monster that loots the aol, and then die with that one on, see if the problem persists. If it does then i have no idea, if it doesn't then you have a problem with your !aol script.