Jump to content
  • 0

Hourly reward item script need help


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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

to
dispbottom "You received 5 "+getitemname( 7859 )+" by staying ingame for consecutive of 12 hours.";

 

Anyway do you also want vending players to get hourly rewards?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

to
dispbottom "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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Glad to help. :D The hourly reward is continuous unless the player starts vending.

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