challenge ?? more like spoon feeding request. O__O
on/off point
- script online_offline_point -1,{
OnPCLogoutEvent:
#last_logout = gettimetick(2);
end;
OnCheck:
#ONLINEPOINTS++;
OnPCLoginEvent:
if ( #last_logout ) {
.@time = ( gettimetick(2) - #last_logout );
#OFFLINEPOINTS += ( .@time / 3600 ); // every 1 hour 1 point
#last_logout = 0;
}
addtimer 3600000,strnpcinfo(0)+"::OnCheck";
end;
}
there are lots of similar activity points script in forum.
day night different mob
- script day_night_mob -1,{
OnInit:
.max_mob = 100;
.map$ = "morocc";
.npc$ = strnpcinfo(0);
end;
OnClock1200: // 12PM
callsub( Summon,1001 );
end;
OnClock0000: // 12AM
callsub( Summon,1002 );
end;
OnSummon:
killmonsterall .map$;
monster .map$,0,0,"--ja--",getarg(0),.max_mob,.npc$+"::OnKilled";
end;
OnKilled:
.@mob = ( .max_mob - mobcount( .map$,.npc$+"::OnKilled" ) );
monster .map$,0,0,"--ja--",killedrid,.@mob,.npc$+"::OnKilled";
end;
}
you can try it....i just simply scratch one... not yet test...probably full of bugs..