Jump to content
  • 0

Playtime Script


Freya

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

Hello, I would like to request some professional/intermediate/willing scripters to help me on "PlayTime" script. I will state the description of the NPC, the menu, the script and its significance, detailed and thoroughly.

Description of the NPC:
NPC is clickable and is visible on map.
NPC will only talk to base level 255 with a job level of 120.
The NPC has different menus such as ("Start PlayTime Points : Pause PlayTime Points : Claim Reward : Check PlayTime Duration : Cancel"))

Menu Description:
Start PlayTime Points - Starts the PlayTime Points timer.
Pause PlayTime Points - Pauses the PlayTime Points timer.
Check PlayTime Duration - Checks how much time to be logged on.
Cancel - Exits the menu.

Script Description:
PlayTime Points timer will only start when the player decided to start their PlayTime Points using "Start PlayTime Points".
PlayTime Points timer will not count whenever the player quitsre-logs in or changes character.
PlayTime Points timer can only be paused by talking to the NPC using the "Pause PlayTime Points." The timer will be paused and will resume when the player decided to start "Start PlayTime Points" and the timer will resume exactly when the player paused it. The PlayTime Points will not reset even when the player quits, re-logs in or changes character as long as they have paused it through the NPC.

The reward is not hourly, instead one apple (example) for every 24 hours with an interval of also 24 hours.
Check PlayTime Duration will check how many more hours left or how many hours he/she has reached for the player to stay online and to receive its reward.
Inactivity or the idleness of the player won't affect or stop the PlayTime Points timer.

Significance of this NPC:
PlayTime Points NPC is to reward the player while being inactive or active in-game for 24 hours, This is also to help the players with their needs and to help them grow in-game.

 

Thank you!


"All of the credits will belong to the person who has made the script, I vow that your script will not be reproduced, will not be copied, will not help me gain any profit and will not release the script, modified or unmodified, without the scripter's permission. Everything will be credited to the scripter."

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites

  • 0

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

On 3/13/2017 at 1:46 AM, Freya said:

Hello, I would like to request some professional/intermediate/willing scripters to help me on "PlayTime" script. I will state the description of the NPC, the menu, the script and its significance, detailed and thoroughly.

Description of the NPC:
NPC is clickable and is visible on map.
NPC will only talk to base level 255 with a job level of 120.
The NPC has different menus such as ("Start PlayTime Points : Pause PlayTime Points : Claim Reward : Check PlayTime Duration : Cancel"))

Menu Description:
Start PlayTime Points - Starts the PlayTime Points timer.
Pause PlayTime Points - Pauses the PlayTime Points timer.
Check PlayTime Duration - Checks how much time to be logged on.
Cancel - Exits the menu.

Script Description:
PlayTime Points timer will only start when the player decided to start their PlayTime Points using "Start PlayTime Points".
PlayTime Points timer will not count whenever the player quitsre-logs in or changes character.
PlayTime Points timer can only be paused by talking to the NPC using the "Pause PlayTime Points." The timer will be paused and will resume when the player decided to start "Start PlayTime Points" and the timer will resume exactly when the player paused it. The PlayTime Points will not reset even when the player quits, re-logs in or changes character as long as they have paused it through the NPC.

The reward is not hourly, instead one apple (example) for every 24 hours with an interval of also 24 hours.
Check PlayTime Duration will check how many more hours left or how many hours he/she has reached for the player to stay online and to receive its reward.
Inactivity or the idleness of the player won't affect or stop the PlayTime Points timer.

Significance of this NPC:
PlayTime Points NPC is to reward the player while being inactive or active in-game for 24 hours, This is also to help the players with their needs and to help them grow in-game.

 

Thank you!


"All of the credits will belong to the person who has made the script, I vow that your script will not be reproduced, will not be copied, will not help me gain any profit and will not release the script, modified or unmodified, without the scripter's permission. Everything will be credited to the scripter."

Spoiler

