Well this is my first script I made,
How does this script works?
When you say !demonhelmet if you have 100cc it will give you a demonhelmet and it will say you Congratulations and if you don't have 100cc then it will say You do not have 100cc.
In talkactions.xml
talkactions-scripts, Copy and paste a .lua document and name it demonhelmet and paste this
How does this script works?
When you say !demonhelmet if you have 100cc it will give you a demonhelmet and it will say you Congratulations and if you don't have 100cc then it will say You do not have 100cc.
In talkactions.xml
Code:
<talkaction words="!demonhelmet" script="demonhelmet.lua"/>>
talkactions-scripts, Copy and paste a .lua document and name it demonhelmet and paste this
Code:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,2160,100) then
doPlayerAddItem(cid,2493,1)
doPlayerSendTextMessage(cid,21,"Congratulations !")
doCreatureSay(cid, "!demonhelmet", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You do not have 100cc.')
end