Jump to content
  • 0

Point per day


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...