About This File
UPDATE:
version 1 = I removed all my modifications on this script
version 2 = Has timers and will most likely be in-conflict with other event scripts i made.
In response to this post :
OnInit:
// item reward
setarray .item,
501, 10,
502, 5;
// @dicestart - gm manual start
bindatcmd "dicestart", strnpcinfo(0)+"::OnStart",60,60;
// @dice - player join event
bindatcmd "dice", strnpcinfo(0)+"::OnJoinEvent";
// Mapflags
setarray .@mapflag,
mf_nowarp,
mf_nowarpto,
mf_noskill,
mf_noteleport,
mf_nomemo,
mf_nosave,
mf_noicewall,
mf_nobranch,
mf_noreturn;
for ( .@i = 0; .@i < getarraysize(.@mapflag); .@i++)
setmapflag "quiz_02", .@mapflag[.@i];
.event_time_m = gettime(DT_MINUTE);
.event_time_s = gettime(DT_SECOND);
end;
I took some dice script by someone named sandbox and modified it the way how I understand this posts suggests to make.
instead of using @event to check the time schedule of dice, I incorporate it to @dice command.
This will show you an hourly countdown as to when will the event will be re-starting.
And this dice event should be working on latest rathena.
Compatibility is your Responsibility.
PS : if there are any broken event scripts ( due to old versions ), just DM me the link and I might be interested in updating it.
PPS: I will only FIX it and not modify it at all.
What's New in Version 1.0.1 See changelog
Released
Bug report by @Bringer on timer not updating.
Improvised the timer to a much better one.
Event can now be set to run at schedule you want.
( NOTE: It will be checked hourly. Meaning, you must set your cd on a per hour basis only such as 1 hr, 2 hrs, etc.. and not like 30m, 1h and 30m, etc.. )
// Event cooldown
.event_cd = 60 * 60 * 1; // 1hr