Jump to content

Daily Monster Hunt v1.2


Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

File Name: Daily Monster Hunt v1.2

File Submittersandbox

File Submitted: 11 Mar 2014

File Category: Game, Event, Quest

Content Author: sandbox

 

 

QENCet5.png

 

 


Script Details & Usage

It's a script that can hand out dynamic 'kill this' quests for your players without the need of questlog. It assigns a player a random amount of a random monster to kill within a random amount of time. Randomception!

Installation
  • Enable the script on your NPC folder
  • Carefully read the comments I made inside the script and make sure to configure it properly

Terms & Conditions
  • You are not allowed to reproduce or make profit of this script
  • You are not allowed to take credit for this script. Though you can modify/edit it to your liking.
  • I can give you support, but please, do not message me.
  • It is your own responsibility to create a backup before implementing anything new.

Pastebin: http://rathena.org/board/pastebin/4dcsjtt3buvi/

 

Special thanks to: @KeyWorld, @Kido, @nanakiwurtz,@NeoMind for helping me with this script!

hunt.txt

  • Upvote 4
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

How to make this available to use everytime? I want to remove the day interval.. Non stop questing

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Comment out these lines

	if(gettimetick(2) < HuntDelay) {
		mes "You can only do this quest once a day!";
		close;
	}

	HuntDelay = gettimetick(2)+86400; //Once a day only.
Link to comment
Share on other sites

  • 2 months later...

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

sorry i get hang in this script ,because when i doing this quest my network has disconnect so how to disable the quest with my char?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

sir, how to change this to cashpoint ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Find

getitem .Reward,.RewAmt;

Replace

#CASHPOINTS+=.RewAmt;
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

 

Find

getitem .Reward,.RewAmt;

Replace

#CASHPOINTS+=.RewAmt;

 

thanks sir :)

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

How to reset if a player encounters a bug on this script? Still 0 out of 22 monsters killed for example when clicking the npc. :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Just need to wait for the next day.. Or delete the variables attached to the character in global_reg_value

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  04/25/14
  • Last Seen:  

OMG thanks for the reply sandbox, let me try that.


Just note though, even a day has passed, when they click the NPC, the npc will tell them this: http://gyazo.com/2446f52edbbb8cf18105d34165efa04a

 

So no way to take the quest again. I have to delete some entries in global_reg_value manually? Is this a bug on the script?


Also, when they got disconnected while taking the quest, when they got back and continue, it only tells them to kill the max amt of monster when they have already killed that amount within the given time. Can we enhance the script that will tell them about delay in dispbottom?

Edited by cassie24
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

How to change to 1 char per account only sir?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  173
  • Reputation:   0
  • Joined:  06/07/14
  • Last Seen:  

How to change to 1 char per account only sir? I will only add # in front of these variables: HuntDelay, Hunt, Amt, Hunter, HuntStart, HuntEnd, HuntCount, Time? Help pls..

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  09/10/14
  • Last Seen:  

Ano ung mga papalitan Sir? Pag click ko kasi sa NPC walang nangyayari eh.

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

how to remove the timer sometimes this script is a bit difficult example for low rate server " kill 99 lunatics in 60 seconds" lol

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   21
  • Joined:  01/31/12
  • Last Seen:  

how to remove the timer sometimes this script is a bit difficult example for low rate server " kill 99 lunatics in 60 seconds" lol

 

Try this:

 

//======Name========================================
// Daily Monster Hunt
//======Version=====================================
// 1.2
//======Author(s)===================================
// Sandbox
//======Comments====================================
// This NPC allows your player to hunt a random amount
// of a random monster
// *randomception!*
// If the player successfully hunts the monster
// he'll receive a reward!
//======Credits=====================================
// KeyWorld, nanakiwurtz, NeoMind, Kido
// Thanks for helping me out guize!
// Modified by Luciar for Yonko
//==================================================
 
