Fabre01 Posted May 3 Share Posted May 3 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 [email protected],#dailytimer - gettimetick(2); set [email protected], [email protected] % ( 24 * 3600 ) / 3600; set [email protected], [email protected] % ( 24 * 3600 ) % 3600 / 60; set [email protected], [email protected] % ( 24 * 3600 ) % 3600 % 60; mes "You have to wait to get your next Daily Gift."; mes "Time CountDown : ^FF0000"[email protected]+":"[email protected]+":"[email protected]+"^000000"; } close; } Quote Link to comment Share on other sites More sharing options...
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 [email protected],#dailytimer - gettimetick(2); set [email protected], [email protected] % ( 24 * 3600 ) / 3600; set [email protected], [email protected] % ( 24 * 3600 ) % 3600 / 60; set [email protected], [email protected] % ( 24 * 3600 ) % 3600 % 60; mes "You have to wait to get your next Daily Gift."; mes "Time CountDown : ^FF0000"[email protected]+":"[email protected]+":"[email protected]+"^000000"; } close; }Link to comment
Share on other sites