Shanksera
New Member
- Joined
- Sep 23, 2008
- Messages
- 379
- Reaction score
- 1
I've get a donate script with using a coin with command then you get x mln exp.
I want edit function doPlayerAddExp to doPlayerAddManaSpent(cid, mana) , so player will get x mana spent when using coin.If someone know how to make it , please post it I've trying but i had debugs.
Thanks! I rep++ if you help me.
Code:
function onSay(cid, words, param)
local lvl = getPlayerLevel(cid)
if lvl <= 100 then
experience = 40000000
expmsg = "40 million"
elseif lvl > 100 and lvl <= 200 then
experience = 25000000
expmsg = "25 million"
else
experience = 15000000
expmsg = "15 million"
end
removenugget = doPlayerRemoveItem(cid, 6527, 1)
if removenugget == 1 then
doPlayerAddExp(cid,experience)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have purchased " .. expmsg .. " experience points! Thank you for donating!")
doPlayerSendCancel(cid, "You do not have enough Coins.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
I want edit function doPlayerAddExp to doPlayerAddManaSpent(cid, mana) , so player will get x mana spent when using coin.If someone know how to make it , please post it I've trying but i had debugs.
Thanks! I rep++ if you help me.
Last edited: