// https://rathena.org/board/topic/118689-scripting-hourly-points/
- script sample -1,{
OnInit:
.map$ = "louyang";
setmapflag(.map$, mf_loadevent);
end;
OnCheck:
if (strcharinfo(3) == .map$) {
if (!checkvending()) {
#CASHPOINTS += 2;
dispbottom "You received 2 Cash Points. Current Cash Points: " + #CASHPOINTS;
}
}
@has_timer = 0;
OnPCLoadMapEvent:
if (!@has_timer) {
deltimer strnpcinfo(3)+"::OnCheck";
addtimer (60 * 1000), strnpcinfo(3)+"::OnCheck";
@has_timer = 1;
}
end;
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎
0 B
|👍
/👎