Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Feb 22 2017 12:35 PM
  • Last Updated: Feb 22 2017 12:35 PM
  • File Size: 3.36K
  • Views: 315
  • Downloads: 13
  • Approved by: Ridley
  • Approved on: 22 February 2017 - 01:08 PM

Download SetQuest2 1.0

- - - - -
setquest2 quest log



Hello,
This plugin adds the setquest2 script command that allows you to add a quest with your own time limit, ignoring the one in quest_db, thus allowing you to, for example, make a quest end at a determined time next day independently of when it was originally given.
*setquest(<ID>,<Time Limit>)

Place quest of <ID> that will expire at <Time Limit> in the users quest log, the state of which is "active".

Examples:

- Ask the player to come back in a random number of minutes (1 ~ 3)
prontera,150,150,4	script	SetQuest2	1_m_01,{
	.@p = questprogress(7128,PLAYTIME);
	if (.@p == 1) {
		mes "Come back later!";
	} else {
		if (.@p == 2) {
			mes "You came back!";
			getitem Red_Potion, 1;
			erasequest 7128;
		}
		.@i = rand(1, 3);
		mes "Come back in " + .@i + " minutes";
		setquest2 7128, gettimetick(2) + (.@i * 60);
	}
	close;
}

- Ask the player to come back tomorrow (next day at 00:00)
prontera,150,152,4	script	SetQuest2b	1_m_01,{
	.@p = questprogress(7126,PLAYTIME);
	if (.@p == 1) {
		mes "Come back later!";
	} else {
		if (.@p == 2) {
			mes "You came back!";
			getitem Red_Potion, 1;
			erasequest 7126;
		}
		.@i = 86400 - gettimetick(1);
		mes "Come back tomorrow";
		setquest2 7126, gettimetick(2) + .@i;
	}
	close;
}

If you find any bug let me know.

What's New in Version 1.0 (See full changelog)

  • 1.0 - Initial release




Random Files





  • 282 Total Files
  • 16 Total Categories
  • 97 Total Authors
  • 186151 Total Downloads
  • Soul Menhir Latest File
  • meko Latest Submitter

0 user(s) are online (in the past 15 minutes)

0 members, 0 guests, 0 anonymous users