[Talkaction] !aol - !backpack
Page 1 of 1
[Talkaction] !aol - !backpack
First open up talkactions.xml in data/talkactions and add
then goto data/talkactions/scripts/
Create 2 new files 1 called backpack.lua and 1 called aol.lua.
place this in backpack.lua:
Ok now open aol.lua and place this in it:
- Code:
<talkaction words="!backpack" script="backpack.lua" />
<talkaction words="!aol" script="aol.lua" />
then goto data/talkactions/scripts/
Create 2 new files 1 called backpack.lua and 1 called aol.lua.
place this in backpack.lua:
- Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 100) == 1 then
doPlayerAddItem(cid, 1988, 1)
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
Ok now open aol.lua and place this in it:
- Code:
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == 1 then
doPlayerAddItem(cid, 2173, 1)
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
Zatjin- Administrator
- Profession :
- Mapper
Posts : 65
Reputation : 2
Join date : 2011-12-20
Age : 25
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Nov 05, 2013 9:57 am by ftcyber
» heyyy
Tue Jul 02, 2013 9:44 am by Amiroslo
» Emporia - Global map by 5mok3 [8.6x]
Tue Feb 05, 2013 5:39 am by elsab3
» Information! This is a must read!
Sat Jan 28, 2012 6:28 am by Zatjin
» Which world are/were you playing in?
Thu Jan 26, 2012 4:18 pm by Zatjin
» How to make a proper thread (APPLYING)
Thu Jan 26, 2012 3:23 pm by Zatjin
» [Sweden][8.6] Quzed.TK BrandNEW RL Server
Thu Jan 26, 2012 2:27 pm by Cypher
» Inactive!
Thu Jan 26, 2012 2:24 pm by Cypher
» League of Legends (LoL)
Wed Jan 18, 2012 8:22 am by FreshM
» Blazing RPG - We are in a need of a team!
Wed Jan 18, 2012 4:24 am by Zatjin