dycezki666 Posted September 14, 2012 Share Posted September 14, 2012 - script dailypoints -1,{ OnPCLoginEvent: { set(@now,gettimetick(2)); query_sql("SELECT REPLACE(`last_ip`,'.','_') FROM `login` WHERE `account_id` = "+getcharid(3),@lastIP$); if((getd("$G_LIP_"[email protected]$)+(60*60*24)) <= @now) { setd("$G_LIP_"[email protected]$,@now); getitem 7539,10; //set(#pvppoints,#pvppoints+10); mes("Here's your Daily Event Coin! Thanks for playing!"); dispbottom "[ Daily Attendance ] : You have received 10 Poring Coin!"; close2(); } end(); } } 1 Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 14, 2012 Share Posted September 14, 2012 try this ? - script Sample -1,{ OnPCLoginEvent: if( #Daily != gettime(5) ){ dispbottom "Gained Daily Items ..."; getitem 607,1; set #Daily,gettime(5); } end; } Quote Link to comment Share on other sites More sharing options...
0 jeromeblade Posted November 2, 2018 Share Posted November 2, 2018 where should i put the script? npc/custom? and edit the script_custom? Quote Link to comment Share on other sites More sharing options...
- script dailypoints -1,{ OnPCLoginEvent: { set(@now,gettimetick(2)); query_sql("SELECT REPLACE(`last_ip`,'.','_') FROM `login` WHERE `account_id` = "+getcharid(3),@lastIP$); if((getd("$G_LIP_"[email protected]$)+(60*60*24)) <= @now) { setd("$G_LIP_"[email protected]$,@now); getitem 7539,10; //set(#pvppoints,#pvppoints+10); mes("Here's your Daily Event Coin! Thanks for playing!"); dispbottom "[ Daily Attendance ] : You have received 10 Poring Coin!"; close2(); } end(); } }Link to comment
Share on other sites