• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[TFS 1.0] doCreatureExecuteTalkAction(cid, words, acces)

lord vortexx

New Member
Joined
Dec 14, 2008
Messages
92
Reaction score
3
Someone could tell me if you have any similar function to that in TFS 1.0?
doCreatureExecuteTalkAction(cid, words, acces)

It has the function
doCreatureSay (self, "!test", TALKTYPE_SAY)
that works, but it does not fire TalkAction.

Do not know much about C + + to make it triggers the Talkaction if someone can help me, would be very grateful.
 
copy your talkaction to global.lua and rename main function, example:
Code:
function sayUptime(cid, words, param)
   local uptime = getWorldUpTime()

   local hours = math.floor(uptime / 3600)
   local minutes = math.floor((uptime - (3600 * hours)) / 60)
   Player(cid):sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Uptime: " .. hours .. " hours and " .. minutes .. " minutes.")
   return false
end

now you have function which you may use in your script:
Code:
sayUptime(cid, words, param)
 
Back
Top