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 >.>
Question
icabit
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
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 icabitLink to comment
Share on other sites
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.