Jump to content
  • 0

Request Daily Rewards NPC


Limestone

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  647
  • Reputation:   16
  • Joined:  11/21/11
  • Last Seen:  

can i request a Daily Rewards NPC like this:

Day 1 (Monday) : AFM 100% 2 PC's

Day 2 (TUEsday): Bubble Gum 2PC's

and so on..

Thank you so much!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Edit the items yourself.

http://upaste.me/7ed1763602656f7

Case 0: getitem 671,1; break;
Case 1: getitem 672,1; break;
Case 2: getitem 673,1; break;
Case 3: getitem 674,1; break;
Case 4: getitem 675,1; break;
Case 5: getitem 676,1; break;
Case 6: getitem 677,1; break;

Note: Case 0 is Sunday.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  08/10/12
  • Last Seen:  

how can i make this like 1 ip 1 account. to avoid creating plenty of accounts and abusing the items or creating plenty of characters.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Change dr_time$ to #dr_time$ to make it account-based.

Blocking multiple IPs is more complicated. The basic form would be:

  1. Create a new SQL table, ex. `daily_ip`.
  2. Query attached player's `login`.`last_ip` into `daily_ip`.
  3. Check if other players' IPs are in `daily_ip` (more queries!).
  4. Each new day (OnHour00), clear `daily_ip`.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  90
  • Reputation:   5
  • Joined:  06/17/12
  • Last Seen:  

Thanks Euphy it's working great on my server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  80
  • Topics Per Day:  0.02
  • Content Count:  325
  • Reputation:   76
  • Joined:  03/22/12
  • Last Seen:  

Change dr_time$ to #dr_time$ to make it account-based.

Blocking multiple IPs is more complicated. The basic form would be:

  1. Create a new SQL table, ex. `daily_ip`.
  2. Query attached player's `login`.`last_ip` into `daily_ip`.
  3. Check if other players' IPs are in `daily_ip` (more queries!).
  4. Each new day (OnHour00), clear `daily_ip`.

Sir Euphy can you make me a script, ready to insert in sql. Thanks /kis2

Edited by eJay
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...