Jump to content
  • 0

Point per day


icabit

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

so basically i wanted to create an npc using

OnPCLoginEvent :

set fatiguepoints,800;

end;

it will give daily points that i can make the players use with an npc

actually im gonna make fatigue points i wanted 800 fatigue points daily or can be adjusted

i wanted to use this points when a player wants to enter a dungeon(this part i can do this)

so basically my problem is how to refresh the points daily even it is not totally used or not even used

i dunno whats the right approach of codes >.<

im a noob scripter i dont know what syntax or codes to use properly

i am planning to use

OnPCLoginEvent :
if (day!=gettime(4))
{
set day,gettime(4);
set fatiguepoints,800;
}
end;

but i think the problem of this code is what if the player doesn't login for 1week and he logs in the same day on a different week on the day he previously got his points. that would make the day variable the same as the gettime(4) of the new week >.>

any possible solutions for this?

Edited by icabit
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Use this /no1

gettime(8)

Your players will get the points everyday, unless he doesn't logged in for a year in the exact day /pat

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  353
  • Reputation:   70
  • Joined:  07/14/12
  • Last Seen:  

thx :D

so i guess my script will work if i use that :D

thnx nana

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