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

[10.77] TFS 1.1 - Cast System

urielisordia

New Member
Joined
Feb 19, 2010
Messages
10
Reaction score
2
THgOamP.png


Downloads:

TFS 1.1 (v 10.77) - Download | Projeto
Executável 32 bits - Download | Scan
Executável 64 bits - Download | Scan

Cast System:
Execute query in DB:
SQL:
CREATE TABLE IF NOT EXISTS `live_casts` (`player_id` int(11) NOT NULL, `cast_name` varchar(255) NOT NULL, `password` boolean NOT NULL DEFAULT false, `description` varchar(255), `spectators` smallint(5) DEFAULT 0, UNIQUE KEY `player_id_2` (`player_id`), FOREIGN KEY (`player_id`) REFERENCES `players` (`id`) ON DELETE CASCADE) ENGINE=InnoDB;

Add files in data/talkactions/scripts:

start_cast.lua
Lua:
function onSay(cid, words, param)
local player = Player(cid)
if player:startLiveCast(param) then
    player:sendTextMessage(MESSAGE_INFO_DESCR,"You have started casting your gameplay.")
else
    player:sendCancelMessage("You're already casting your gameplay.")
end
return false
end

stop_cast.lua
Lua:
function onSay(cid, words, param)
local player = Player(cid)
if player:stopLiveCast(param) then
    player:sendTextMessage(MESSAGE_INFO_DESCR,"You have stopped casting your gameplay.")
else
    player:sendCancelMessage("You're not casting your gameplay.")
end
return false
end

data/talkactions/talkactions.xml
XML:
<talkactionwords="!cast"separator=" "script="start_cast.lua"/><talkactionwords="!stopcast"script="stop_cast.lua"/>

Adv:
You need to open port 7173

Créditos:
marksamman - TFS
djarek - Cast System
Bruno Minervino - Atualizações
 

Attachments

Last edited by a moderator:
I would like to warn that I haven't finished the casting system yet - it's still quite experimental and I'm currently waiting for the official release of TFS 1.1 to start reworking some internal server stuff but I hope I'll be able to finally deliver it for for v1.2. If you decide to use this and you run into any bugs with the casting system, please let me know (preferably on GitHub).
 
I would like to warn that I haven't finished the casting system yet - it's still quite experimental and I'm currently waiting for the official release of TFS 1.1 to start reworking some internal server stuff but I hope I'll be able to finally deliver it for for v1.2. If you decide to use this and you run into any bugs with the casting system, please let me know (preferably on GitHub).

Do you have any working for TFS 1.0?
 
Code:
CREATE TABLE IF NOT EXISTS `live_casts` (
  `player_id` int(11) NOT NULL,
  `cast_name` varchar(255) NOT NULL,
  `password` boolean NOT NULL DEFAULT false,
  `description` varchar(255),
  `spectators` smallint(5) DEFAULT 0,
  UNIQUE KEY `player_id_2` (`player_id`),
  FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB;
The qurey should work correct.
 
Last edited by a moderator:
Your chars group_id must be 3 and account type 5
 
could you upload the 64bit to a different site like megafire or speedyshare I cannot download off the site its on, my net is weird about it

anyone please? upload it on a direct site. Meaning the site downloads it to my computer directly. The site the 32bit and 64bit downloads are on is not direct.
 
Last edited by a moderator:
i dont get about these servers why arent any of the files here.. like every other one lol..

nevermind my bad
 
Last edited by a moderator:
plis file complete cast_start / cast_stop plsss i have ssue

why no work offlinetrain?
 
Last edited by a moderator:
where i can add this
CREATE TABLE IF NOT EXISTS `live_casts` (
`player_id` int(11) NOT NULL,
`cast_name` varchar(255) NOT NULL,
`password` boolean NOT NULL DEFAULT false,
`description` varchar(255),
`spectators` smallint(5) DEFAULT 0,
UNIQUE KEY `player_id_2` (`player_id`),
FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB;


at war.sa3b
or what?
 
where i can add this
CREATE TABLE IF NOT EXISTS `live_casts` (
`player_id` int(11) NOT NULL,
`cast_name` varchar(255) NOT NULL,
`password` boolean NOT NULL DEFAULT false,
`description` varchar(255),
`spectators` smallint(5) DEFAULT 0,
UNIQUE KEY `player_id_2` (`player_id`),
FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB;


at war.sa3b
or what?

To your database file .sql
 
Back
Top