Jump to content
  • 0

Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 1
Posted

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;
}

 

  • 0
Posted (edited)
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...