Yamaken
Pro OpenTibia Developer
- Joined
- Jul 27, 2013
- Messages
- 534
- Solutions
- 4
- Reaction score
- 431
Now i'm here to show you a cast system i'm developing. Right now its a prototype and i do not recommend to use it in production. Its better than most of free casts because almost all of them are a adaption of the Elf Cast System and these adaptions were not made by programmers. It has a better code structure( i believe) and is easier to understand. I'm accepting code contributions
Code(github): https://github.com/HeavenIsLost/cast
Just to mention: its a custom version made by me based on this cast without multithread overhead(which brings stability problems): https://github.com/otland/forgottenserver/pull/994
Commands:
Commands(works inside the cast channel):
Add this to the database:
Its all
Code(github): https://github.com/HeavenIsLost/cast
Just to mention: its a custom version made by me based on this cast without multithread overhead(which brings stability problems): https://github.com/otland/forgottenserver/pull/994
Commands:
Start casting:
!cast
With password:
!cast password
Stop/close the cast:
!stopcast
Commands(works inside the cast channel):
Show spectators list:
/spectators
Kick spectator:
/kick spectatorname
ban spectator:
/ban spectatorname
unban spectator:
/unban spectatorname
mute spectator:
/mute spectatorname
unmute spectator:
/unmute spectatorname
Change the password of the cast:
/password newpassword
Add this to the database:
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;
Its all