prontera,146,162,3	script	Time Play	553,{

	

	set @npc$, "[ ^0000FFTime Play^000000 ]";
	if (#started == 1) {
	mes @npc$;
	mes "Your Time Play Timer is ongoing.";
	mes "You currently have [^FF0000"+#EVENTPOINTS+"^000000] Time Play points.";
	close;
	end;
	}
	if (BaseLevel < 255) || (JobLevel < 120) {
	mes @npc$;
	mes "You must be level ^FF0000255^000000 and job level ^FF0000120^000000 to use this npc.";
	close;
	}

	mes @npc$;
	mes "Good day "+strcharinfo(0)+",";
	mes "You currently have [^FF0000"+#EVENTPOINTS+"^000000] Time Play points.";
	mes "What would you like to do?";
	menu "Start Time Play",tp_start,"Rewards",tp_reward,"What is Time Play?",tp_info;

tp_info:
	next;
	mes @npc$;
	mes "In TimePlay event, You will earn ^FF0000+5^000000 TimePlay points for every ^FF000030^000000 minutes of staying online excluding Autotrading or @at.";
	mes " ";
	mes "^0000FFNote^000000: Everytime you log out your account, the timer will reset back to 0";
	close;


tp_reward:
	menu "Mithril Coin - ^FF0000700^000000 TP pts",tp_tcg;

tp_tcg:
	if (#EVENTPOINTS >= 700) {
		next;
		mes @npc$;
		mes "Here's your prize, Congratulations!";
		getitem 674,1;
		set .@total_points,-700;
		set #EVENTPOINTS,(#EVENTPOINTS+.@total_points);
		close;
	}
	else
	next;
	mes @npc$;
	mes "Sorry, you don't have enough Time Play points.";
	close;
	end;

tp_start:
	next;
	if (getgmlevel() > 0) {
	mes @npc$;
	mes "Hello "+strcharinfo(0)+", this NPC is for normal players only.";
	close;
	}
	mes @npc$;
	mes "Time Play Started.";
	close2;
	goto start_tp;

start_tp:
set #started, 1;
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
	
OnTimer30000:
if (checkvending() >= 1) {
	dispbottom "Time Play stopped because you were vending. Talk to me if you wish to start again.";
	set #started, 0;
	stopnpctimer;
	end;
}

OnTimer60000:
set @minute,@minute+1;
if (@minute >= 30) {
	set @minute,0;
	set .@point_amt,5;
	set .@total_points,+5;
	set #EVENTPOINTS,(#EVENTPOINTS+.@total_points);
	dispbottom "Time Play: You received "+.@point_amt+" points by staying in game for 30 minutes";
	set @consecutive_hour, @consecutive_hour+1;
	}

stopnpctimer;
initnpctimer;
end;

OnPCLogoutEvent:
	If (#started == 1) {
	set #started, 0;
	}
	end;
}

 

Script From : 

 

Edited by Bringer
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

Thanks Emistry, definitely what I'm searching for!

13 hours ago, Emistry said:


Hello Bringer, the Timeplay in there is quite different to my request, but I also love his/her events he/she made. Definitely helpful. Thank you!

49 minutes ago, Bringer said:
  Reveal hidden contents


prontera,146,162,3	script	Time Play	553,{

	

	set @npc$, "[ ^0000FFTime Play^000000 ]";
	if (#started == 1) {
	mes @npc$;
	mes "Your Time Play Timer is ongoing.";
	mes "You currently have [^FF0000"+#EVENTPOINTS+"^000000] Time Play points.";
	close;
	end;
	}
	if (BaseLevel < 255) || (JobLevel < 120) {
	mes @npc$;
	mes "You must be level ^FF0000255^000000 and job level ^FF0000120^000000 to use this npc.";
	close;
	}

	mes @npc$;
	mes "Good day "+strcharinfo(0)+",";
	mes "You currently have [^FF0000"+#EVENTPOINTS+"^000000] Time Play points.";
	mes "What would you like to do?";
	menu "Start Time Play",tp_start,"Rewards",tp_reward,"What is Time Play?",tp_info;

tp_info:
	next;
	mes @npc$;
	mes "In TimePlay event, You will earn ^FF0000+5^000000 TimePlay points for every ^FF000030^000000 minutes of staying online excluding Autotrading or @at.";
	mes " ";
	mes "^0000FFNote^000000: Everytime you log out your account, the timer will reset back to 0";
	close;


tp_reward:
	menu "Mithril Coin - ^FF0000700^000000 TP pts",tp_tcg;

tp_tcg:
	if (#EVENTPOINTS >= 700) {
		next;
		mes @npc$;
		mes "Here's your prize, Congratulations!";
		getitem 674,1;
		set .@total_points,-700;
		set #EVENTPOINTS,(#EVENTPOINTS+.@total_points);
		close;
	}
	else
	next;
	mes @npc$;
	mes "Sorry, you don't have enough Time Play points.";
	close;
	end;

tp_start:
	next;
	if (getgmlevel() > 0) {
	mes @npc$;
	mes "Hello "+strcharinfo(0)+", this NPC is for normal players only.";
	close;
	}
	mes @npc$;
	mes "Time Play Started.";
	close2;
	goto start_tp;

start_tp:
set #started, 1;
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
	
OnTimer30000:
if (checkvending() >= 1) {
	dispbottom "Time Play stopped because you were vending. Talk to me if you wish to start again.";
	set #started, 0;
	stopnpctimer;
	end;
}

OnTimer60000:
set @minute,@minute+1;
if (@minute >= 30) {
	set @minute,0;
	set .@point_amt,5;
	set .@total_points,+5;
	set #EVENTPOINTS,(#EVENTPOINTS+.@total_points);
	dispbottom "Time Play: You received "+.@point_amt+" points by staying in game for 30 minutes";
	set @consecutive_hour, @consecutive_hour+1;
	}

stopnpctimer;
initnpctimer;
end;

OnPCLogoutEvent:
	If (#started == 1) {
	set #started, 0;
	}
	end;
}

 

