Jump to content
  • 0

Monster of the Day NPC


mawjustin

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

Similar Race of the Day, may I ask for Monster of the Day?

A specific monster with increased XP, gives zeny, and custom item drop, similar to Race of the Day.
 

 

Edited by mawjustin
add details
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

You can try 

 

prontera,150,150,0	script	Monster Of The Day	835,{
	end;
		
	OnNPCKillEvent:
		if (getmonsterinfo(killedrid, MOB_NAME) != .motd$) end;
		.@party_id = getcharid(1);
		.map$ = strcharinfo(3);
		if (!.@party_id && rand(100) < .chance) {
			BaseExp += .base_exp_bonus;
			JobExp += job_exp_bonus;
			Zeny += .zeny;
			getitem .item, 1;
		} else {
			addrid(2, 0, .@party_id);
			if (strcharinfo(3) == .map$ && Hp && rand(100) < .chance) {
				BaseExp += .base_exp_bonus;
				JobExp += .job_exp_bonus;
				Zeny += .zeny;
				getitem .item, 1;
			}
		}
		end;
	
	OnClock0000:
		.motd$ = .mobs$[rand(getarraysize(.mobs$))];
		delwaitingroom;
		waitingroom "[MOTD] " + .motd$, 0;
		announce "Monster of the day has been changed. New monster of the day is " + .motd$, 0;
		end;
	
	OnInit:
		.zeny = 1000; // zeny reward
		.item = 1000; // item reward
		.job_exp_bonus = 1000; // base exp bonus
		.base_exp_bonus = 1000; // job exp bonus
		setarray .mobs$[0], "Scorpion", "Poring", "Fabre"; // mob names
		.chance = 100; // chance to get bonus
		.motd$ = .mobs$[rand(getarraysize(.mobs$))];
		delwaitingroom;
		waitingroom "[MOTD] " + .motd$, 0;
		announce "Monster of the day has been changed. New monster of the day is " + .motd$, 0;
		end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

On 4/5/2020 at 10:45 PM, Patskie said:

You can try 

 


prontera,150,150,0	script	Monster Of The Day	835,{
	end;
		
	OnNPCKillEvent:
		if (getmonsterinfo(killedrid, MOB_NAME) != .motd$) end;
		.@party_id = getcharid(1);
		.map$ = strcharinfo(3);
		if (!.@party_id && rand(100) < .chance) {
			BaseExp += .base_exp_bonus;
			JobExp += job_exp_bonus;
			Zeny += .zeny;
			getitem .item, 1;
		} else {
			addrid(2, 0, .@party_id);
			if (strcharinfo(3) == .map$ && Hp && rand(100) < .chance) {
				BaseExp += .base_exp_bonus;
				JobExp += .job_exp_bonus;
				Zeny += .zeny;
				getitem .item, 1;
			}
		}
		end;
	
	OnClock0000:
		.motd$ = .mobs$[rand(getarraysize(.mobs$))];
		delwaitingroom;
		waitingroom "[MOTD] " + .motd$, 0;
		announce "Monster of the day has been changed. New monster of the day is " + .motd$, 0;
		end;
	
	OnInit:
		.zeny = 1000; // zeny reward
		.item = 1000; // item reward
		.job_exp_bonus = 1000; // base exp bonus
		.base_exp_bonus = 1000; // job exp bonus
		setarray .mobs$[0], "Scorpion", "Poring", "Fabre"; // mob names
		.chance = 100; // chance to get bonus
		.motd$ = .mobs$[rand(getarraysize(.mobs$))];
		delwaitingroom;
		waitingroom "[MOTD] " + .motd$, 0;
		announce "Monster of the day has been changed. New monster of the day is " + .motd$, 0;
		end;
}

 

Thank you, I'll test this out.

 

EDIT @Patskie it's not giving rewards..

Edited by mawjustin
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...