R3ignlasting
Well-Known Member
- Joined
- Nov 20, 2008
- Messages
- 1,293
- Reaction score
- 82
Okay guys, I'm a little crusty from scripting, so, this was a quick thing I whipped up. You'll be seeing some more scripts from me lately. Also, all of my scripts, will be tagged with 'R3ignlasting' so whenever you search that tag, you'll get a list of all my scripts. Anyway, let's get on with the script. Here it is.
That's just one script from me. Also, just to let you guys know. I forgot a few things about scripting, and I read Ragheed's quick tutorial, and it got me back where I was. In the intermediate levels of scripting. I thank you, and no more tutorials for me, I am going to do all natural scripting from now on without any help, hopefully.
Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid,15000) == 1 then
doPlayerAddItem(cid,2173,1)
doPlayerSendTextMessage(cid,22,"You've just spent 15,000 gold for an Amulet of Loss.")
else
doPlayerSendCancel(cid,"You don't have enough money to buy that Amulet of Loss.")
doSendMagicEffect(getPlayerPosition(cid),2)
end
return TRUE
end
That's just one script from me. Also, just to let you guys know. I forgot a few things about scripting, and I read Ragheed's quick tutorial, and it got me back where I was. In the intermediate levels of scripting. I thank you, and no more tutorials for me, I am going to do all natural scripting from now on without any help, hopefully.
Last edited: