tiddpd
PHP Scripter
- Joined
- Apr 16, 2008
- Messages
- 331
- Reaction score
- 0
This command cracks me up everytime I use it, because the players are all like 'wtf?'. What it does is makes the target say "lol i totally just farted". You can make it say somethin else of course, but here it is:
How to use: /fart <player name>
this goes in talkactions.xml (of course it doesnt half to be access 5)
and name this fart.lua and put it in the scripts folder
How to use: /fart <player name>
this goes in talkactions.xml (of course it doesnt half to be access 5)
Code:
<talkaction log="yes" access="5" words="/fart" script="fart.lua"/>
and name this fart.lua and put it in the scripts folder
Code:
function onSay(cid, words, param)
if(param == "") then
return TRUE
end
local target = getCreatureByName(param)
local playerpos = getPlayerPosition(target)
doCreatureSay(target, 'lol i totally just farted', 1, playerpos)
return TRUE
end