Quesooo Posted April 18, 2017 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Share Posted April 18, 2017 i need help with this script when the player / players already recieved the 12 hours consecutive item rewards the script stop the player / players didnt get item anymore i want this continue more the houly item rewards only stop when the player is log out please help me out thank you Hourly_Point_Rewardv1.2.txt Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted April 18, 2017 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 126 Joined: 04/04/16 Last Seen: May 25 Share Posted April 18, 2017 I actually don't see any problem that will stop the after the 12 consecutive hours is executed. I checked the script and if(@consecutive_hour == 5) { should be if(@consecutive_hour == 12) { If you want the reward to be received after 12 hours. 42 minutes ago, Questune09 said: the houly item rewards only stop when the player is log out The script also stops the hourly reward when the player is vending. If you want to only stop the reward when the player logged out remove this code from the script. OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1) { dispbottom "The hourly badge rewards has stopped because you were vending . Please relog if you wish to start again."; stopnpctimer; end; } The only thing I see which causes the hourly reward to stop is the player might did vending after the consecutive hour is executed. 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted April 18, 2017 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted April 18, 2017 15 hours ago, Technoken said: I actually don't see any problem that will stop the after the 12 consecutive hours is executed. I checked the script and if(@consecutive_hour == 5) { should be if(@consecutive_hour == 12) { If you want the reward to be received after 12 hours. The script also stops the hourly reward when the player is vending. If you want to only stop the reward when the player logged out remove this code from the script. OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1) { dispbottom "The hourly badge rewards has stopped because you were vending . Please relog if you wish to start again."; stopnpctimer; end; } The only thing I see which causes the hourly reward to stop is the player might did vending after the consecutive hour is executed. i change the line you said 5 to be 12 is it ok now? thank you for your help Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted April 18, 2017 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 126 Joined: 04/04/16 Last Seen: May 25 Share Posted April 18, 2017 I think that's good now. You also need to replace this, just to avoid confusion on players.dispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 5 hours."; todispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 12 hours."; Anyway do you also want vending players to get hourly rewards? 1 Quote Link to comment Share on other sites More sharing options...
0 Quesooo Posted April 18, 2017 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Author Share Posted April 18, 2017 15 hours ago, Technoken said: I think that's good now. You also need to replace this, just to avoid confusion on players.dispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 5 hours."; todispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 12 hours."; Anyway do you also want vending players to get hourly rewards? thank you sir ... no i dont want vending players to get hourly item rewards i just want to player who lvling and afk for a while get that item thank you Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted April 18, 2017 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 126 Joined: 04/04/16 Last Seen: May 25 Share Posted April 18, 2017 Glad to help. The hourly reward is continuous unless the player starts vending. Quote Link to comment Share on other sites More sharing options...
Question
Quesooo
i need help with this script
when the player / players already recieved the 12 hours consecutive item rewards the script stop
the player / players didnt get item anymore
i want this continue more
the houly item rewards only stop when the player is log out please help me out thank you
Hourly_Point_Rewardv1.2.txt
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.