• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Buy demon helmet through command

Andy Man

Advanced OT User
Joined
Jun 15, 2011
Messages
1,689
Reaction score
194
Location
México
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
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
 
Back
Top