Jump to content
  • 0

Freegift for limited account ID? (SOLVED)


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hi,

Can someone give me example how to make NPC just give this Free Gift for account ID 2000187 and Below only? So that player who register after that cannot claimed this rewards.. Thank you in advance..

Edited by rakuzas
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

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

find any freebie NPC in the forum and add this line before they get items.

if ( getcharid(3) > 2000187 ) {
    mes "You're too new to get the rewards.";
    close;
}

 

Edited by Emistry
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   6
  • Joined:  11/17/14
  • Last Seen:  

3 hours ago, Emistry said:

find any freebie NPC in the forum and add this line before they get items.


if ( getcharid(3) > 2000187 ) {
    mes "You're too new to get the rewards.";
    close;
}

 

how about if npc give free gift on the id last login below 11 july 2016, so on 12 july 2016 wont get it

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

9 hours ago, Emistry said:

find any freebie NPC in the forum and add this line before they get items.


if ( getcharid(3) > 2000187 ) {
    mes "You're too new to get the rewards.";
    close;
}

 

Errr.. It's that easy? I thought need call SQL Query like that.. Thanks.. Will update after I tested.. Thanks you Sir..

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...