hell666yeah Posted November 5, 2015 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 08/25/12 Last Seen: April 8, 2023 Share Posted November 5, 2015 Please help ! I have a stats reset npc default one.. how do I make it work like a character has to work atleast 5 hours to do another stat reset after the performs one. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted November 7, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10015 Reputation: 2351 Joined: 10/28/11 Last Seen: Wednesday at 02:24 PM Share Posted November 7, 2015 prontera,150,193,4 script Reset Girl 124,{ if(gettimetick(2) < ResetDelay1) { mes "You can only do a reset once a day!"; close; } .@ResetStat = 150000; // Zeny for stat reset .@ResetSkill = 5000; // Zeny for skill reset .@ResetBoth = 9000; // Zeny for resetting both together mes "[Reset Girl]"; mes "I am the Reset Girl."; mes "Reset Stats: " + callfunc("F_InsertComma", .@ResetStat) + "z"; mes "Reset Skills: " + callfunc("F_InsertComma", .@ResetSkill) + "z"; mes "Reset Both: " + callfunc("F_InsertComma", .@ResetBoth) + "z"; mes "Please select the service you want:"; next; switch(select("^FF3355Reset Stats^000000:Cancel")) { case 1: mes "[Reset Girl]"; if (Zeny < .@ResetStat) { mes "Sorry, you don't have enough Zeny."; close; } ResetDelay1 = gettimetick(2)+86400; Zeny -= .@ResetStat; resetstatus; mes "There you go!"; close; case 2: close; } } Quote Link to comment Share on other sites More sharing options...
0 PandaLovesHamster Posted November 5, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 452 Reputation: 33 Joined: 12/18/14 Last Seen: May 30, 2016 Share Posted November 5, 2015 You can set a check for it like this. #ResetDelay = gettimetick(2)+86400; if(gettimetick(2) < #ResetDelay) { mes "You can only do a reset once a day!"; close; } If you want the check to be per character not per account, just change #ResetDelay to ResetDelay. Quote Link to comment Share on other sites More sharing options...
0 hell666yeah Posted November 5, 2015 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 08/25/12 Last Seen: April 8, 2023 Author Share Posted November 5, 2015 (edited) You can set a check for it like this. #ResetDelay = gettimetick(2)+86400; if(gettimetick(2) < #ResetDelay) { mes "You can only do a reset once a day!"; close; } If you want the check to be per character not per account, just change #ResetDelay to ResetDelay. Thank you very much.. I will give it a try today itself.. Sorry it did not work.. It just gave me following message withoout reset "You can only do a reset once a day!"; Here is my script: //===== rAthena Script ======================================= //= Reset NPC //===== By: ================================================== //= rAthena Dev Team //===== Current Version: ===================================== //= 1.3 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= //= Resets skills, stats, or both. //===== Additional Comments: ================================= //= 1.0 First Version //= 1.1 Optimized for the greater good. [Kisuka] //= 1.2 Cleaning [Euphy] //= 1.3 All statuses removed upon skill reset. [Euphy] //============================================================ prontera,150,193,4 script Reset Girl 124,{ ResetDelay1 = gettimetick(2)+86400; if(gettimetick(2) < ResetDelay1) { mes "You can only do a reset once a day!"; close; } .@ResetStat = 150000; // Zeny for stat reset .@ResetSkill = 5000; // Zeny for skill reset .@ResetBoth = 9000; // Zeny for resetting both together mes "[Reset Girl]"; mes "I am the Reset Girl."; mes "Reset Stats: " + callfunc("F_InsertComma", .@ResetStat) + "z"; mes "Reset Skills: " + callfunc("F_InsertComma", .@ResetSkill) + "z"; mes "Reset Both: " + callfunc("F_InsertComma", .@ResetBoth) + "z"; mes "Please select the service you want:"; next; switch(select("^FF3355Reset Stats^000000:Cancel")) { case 1: mes "[Reset Girl]"; if (Zeny < .@ResetStat) { mes "Sorry, you don't have enough Zeny."; close; } Zeny -= .@ResetStat; resetstatus; mes "There you go!"; close; case 2: close; } } Edited November 7, 2015 by Emistry codebox Quote Link to comment Share on other sites More sharing options...
0 PandaLovesHamster Posted November 11, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 452 Reputation: 33 Joined: 12/18/14 Last Seen: May 30, 2016 Share Posted November 11, 2015 Please take note the above reset is not 5 hours, it's 1 day. Lmao.Here's what I did with mine. prontera,123,123,5 script Panda Reset 123,{ mes "[Panda]"; mes "You can reset your stat points or skill points with me."; mes "However you can only reset either of the two once per day."; next; mes "[Panda]"; mes "What do you want to do?"; next; switch(select("Reset Stat Points:Reset Skill Points:Do nothing.")){ case 1: if(gettimetick(2) < #StatDelay){ goto OnStatDone; end;} sc_end SC_ALL; ResetStat; mes "[Panda]"; mes "It is done."; mes "You can reset again tomorrow."; #StatDelay = gettimetick(2)+86400; //Once a day only. close; case 2: if(gettimetick(2) < #SkillDelay){ goto OnSkillDone; end;} sc_end SC_ALL; ResetSkill; mes "[Panda]"; mes "It is done."; mes "You can reset again tomorrow."; #SkillDelay = gettimetick(2)+86400; //Once a day only. close; case 3: mes "[Panda]"; mes "Suit yourself."; close; } OnStatDone: mes "[Panda]"; mes "You have already reset your stats today."; mes "You can come back again tomorrow."; close; end; OnSkillDone: mes "[Panda]"; mes "You have alreaedy reset your skills today."; mes "You can come back again tomorrow."; close; end; } Quote Link to comment Share on other sites More sharing options...
0 hell666yeah Posted December 6, 2015 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 08/25/12 Last Seen: April 8, 2023 Author Share Posted December 6, 2015 (edited) Thank you so much Emistry for resolving this for me. I am late to thank you but I really appreciate what you have done for me Panda: Thank you ! Edited December 6, 2015 by hell666yeah Quote Link to comment Share on other sites More sharing options...
Question
hell666yeah
Please help ! I have a stats reset npc default one..
how do I make it work like a character has to work atleast 5 hours to do another stat reset after the performs one.
Link to comment
Share on other sites
5 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.