Events time module ( how much time till BC opens example )
Hello, as you know I use TTech Season 6 Episode 3 and MuCore 1.0.8.
I would like to have this kind of module if someone has it and willing to share with us.
http://img708.imageshack.us/img708/1459/d5sy.png
My opinion about this module :
1. It should be simple to read the events form MuServer files like event_manager.
2. It would be much easier if I could edit this module lets say I know the hours when event starts on my server, I just need to set it into module and it should have just a countdown as you can see in the screen shot.
Thank you in advance and ps : 4FUNer I know this is a piece of cake for you :P
Re: Events time module ( how much time till BC opens example )
Quote:
Originally Posted by
epocal
4FUNer I know this is a piece of cake for you :P
Sorry i won't share my events timers & not going to code special for you
use some public one, for example the one included in new mfs website or mu core legendmu 2 template.
Don't ask me where, search & seperate for your own needs.
Re: Events time module ( how much time till BC opens example )
This one ?
Code:
events[0] = {name: 'Blood Castle', left: 2120, id: 1}
events[1] = {name: 'Chaos Castle', left: 79820, id: 2}
events[2] = {name: 'Devil Square', left: 1220, id: 3}
events[3] = {name: 'Castle Deep', left: 61520, id: 4}
events[4] = {name: 'Illusion Temple', left: 4820, id: 5}
events[5] = {name: 'Castle Siege', left: 22820, id: 6}
events[6] = {name: 'Ring Attack Event', left: 6020, id: 7}
events[7] = {name: 'CryWolf', left: 326120, id: 8}
events[8] = {name: 'Extra EXp', left: 80420, id: 9}
events[9] = {name: 'Dungeon Race', left: 1160, id: 10}
events[10] = {name: 'Drop Event', left: 4820, id: 11}
events[11] = {name: 'Last Man Standing', left: 3020, id: 12}
events[12] = {name: 'Marry Event', left: 10220, id: 13}
events[13] = {name: 'Monster Spawn', left: 30020, id: 14}
events[14] = {name: 'Scramble Words', left: 15620, id: 15}
events[15] = {name: 'Lottery', left: 318020, id: 16}
events[16] = {name: 'Bring Me', left: 21620, id: 17}
So its just template work ? No need to edit in SQL or Server files ? Or Xampp ? Just template work ?
Re: Events time module ( how much time till BC opens example )
Quote:
Originally Posted by
epocal
So its just template work ? No need to edit in SQL or Server files ? Or Xampp ? Just template work ?
Yea js timer with SQL usage ^_^ cmn
idk how about legend mu, just seen some servers using it ^^
in mfs upd7
http://forum.ragezone.com/f197/mfs-t...-0-6-a-922877/
you have file in modules/ called events.php
which load times from config.php
you can rename inside events.php
Code:
include ("config.php");
to let's say
include ("ETconfig.php");
& save info from config.php as ETconfig.php
that's the part you need
Code:
$eventtime[1]['name'] = '<a href="?op=bc_rank">Blood Castle</a>';
$eventtime[1]['start'] = 'Jan 01, 2011 00:19:00';
$eventtime[1]['repeattime'] = '3600';
$eventtime[1]['opentime'] = '300';
$eventtime[2]['name'] = '<a href="?op=ds_rank">Devil Square</a>';
$eventtime[2]['start'] = 'Jan 01, 2011 01:00:00';
$eventtime[2]['repeattime'] = '7200';
$eventtime[2]['opentime'] = '300';
$eventtime[3]['name'] = '<a href="?op=cs_rank">Castle Siage</a>';
$eventtime[3]['start'] = 'Jan 01, 2011 00:00:00';
$eventtime[3]['repeattime'] = '7200';
$eventtime[3]['opentime'] = '300';
$eventtime[4]['name'] = 'Shadow';
$eventtime[4]['start'] = 'Jan 01, 2011 01:00:00';
$eventtime[4]['repeattime'] = '500';
$eventtime[4]['opentime'] = '300';
$eventtime[5]['name'] = 'Lucky Hour';
$eventtime[5]['start'] = 'Jan 01, 2011 01:05:00';
$eventtime[5]['repeattime'] = '800';
$eventtime[5]['opentime'] = '300';
$eventtime[6]['name'] = 'Blue';
$eventtime[6]['start'] = 'Jan 01, 2011 01:00:00';
$eventtime[6]['repeattime'] = '3900';
$eventtime[6]['opentime'] = '300';
define('WEBSITE_REAL_TIME', time());
ETconfig.php going to MuCore directory & events.php to page_modules or user_cp or directly to template
Re: Events time module ( how much time till BC opens example )
Ok I did what you said and I hope I didn't miss anything but its NOT WORKING
Here :
http://img823.imageshack.us/img823/5540/i4sr.png
and
http://img69.imageshack.us/img69/9371/vklf.png
Result :
http://img189.imageshack.us/img189/2308/2mez.png
So any pro master Martin code help ? ;;)
Thank you !
Re: Events time module ( how much time till BC opens example )
ah fk yea forgot about that button (includes/javascript/rules.js)
edit in events.php
Code:
<script type="text/javascript" src="includes/javascript/rules.js"></script>
to
Code:
<script type="text/javascript" src="js/rules.js"></script>
and paste to js/ ------- rules.js from mfs web. (it is on includes/javascript/)
Re: Events time module ( how much time till BC opens example )
Quote:
Originally Posted by
4FUNer
ah fk yea forgot about that button (includes/javascript/rules.js)
edit in events.php
Code:
<script type="text/javascript" src="includes/javascript/rules.js"></script>
to
Code:
<script type="text/javascript" src="js/rules.js"></script>
and paste to js/ ------- rules.js from mfs web. (it is on includes/javascript/)
Button working but it just shows me another EVENTS text message and nothing more :
http://img42.imageshack.us/img42/6261/afy8.png
Re: Events time module ( how much time till BC opens example )
Doesn't read config file... nub
Code:
<?
$eventtime[1]['name'] = '<a href="?op=bc_rank">Blood Castle</a>';
$eventtime[1]['start'] = 'Jan 01, 2011 00:19:00';
$eventtime[1]['repeattime'] = '3600';
$eventtime[1]['opentime'] = '300';
$eventtime[2]['name'] = '<a href="?op=ds_rank">Devil Square</a>';
$eventtime[2]['start'] = 'Jan 01, 2011 01:00:00';
$eventtime[2]['repeattime'] = '7200';
$eventtime[2]['opentime'] = '300';
$eventtime[3]['name'] = '<a href="?op=cs_rank">Castle Siage</a>';
$eventtime[3]['start'] = 'Jan 01, 2011 00:00:00';
$eventtime[3]['repeattime'] = '7200';
$eventtime[3]['opentime'] = '300';
$eventtime[4]['name'] = 'Shadow';
$eventtime[4]['start'] = 'Jan 01, 2011 01:00:00';
$eventtime[4]['repeattime'] = '500';
$eventtime[4]['opentime'] = '300';
$eventtime[5]['name'] = 'Lucky Hour';
$eventtime[5]['start'] = 'Jan 01, 2011 01:05:00';
$eventtime[5]['repeattime'] = '800';
$eventtime[5]['opentime'] = '300';
$eventtime[6]['name'] = 'Blue';
$eventtime[6]['start'] = 'Jan 01, 2011 01:00:00';
$eventtime[6]['repeattime'] = '3900';
$eventtime[6]['opentime'] = '300';
define('WEBSITE_REAL_TIME', time());
?>
save as ETconfig.php
& make sure in events.php also it's
include ("ETconfig.php");
Re: Events time module ( how much time till BC opens example )
Yea your code works !
http://img194.imageshack.us/img194/8454/1bd9.png
Can you please style it for me ? With that gray you used for the others ranking modules ? Your style means so much for my server, I'll be forever grateful to you :ott:
PS : Can you please remove that SHOW button and just show the event timers , its not stylish ... :-ss
THANK YOU MARTIN
Re: Events time module ( how much time till BC opens example )
You want to much ^^
anw u can delete rules.js from /js
Download
events.php download - 2shared
Re: Events time module ( how much time till BC opens example )
Re: Events time module ( how much time till BC opens example )
hahaha :) Epocal is the baby of Martin :) kissboobs :D