I am a new Scripter... NewbieD)
Sell key i think everyone know it
Go To Data/Actions/scripts/ and make a new text and add this
then go To Actions/Actions
Note:to add more items add this line
don't forget to change the Id and the Money
To Change Money . Change This Line
Sry for my English
Sell key i think everyone know it
Go To Data/Actions/scripts/ and make a new text and add this
Code:
function onUse(cid, item, toPosition, itemEx, fromPosition)
local place = getPlayerPosition(cid)
if itemEx.itemid == 2464 then
doRemoveItem(itemEx.uid)
doPlayerAddMoney(cid, 10000)
doSendMagicEffect(place, 14)
doSendAnimatedText(getPlayerPosition(cid), "$$", 15)
elseif itemEx.itemid == 2465 then
doRemoveItem(itemEx.uid)
doPlayerAddMoney(cid, 10000)
doSendMagicEffect(place, 14)
doSendAnimatedText(getPlayerPosition(cid), "$$", 15)
end
end
Code:
<action itemid="2091" script="test.lua"/>
Note:to add more items add this line
Code:
elseif itemEx.itemid ==[COLOR="#B22222"] 2465[/COLOR] then
doRemoveItem(itemEx.uid)
doPlayerAddMoney(cid, 10000)
doSendMagicEffect(place, 14)
doSendAnimatedText(getPlayerPosition(cid), "$$", 15)
To Change Money . Change This Line
Code:
doPlayerAddMoney(cid, [COLOR="#FF0000"]10000[/COLOR])
Sry for my English