prontera,100,200,3	script	Hunting Challenge	78,{
 
mes .Npc_Name$;
	if(Hunter) {
	mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt
 
+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
	close;
	}
	if(gettimetick(2) < HuntDelay) {
		mes "You can only do this quest once a day!";
		close;
	}

mes "Hello, do you want to take on the Monster Hunting Challenge?","If you manage to kill them, you'll receive a reward!"; 
if(select("Bring it on!:How about no?")==2) {
	mes .Npc_Name$;
	mes "Fine!";
	close;
}
 
next;
mes .Npc_Name$;
	Hunt = .Mob_List[rand(getarraysize(.Mob_List))];
	Amt = rand (50,100); //Amount of mob to hunt
	Hunter++;
 
mes "You have to hunt ^0000FF"+Amt+" "+getmonsterinfo(Hunt,0)+"^000000!";
next;
mes .Npc_Name$;
mes "Go go go!";
close2;
HuntDelay = gettimetick(2)+86400; //Once a day only.
end;

 
//----------Config----------
 
OnInit:
	.Npc_Name$ = "[^0000FF NPC ^000000]";
	setarray .Mob_List[0],1002,1007,1063; //Mobs to hunt. Default: Poring, Fabre, Lunatic
	.Reward = 607; //Reward ID
	.RewAmt = 10; //Reward Amount
	end;
 
OnNPCKillEvent:
	if(Hunter > 0) {
		if(killedrid == Hunt) {
			HuntCount++;
			dispbottom "You have killed "+HuntCount+"/"+Amt+" "+getmonsterinfo(Hunt,0)+"s, keep it up!";
			if(HuntCount >= Amt) {
				dispbottom strnpcinfo(1)+": Congratulations! You did it!";
				getitem .Reward,.RewAmt;
				Hunt = 0;
				Hunter = 0;
				HuntCount = 0;
				Amt = 0;
			}
		}
	}
end;
}
Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   0
  • Joined:  04/18/15
  • Last Seen:  

Using this on my server :)

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   6
  • Joined:  12/10/11
  • Last Seen:  

How to make the quest only for 1 character (account type) not for every characters?

Link to comment
Share on other sites


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

On 2/14/2017 at 0:19 AM, idLaZ said:

How to make the quest only for 1 character (account type) not for every characters?

find all 

HuntDelay 

and change to

#HuntDelay

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   6
  • Joined:  12/10/11
  • Last Seen:  

Thank you, Emistry!

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/15/17
  • Last Seen:  

How do i change the delay from 1 day to 1 hour ?

thanks


//======Name========================================
// Daily Monster Hunt
//======Version=====================================
// 1.2
//======Author(s)===================================
// Sandbox
//======Comments====================================
// This NPC allows your player to hunt a random amount
// of a random monster
// *randomception!*
// If the player successfully hunts the monster
// he'll receive a reward!
//======Credits=====================================
// KeyWorld, nanakiwurtz, NeoMind, Kido
// Thanks for helping me out guize!
// Modified by Luciar for Yonko
//==================================================
 
prontera,100,200,3	script	Hunting Challenge	78,{
 
mes .Npc_Name$;
	if(Hunter) {
	mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt
 
+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
	close;
	}
	if(gettimetick(2) < HuntDelay) {
		mes "You can only do this quest once a day!";
		close;
	}

mes "Hello, do you want to take on the Monster Hunting Challenge?","If you manage to kill them, you'll receive a reward!"; 
if(select("Bring it on!:How about no?")==2) {
	mes .Npc_Name$;
	mes "Fine!";
	close;
}
 
next;
mes .Npc_Name$;
	Hunt = .Mob_List[rand(getarraysize(.Mob_List))];
	Amt = rand (50,100); //Amount of mob to hunt
	Hunter++;
 
mes "You have to hunt ^0000FF"+Amt+" "+getmonsterinfo(Hunt,0)+"^000000!";
next;
mes .Npc_Name$;
mes "Go go go!";
close2;
HuntDelay = gettimetick(2)+86400; //Once a day only.
end;

 
//----------Config----------
 
OnInit:
	.Npc_Name$ = "[^0000FF NPC ^000000]";
	setarray .Mob_List[0],1002,1007,1063; //Mobs to hunt. Default: Poring, Fabre, Lunatic
	.Reward = 607; //Reward ID
	.RewAmt = 10; //Reward Amount
	end;
 
OnNPCKillEvent:
	if(Hunter > 0) {
		if(killedrid == Hunt) {
			HuntCount++;
			dispbottom "You have killed "+HuntCount+"/"+Amt+" "+getmonsterinfo(Hunt,0)+"s, keep it up!";
			if(HuntCount >= Amt) {
				dispbottom strnpcinfo(1)+": Congratulations! You did it!";
				getitem .Reward,.RewAmt;
				Hunt = 0;
				Hunter = 0;
				HuntCount = 0;
				Amt = 0;
			}
		}
	}
end;
}