Script From : 

 

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

How to make this script to this features?

This script is Babbs Script

Timeplay Script:

Features:

1. To claim the prize you need to meet the time requirement

example: you need to finish 120 hours = 5 days to claim the prize

prize: 1 tcg card

2. you can start the timeplay and if you will logout you need to stop your timeplay.

Option:

[Timeplay Manager]

Start Timeplay

Stop Timeplay

Check Time Remaining

Claim Prize (But you need to finish first the 120 hrs requirement)

What is Time Play?

Exit

prontera,146,162,3	script	Time Play	553,{

	

	set @npc$, "[ ^0000FFTime Play^000000 ]";
	if (#started == 1) {
	mes @npc$;
	mes "Your Time Play Timer is ongoing.";
	mes "You currently have [^FF0000"+#EVENTPOINTS+"^000000] Time Play points.";
	close;
	end;
	}
	if (BaseLevel < 60) || (JobLevel < 50) {
	mes @npc$;
	mes "You must be level ^FF000060^000000 and job level ^FF000050^000000 to use this npc.";
	close;
	}

	mes @npc$;
	mes "Good day "+strcharinfo(0)+",";
	mes "You currently have [^FF0000"+#EVENTPOINTS+"^000000] Time Play points.";
	mes "What would you like to do?";
	menu "Start Time Play",tp_start,"Rewards",tp_reward,"What is Time Play?",tp_info;

tp_info:
	next;
	mes @npc$;
	mes "In TimePlay event, You will earn ^FF0000+5^000000 TimePlay points for every ^FF000030^000000 minutes of staying online excluding Autotrading or @at.";
	mes " ";
	mes "^0000FFNote^000000: Everytime you log out your account, the timer will reset back to 0";
	close;


tp_reward:
	menu "Mithril Coin - ^FF0000700^000000 TP pts",tp_tcg;

tp_tcg:
	if (#EVENTPOINTS >= 700) {
		next;
		mes @npc$;
		mes "Here's your prize, Congratulations!";
		getitem 674,1;
		set .@total_points,-700;
		set #EVENTPOINTS,(#EVENTPOINTS+.@total_points);
		close;
	}
	else
	next;
	mes @npc$;
	mes "Sorry, you don't have enough Time Play points.";
	close;
	end;

tp_start:
	next;
	if (getgmlevel() < 0) {
	mes @npc$;
	mes "Hello "+strcharinfo(0)+", this NPC is for normal players only.";
	close;
	}
	mes @npc$;
	mes "Time Play Started.";
	close2;
	goto start_tp;

start_tp:
set #started, 1;
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
	
OnTimer30000:
if (checkvending() >= 1) {
	dispbottom "Time Play stopped because you were vending. Talk to me if you wish to start again.";
	set #started, 0;
	stopnpctimer;
	end;
}

OnTimer60000:
set @minute,@minute+1;
if (@minute >= 30) {
	set @minute,0;
	set .@point_amt,5;
	set .@total_points,+5;
	set #EVENTPOINTS,(#EVENTPOINTS+.@total_points);
	dispbottom "Time Play: You received "+.@point_amt+" points by staying in game for 30 minutes";
	set @consecutive_hour, @consecutive_hour+1;
	}

stopnpctimer;
initnpctimer;
end;

OnPCLogoutEvent:
	If (#started == 1) {
	set #started, 0;
	}
	end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   4
  • Joined:  02/19/17
  • Last Seen:  

 

it can be abuse by using @afk command and autotrade

how to auto stop the time play if they are in afk mode, vending mode and idle mode

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   53
  • Joined:  02/12/17
  • Last Seen:  

1 hour ago, Akkarin said:

There are a large number of playtime/hourly points scripts that you can use with just a few edits to make it fit your requirements.

I'll look into it, thank you Akkarin.

Link to comment
Share on other sites

  • -2

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

There are a large number of playtime/hourly points scripts that you can use with just a few edits to make it fit your requirements.

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