Jump to content
  • 0

daily reward help


ristra

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  11/24/11
  • Last Seen:  

I'm currently working on my Daily Reward script, which will gives a player item and zeny each day.

But one char can only get it once per day. The thing i wanna ask is how to make the character can only pick the reward once per day, and then he can pick it again in the next day ?

I don't know the syntax that can resets the char's variable when the day changes, so the character can take the reward again.

Please Help thanks :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

you can try use the gettime() command to save the date data.

and use npc to check for the date data before give the reward.

and save it in a Permanent Character Data type or Account

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

It is not advisable to get a daily rewards script as it can be turn to abuse-able by your players.

- Abuse-able by creating multiple accounts and then transfer to main account.

Edited by Jezu
Link to comment
Share on other sites


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

you can try make the item into a non-trade / vending / store in guild items....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  11/24/11
  • Last Seen:  

Thanks a lot Emistry it works great with the gettime ! :D

Yep i'm making the item non-trade/vending/store-able of course, anyway thanks a lot for all your help :)

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