how do i make the quest from 1 day delay change to 1 hour delay ?



thanks in advance

 

Edited by Cyro
Please use code box next time
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

11 minutes ago, kavo said:

How do i change the delay from 1 day to 1 hour ?

thanks


//======Name========================================
// Daily Monster Hunt
//======Version=====================================
// 1.2
//======Author(s)===================================
// Sandbox
//======Comments====================================
// This NPC allows your player to hunt a random amount
// of a random monster
// *randomception!*
// If the player successfully hunts the monster
// he'll receive a reward!
//======Credits=====================================
// KeyWorld, nanakiwurtz, NeoMind, Kido
// Thanks for helping me out guize!
// Modified by Luciar for Yonko
//==================================================
 
prontera,100,200,3	script	Hunting Challenge	78,{
 
mes .Npc_Name$;
	if(Hunter) {
	mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt
 
+"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
	close;
	}
	if(gettimetick(2) < HuntDelay) {
		mes "You can only do this quest once a day!";
		close;
	}

mes "Hello, do you want to take on the Monster Hunting Challenge?","If you manage to kill them, you'll receive a reward!"; 
if(select("Bring it on!:How about no?")==2) {
	mes .Npc_Name$;
	mes "Fine!";
	close;
}
 
next;
mes .Npc_Name$;
	Hunt = .Mob_List[rand(getarraysize(.Mob_List))];
	Amt = rand (50,100); //Amount of mob to hunt
	Hunter++;
 
mes "You have to hunt ^0000FF"+Amt+" "+getmonsterinfo(Hunt,0)+"^000000!";
next;
mes .Npc_Name$;
mes "Go go go!";
close2;
HuntDelay = gettimetick(2)+86400; //Once a day only.
end;

 
//----------Config----------
 
OnInit:
	.Npc_Name$ = "[^0000FF NPC ^000000]";
	setarray .Mob_List[0],1002,1007,1063; //Mobs to hunt. Default: Poring, Fabre, Lunatic
	.Reward = 607; //Reward ID
	.RewAmt = 10; //Reward Amount
	end;
 
OnNPCKillEvent:
	if(Hunter > 0) {
		if(killedrid == Hunt) {
			HuntCount++;
			dispbottom "You have killed "+HuntCount+"/"+Amt+" "+getmonsterinfo(Hunt,0)+"s, keep it up!";
			if(HuntCount >= Amt) {
				dispbottom strnpcinfo(1)+": Congratulations! You did it!";
				getitem .Reward,.RewAmt;
				Hunt = 0;
				Hunter = 0;
				HuntCount = 0;
				Amt = 0;
			}
		}
	}
end;
}




how do i make the quest from 1 day delay change to 1 hour delay ?



thanks in advance

 

Edit This Line
 

HuntDelay = gettimetick(2)+86400; //Once a day only. 

to

HuntDelay = gettimetick(2)+3600; //Once every hour

PS Use codebox for scripts


Edited by crazyarashi
Additional Information
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/15/17
  • Last Seen:  

1 hour ago, crazyarashi said:

Edit This Line
 


HuntDelay = gettimetick(2)+86400; //Once a day only. 

to


HuntDelay = gettimetick(2)+3600; //Once every hour

PS Use codebox for scripts


thanks alot , will try again

Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   0
  • Joined:  10/13/17
  • Last Seen:  

Hi, theres a bug that I've encountered. I have an ongoing quest then after I reloadscript the mob counting stops and the npc keeps telling me that i have to kill 23/70 more porings but when I tried to kill it again it is still 23/70. How will i solved this. btw my huntdelay time is every 1hr.

 

Link to comment
Share on other sites

  • 10 months later...
  • 1 year later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  11/12/14
  • Last Seen:  

edit the mission time from 5 to 20 minutes, the counter respects the time placed, but within the game shows the countdown starts from 99

Any way to show full time?

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