• 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 Fart command!

issaim

New Member
Joined
Jul 5, 2010
Messages
101
Reaction score
2
Example : u say /fart player name player : i just farted And the player go holy shit :p

place this in Data/Talkaction.xml
XML:
<talkaction log="yes" access="5" words="/fart" script="fart.lua"/>


Lua:
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

have fun:ninja::ninja::ninja::ninja::ninja::ninja::ninja::ninja:
 
Code:
  function onSay(cid, words, param)
   
    local param2 = string.explode(param, ",")
    if(param2[1] ~= nil) then
      local pname = getPlayerByNameWildcard(param2[1])
      if(param2[2] ~= nil) then
        text = param2[2]
      end
      doCreatureSay(pname, text, TALKTYPE_SAY)
    else
      doPlayerSendCancel(cid, "Failed. Please try again.")
    end
    return TRUE

end
make them say whatever you want instead of "lol i just farted", gets boring and is pointless.. /makesay never gets boring :D
 
This board starts to suck, really. People are posting 5 lines scripts (dunno why they're doing it, all theese scripts suck). Issaim, perfection and all others - START TO MAKE SOMETHING USEFULL WITH FEATURES instead of 5 lines script. This script is 20 sec of work. It's not even worth mentioning.
 
Back
Top