I found this code in the forum. How can I change this code for a system similar to this but where only the richest in the game and the pvp winner can get rewards? I need your help as I am new to this field. Thanks.
prontera,155,181,5 script Gift NPC 4_M_2NDPRIN2,{
set .Hour,24;
if( #dailytimer < gettimetick(2) ) {
mes "You have Gained a Daily Gift.";
set #dailytimer,gettimetick(2) + ( .Hour * 3600 );
getitem 6101,1; //set the price here
}
else{
set .@last,#dailytimer - gettimetick(2);
set .@hour, .@last % ( 24 * 3600 ) / 3600;
set .@min, .@last % ( 24 * 3600 ) % 3600 / 60;
set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60;
mes "You have to wait to get your next Daily Gift.";
mes "Time CountDown : ^FF0000"+.@hour+":"+.@min+":"+.@sec+"^000000";
}
close;
}
Question
Fabre01
I found this code in the forum. How can I change this code for a system similar to this but where only the richest in the game and the pvp winner can get rewards? I need your help as I am new to this field. Thanks.
prontera,155,181,5 script Gift NPC 4_M_2NDPRIN2,{ set .Hour,24; if( #dailytimer < gettimetick(2) ) { mes "You have Gained a Daily Gift."; set #dailytimer,gettimetick(2) + ( .Hour * 3600 ); getitem 6101,1; //set the price here } else{ set .@last,#dailytimer - gettimetick(2); set .@hour, .@last % ( 24 * 3600 ) / 3600; set .@min, .@last % ( 24 * 3600 ) % 3600 / 60; set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60; mes "You have to wait to get your next Daily Gift."; mes "Time CountDown : ^FF0000"+.@hour+":"+.@min+":"+.@sec+"^000000"; } close; }
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.