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

GlobalEvent Lottery System!

You forgot upgrading your first post.

Code:
CREATE TABLE `lottery` (
   `id` int(11) NOT NULL auto_increment,
   `name` varchar(255) NOT NULL,
   `item` varchar(255) NOT NULL,
   PRIMARY KEY  (`id`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
Code:
INSERT INTO `lottery`(`id`, `name`, `item`) VALUES (NULL , 'Nobody', 'nothing');
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
You forgot upgrading your first post.

Code:
CREATE TABLE `lottery` (
   `id` int(11) NOT NULL auto_increment,
   `name` varchar(255) NOT NULL,
   `item` varchar(255) NOT NULL,
   PRIMARY KEY  (`id`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
Code:
INSERT INTO `lottery`(`id`, `name`, `item`) VALUES (NULL , 'Nobody', 'nothing');


Ah yes, thanks :thumbup:

@EDIT@

Added version for tfs 0.3.5 (MOD)
 
Hello,

first, very nice work! Respect!

But how it works now?

Every X hour a random player will get a reward, right?

And what it shows at the website?

--->Like a new tab named lottery? (Playername) win lottery and got item xy?
 
You forgot upgrading your first post.

Code:
CREATE TABLE `lottery` (
   `id` int(11) NOT NULL auto_increment,
   `name` varchar(255) NOT NULL,
   `item` varchar(255) NOT NULL,
   PRIMARY KEY  (`id`)
 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
Code:
INSERT INTO `lottery`(`id`, `name`, `item`) VALUES (NULL , 'Nobody', 'nothing');
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!

@Pepsi:
Exactly :p

Thank you!

First posting already edited?

btw.: working for 0.3.5pl?
 
Yes, first post is already edited. Try to run it on 0.3.5 :p
 
Every x hours (default 3) script get random player from online list and give him prize :wub:

P.S small script update (untested because im on turkey now and i can't check, so please raport any errors)

so you mean i can afk-traing on the server, and every 3th hour i got a chance to win a reward! rofl ;p haha
pretty nice script if you want your players to stay online though
 
so you mean i can afk-traing on the server, and every 3th hour i got a chance to win a reward! rofl ;p haha
pretty nice script if you want your players to stay online though

just change the prizes

It's possible to change the rewards or? Or error will "say hello" then?
 
Code:
rewards_id = {2494, 2472, 2514, 2160}, -- Rewards ID

It's table with avalible prizes. :)
 
Back
Top