Jump to content
  • 0

R> World Boss Script


Pink Guy

Question


  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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!

 

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   57
  • Joined:  11/24/16
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   57
  • Joined:  11/24/16
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

Yeah, still haven't tried them but thanks! I really appreciate your help. I'll let you know once I've tried it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.02
  • Content Count:  107
  • Reputation:   5
  • Joined:  07/21/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   57
  • Joined:  11/24/16
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   57
  • Joined:  11/24/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   57
  • Joined:  11/24/16
  • Last Seen:  

sorry double post

Edited by Hurtsky
double post
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  52
  • Topics Per Day:  0.02
  • Content Count:  107
  • Reputation:   5
  • Joined:  07/21/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  131
  • Topics Per Day:  0.03
  • Content Count:  371
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   57
  • Joined:  11/24/16
  • Last Seen:  

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

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