Jump to content
  • 0

can you change it by account instead of ip


dycezki666

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   1
  • Joined:  08/28/12
  • Last Seen:  

- 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_"+@lastIP$)+(60*60*24)) <= @now) {
  setd("$G_LIP_"+@lastIP$,@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();
}
}

  • Upvote 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

try this ?

- script Sample -1,{
OnPCLoginEvent:
if( #Daily != gettime(5) ){
dispbottom "Gained Daily Items ...";
getitem 607,1;
set #Daily,gettime(5);
}
end;
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  01/29/15
  • Last Seen:  

where should i put the script?

npc/custom? and edit the script_custom?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...