can you make that script for me please? because i'm nubie in script.. T_T
i want player to click the NPC and the npc Give the reward for player every 5 minutes..
here's my script.. work in rAthena but didn't work in eAthena..
// ~~~~~ show time left in days, hours, minutes and seconds ~~~~~
function script timeleft__ {
if ( ( .@left = getarg(0) ) <= 0 ) return getarg(0);
.@day = .@left / 86400;
.@hour = .@left % 86400 / 3600;
.@min = .@left % 3600 / 60;
.@sec = .@left % 60;
if ( .@day )
return .@day +" day "+ .@hour +" hour";
else if ( .@hour )
return .@hour +" hour "+ .@min +" min";
else if ( .@min )
return .@min +" min "+ .@sec +" sec";
else
return .@sec +" sec";
}
ra_temple,109,147,5 script Hourly Reward 1247,{
if ( #hourly_timer > gettimetick(2) ) {
mes "You must wait "+ callfunc( "timeleft__", #hourly_timer - gettimetick(2) ) +".";
close;
}
mes "Thanks For Coming :)";
announce ""+strcharinfo(0)+" Telah Mengambil Reward Hourly",bc_all| bc_white;
getitem 19999,1; // Die RO Sign
getitem 675,1; // Mitrhil Coin
#hourly_timer = gettimetick(2) + 300;
close;
end;
}