Jump to content
  • 0

R> World Boss Script


Question

Posted

Hello, can someone please help me make a world boss script? Basically everyday around 08:00 server time, a mob (#1931) spawns. But 1 minute before it spawns, there will be an announcement about the world boss spawning in 1 minute. I found this script but it's not exactly what I had in mind. Maybe someone can help me modify it? Thank you!

 

13 answers to this question

Recommended Posts

  • 1
Posted
56 minutes ago, Pink Guy said:

Yeah, I modified it to a different time since I was just testing it out. The script didn't work unfortunately.

here fixed one

-	script	WorldBoss	-1,{

OnClock2021:
	.@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
	.@mins = .sleep / 60000;
	announce "[World Boss] A World Boss will appeared in " + .@mins + " minutes", bc_all, 0xFF0000;
	sleep .sleep;
	monster .@map$, 153, 175, "--ja--", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
	announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
	end;
	
OnWBossDied:
	announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
	getitem .rewardId, .rewardCount;
	end;
	
OnInit:
	setarray .townMap$[0],"prontera","geffen";
	.wBossId = 1001;		// monsterID
	.rewardId = 512;		// reward ID
	.rewardCount = 50;		// how many rewards
	.sleep = 60000; 		// 60000ms = 1min
	end;
}

 

  • Upvote 1
  • 0
Posted

you haven't tick my last answer as answer and upvote it  , btw here the modified script

-	script	WorldBoss	-1 {

OnClock0800:
OnNPCKillEvent:
	.@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
	.@mins = .sleep / 60000;
	announce "[World Boss] A World Boss will appeared in " + .@mins + " minutes";
	sleep .sleep;
	areamonster .@map$, 0, 0, 250, 250, "--ja--", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
	announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
	end;
	
OnWBossDied:
	announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
	getitem .rewardId, .rewardCount;
	end;
	
OnInit:
	setarray .townMap$[0],"prontera","geffen","morocc","payon","izlude","alberta","aldebaran","brasilis","dewata"; //to fill
	.wBossId = 1931;		// monsterID
	.rewardId = 512;		// reward ID
	.rewardCount = 50;		// how many rewards
	.sleep = 60000; 		// 60000ms = 1min
	end;
}

 

  • Upvote 1
  • 0
Posted

good evening. Could you put some option for me to summon the monster in full size? I can do this to invoke via npc / mobs. I want to be able to do this on your NPC.

Thank you very much in advance.

  • 0
Posted
On 1/30/2018 at 11:33 AM, Tassadar said:

good evening. Could you put some option for me to summon the monster in full size? I can do this to invoke via npc / mobs. I want to be able to do this on your NPC.

Thank you very much in advance.

what you means by full size?

  • 0
Posted
On 1/29/2018 at 5:57 PM, Hurtsky said:

you haven't tick my last answer as answer and upvote it  , btw here the modified script


-	script	WorldBoss	-1 {

OnClock0800:
OnNPCKillEvent:
	.@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
	.@mins = .sleep / 60000;
	announce "[World Boss] A World Boss will appeared in " + .@mins + " minutes";
	sleep .sleep;
	areamonster .@map$, 0, 0, 250, 250, "--ja--", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
	announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
	end;
	
OnWBossDied:
	announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
	getitem .rewardId, .rewardCount;
	end;
	
OnInit:
	setarray .townMap$[0],"prontera","geffen","morocc","payon","izlude","alberta","aldebaran","brasilis","dewata"; //to fill
	.wBossId = 1931;		// monsterID
	.rewardId = 512;		// reward ID
	.rewardCount = 50;		// how many rewards
	.sleep = 60000; 		// 60000ms = 1min
	end;
}

 

Hello bro. I've tested it and it's not working. I can load the NPC but the NPC doesn't start. Not even the announcement. :(

  • 0
Posted
6 minutes ago, Pink Guy said:

Hello bro. I've tested it and it's not working. I can load the NPC but the NPC doesn't start. Not even the announcement. :(

it will started at 0800 at server time like you stated on top.

  • 0
Posted
22 minutes ago, Hurtsky said:

it will started at 0800 at server time like you stated on top.

Yeah, I modified it to a different time since I was just testing it out. The script didn't work unfortunately.

  • 0
Posted
35 minutes ago, Pink Guy said:

Yeah, I modified it to a different time since I was just testing it out. The script didn't work unfortunately.

Try to Comment the NPCKillEvent line

  • 0
Posted

how do I do to endorse for an hour the NPC kill the monster in case nobody fights with it? You know what it is ... I do not want two monsters left.

Thank you very much in advance.

  • 0
Posted
7 hours ago, Hurtsky said:

here fixed one


-	script	WorldBoss	-1,{

OnClock2021:
	.@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
	.@mins = .sleep / 60000;
	announce "[World Boss] A World Boss will appeared in " + .@mins + " minutes", bc_all, 0xFF0000;
	sleep .sleep;
	monster .@map$, 153, 175, "--ja--", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
	announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
	end;
	
OnWBossDied:
	announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
	getitem .rewardId, .rewardCount;
	end;
	
OnInit:
	setarray .townMap$[0],"prontera","geffen";
	.wBossId = 1001;		// monsterID
	.rewardId = 512;		// reward ID
	.rewardCount = 50;		// how many rewards
	.sleep = 60000; 		// 60000ms = 1min
	end;
}

 

Thank you! It works perfectly fine!

  • 0
Posted
10 hours ago, Tassadar said:

how do I do to endorse for an hour the NPC kill the monster in case nobody fights with it? You know what it is ... I do not want two monsters left.

Thank you very much in advance.

create another thread for this maybe? because answer cant be tick if youre not the owner of thread

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