Jump to content

Utility: sader's Hourly Rewards


sader1992

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

6 hours ago, Bringer said:

is this hourly reward base or char or account?

like when they change char timer will counting

default on account

if you change 

#HourlyRewards += 1;

to

HourlyRewards += 1;

it would be on char , with the points variable ofc HourlyRewards

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

3 hours ago, sader1992 said:

default on account

if you change 


#HourlyRewards += 1;

to

HourlyRewards += 1;

it would be on char , with the points variable ofc HourlyRewards

sorry i mean the timer not the point

timer will continue even they change char

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/14/20
  • Last Seen:  

Hello Sader. I am using your script. I just want to know if it is possible to have a command to check the remaining time to get the next reward? Thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

On 4/18/2020 at 11:46 PM, FranzRouen said:

Hello Sader. I am using your script. I just want to know if it is possible to have a command to check the remaining time to get the next reward? Thank you.

up

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   22
  • Joined:  11/23/11
  • Last Seen:  

Hello! Sorry for bringing up a old thread, but I've noticed that players are able to bypass the hourly idle check by attacking a Punching Bag 24/7, is there a way to prevent this?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  05/27/20
  • Last Seen:  

how to add like.

[Hourly Rewards]: you gain 2 hourly points. [ TOTAL POINTS = ? ]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

1 hour ago, Freecz said:

how to add like.

[Hourly Rewards]: you gain 2 hourly points. [ TOTAL POINTS = ? ]

see bind commands @mypoints

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  05/27/20
  • Last Seen:  

36 minutes ago, LearningRO said:

see bind commands @mypoints

where?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

3 minutes ago, Freecz said:

where?

OnMyHourlyPoints:
  message strcharinfo(0),"[Hourly Rewards]: You have " + #HourlyRewards + " Hourly Points .";
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   22
  • Joined:  11/23/11
  • Last Seen:  

Hey guys, players are able to bypass the hourly idle check by constantly attacking the Punching Bag Script, I was wondering if there's a way to ensure the idle check when attacking the Punching Bag.

My current solution was to create the Punching Bag with OnTouch: which will cancel the effect, however, long-ranged classes are able to bypass the OnTouch from distance. I was wondering if there's a way to prevent this little bug through this script?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   2
  • Joined:  04/27/16
  • Last Seen:  

Anyone tried to add, additional message to the players, every time they reach 30 minutes out of 1 hour they will receive a message that they successfully accumulated 30 minutes of our 1 hour ? 

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   46
  • Joined:  12/04/13
  • Last Seen:  

I added everything into the server but when I go to type any of the commands it tells me there is no such thing, and it also doesn't give rewards or points. Any idea what's wrong with it?

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

how to make hourly point continuous even u  got disconnected or change character

 

Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

9 hours ago, Sergardo said:

how to make hourly point continuous even u  got disconnected or change character

 

this is tricky , you can't do that , this system add timer to the attached session , and on logout the session will be removed.

if you want to do that I advises you to search for others systems that does not send the reward to the player as soon as they complete the hour , they must talk to the npc to get their reward.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

On 9/8/2020 at 9:24 PM, sader1992 said:

this is tricky , you can't do that , this system add timer to the attached session , and on logout the session will be removed.

if you want to do that I advises you to search for others systems that does not send the reward to the player as soon as they complete the hour , they must talk to the npc to get their reward.

thanks sir 

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.06
  • Content Count:  241
  • Reputation:   11
  • Joined:  08/12/20
  • Last Seen:  

Hi Sader, 

Found this on a thread using the search bar, I'm not much knowledgeable in scripts so I think it's best to have you check it.
May you please check and verify if it fits your script well?


This is from @jeronpot, allowing to continue points even if disconnected.

#HourlyRewards = 0;

OnPCLogoutEvent:
	if(.s_GePard_ip){
	query_logsql("delete from `sader_variables_log` where `variable` = '#Hourly_Rewads_Check' AND `account_id`= '"+getcharid(3)+"'");
	}
	if(#Hourly_Ban == 1){
		#Hourly_Ban = 0;
	}
	#Hourly_Rewads_Check = 0;
end;

Also, this to check how many remaining minutes left to get the next point by @Poring King

OnCheck:
    message strcharinfo(0),@hourly_points_timer ? Time2Str( @hourly_points_timer )+" Remaining.":"Something went wrong relog!";
    end;

 

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  136
  • Reputation:   3
  • Joined:  06/17/12
  • Last Seen:  

On 10/1/2020 at 6:48 PM, Almond Snicker said:

Hi Sader, 

Found this on a thread using the search bar, I'm not much knowledgeable in scripts so I think it's best to have you check it.
May you please check and verify if it fits your script well?


This is from @jeronpot, allowing to continue points even if disconnected.

#HourlyRewards = 0;

OnPCLogoutEvent:
	if(.s_GePard_ip){
	query_logsql("delete from `sader_variables_log` where `variable` = '#Hourly_Rewads_Check' AND `account_id`= '"+getcharid(3)+"'");
	}
	if(#Hourly_Ban == 1){
		#Hourly_Ban = 0;
	}
	#Hourly_Rewads_Check = 0;
end;

Also, this to check how many remaining minutes left to get the next point by @Poring King

OnCheck:
    message strcharinfo(0),@hourly_points_timer ? Time2Str( @hourly_points_timer )+" Remaining.":"Something went wrong relog!";
    end;

 

Any update on this?

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  113
  • Reputation:   1
  • Joined:  12/15/18
  • Last Seen:  

On 6/16/2020 at 6:29 AM, Katazui said:

Hey guys, players are able to bypass the hourly idle check by constantly attacking the Punching Bag Script, I was wondering if there's a way to ensure the idle check when attacking the Punching Bag.

My current solution was to create the Punching Bag with OnTouch: which will cancel the effect, however, long-ranged classes are able to bypass the OnTouch from distance. I was wondering if there's a way to prevent this little bug through this script?

I have this issue as well. Really need a solution. Thanks.

If the script can add a restriction on certian map, and move all the punching bag to this map, anyone who is in this map will not get points.

Edited by Surefirer
add suggestion
Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  02/28/12
  • Last Seen:  

On 3/14/2022 at 5:27 AM, Surefirer said:

I have this issue as well. Really need a solution. Thanks.

If the script can add a restriction on certian map, and move all the punching bag to this map, anyone who is in this map will not get points.

OnPCLoginEvent:
	addtimer .s_time, strnpcinfo(3)+"::OnHourlyRewards";
	if(strcharinfo(3) == "map_name"){
		deltimer .s_time, strnpcinfo(3)+"::OnHourlyRewards"
		}

probably?

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
Reply to this topic...

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