Jump to content
  • 0

Drop custom Naght Sieger Endless


lLoydxx

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   1
  • Joined:  10/30/20
  • Last Seen:  

Good morning community.

 

Could someone help me I need a command / script that when killing Naght Sieger in the Endless Tower he would reward 30 bloody branches only for those who killed him automatically.

 

Please help me.

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   9
  • Joined:  11/27/16
  • Last Seen:  

you can implement onpckillevent function

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   1
  • Joined:  10/30/20
  • Last Seen:  

On 1/24/2022 at 8:40 PM, BlazingSpear said:

you can implement onpckillevent function

Thanks, I looked for something related here on the forum I made the changes I needed and it worked!

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   1
  • Joined:  10/30/20
  • Last Seen:  

Hello guys, could you help me with these 3 problems?

 

1 - I tried to adjust this Cheffenia so that it starts every 5th and 20th of the month at 00:00 being open for 24 hrs on those 2 days, and I was not successful can anyone help me?

 

2 - I'm using the standard EndlessTower of the emulator but with an extra getitem I added, I tried to make the leader of the group receive 30 Bloody Twigs when killing Naght Sieger but nothing happens. This was the part I tried to add to make it work.

I added this to the Endless Tower script:

-    script    naghtsieger#drop    -1,{

OnNPCKillEvent:
    if( killedrid == 1956 ){
announce "[Torre Sem Fim]: Naght Sieger acaba de ser morto pelo grupo "+ getpartyname(getcharid(1)) +", eles receberam 30 Galhos Sangrentos como recompensa! Parabéns!", bc_all, "0x00ff99";
getitem 12103,30;
end;

}
}

3 - The Nidhogg instance is the emulator's default but when creating a group with 2 players it does not allow me to enter the instance or the other player, what should I do to correct it?

cheffenia.txt EndlessTower.txt NydhoggsNest.txt

Edited by Mael
Use codebox
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

@lLoydxxfirst of all I've spend a lot of time to optimize the Ceffenia script u've attached. My language knowledge u used in the script is equals to zero? Portuguese I think.

I haven't the time to correct the other scripts yet but if no one else will done it I will come back later and fix it.

 

Optimizations

U've added the if statement (gettime) on top of the script. This will only triggerd when the script starts.

The event OnClock2357 triggers every day at the same time and without any check. U need to add the if statement on this label. The day u want to start-1. I've removed the sleep timer cause a 24 hours sleep isn't a good idea.

I've added an announcement if the day is the 5th or 20th to announce the event will stop in x minutes(3,2,1) and that's what I mean with my portuguese knowledge. I hope I've write the correctly sentence?

 

U need another event OnClock0000 and then check if it's the 5th or 20th of a month and enable the npc. Of course if it is the 6th or 21th warp players out of map. Do the announcement and disable the npc.

 

I've added a check OnInit if it is the 5th or 20th of a month to enable or disable the event. Cuz' if the server crashes or u need to perform a reloadscript the event will stop. It's stupid if the event should enabled 24hrs and the server crash after 2hrs as example.

 

I corrected a lot of the formatting cuz' it's know much better to read and understand.

 

I've replaced the menu with switch(select()) it's much easier to read and u don't need the thousands of labels. Just cases for each menu point.

Also removed the next; on each label and put it before select.

 

Monsters, Mapflags or Warp Portals should be on the bottom of a script not in the middle.

 

//the script should be do what u want. I'm not able to test it cuz' I'm on mobile and a few hundred miles from my home.

As I already said at beginning I'll change and optimize the other scripts later if now one already done it.

 

Please let me know if everything works.

cheffenia changed.txt

 

 

Rynbef~

Edited by Rynbef
Mistake on file uploading
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

@lLoydxx

2nd  Endless Tower

on line 2124 the monster "Naght Sieger" have their own label when he killed and this will trigger if he's died. I added ur request. If some of a player of the party kill Naght Sieger a loop though the party members will start and give the item to the party master if he's online.

 

EndlessTower changed.txt

//NOTE: Not tested

 

Rynbef~

Edited by Rynbef
Added Note
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   1
  • Joined:  10/30/20
  • Last Seen:  

On 2/5/2022 at 4:14 AM, Rynbef said:

@lLoydxx

2nd  Endless Tower

on line 2124 the monster "Naght Sieger" have their own label when he killed and this will trigger if he's died. I added ur request. If some of a player of the party kill Naght Sieger a loop though the party members will start and give the item to the party master if he's online.

 

EndlessTower changed.txt 93.24 kB · 0 downloads

//NOTE: Not tested

 

Rynbef~

Thank you for your help.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

@lLoydxxNydhoggsNest: Does every character in the party have the minimum requirement of base level 70?

U can change it by searching for: instance_check_party

 

Rynbef~

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  36
  • Reputation:   1
  • Joined:  10/30/20
  • Last Seen:  

16 hours ago, Rynbef said:

@lLoydxxNydhoggsNest: Todos os personagens do grupo têm o requisito mínimo de nível básico 70?

Você pode alterá-lo pesquisando por: instance_check_party

 

Rynbef~

Yes, the maximum level 255 is all, but I'm thinking it's some script I left with // could you tell me which npcs should be active in this instance?

Link to comment
Share on other sites

  • 0

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

On 1/27/2022 at 2:13 PM, lLoydxx said:

2 - I'm using the standard EndlessTower of the emulator but with an extra getitem I added, I tried to make the leader of the group receive 30 Bloody Twigs when killing Naght Sieger but nothing happens. This was the part I tried to add to make it work.

all instance's monster have their own event label, you have to find the event label for the monster, and edit there.

OnTimer10500:
	set .@map$, instance_mapname("6@tower");
	mapannounce .@map$,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
	stopnpctimer;
	monster .@map$,156,147,"Naght Sieger",1956,1,instance_npcname("#4th Beeper")+"::OnMyMobDead";   // <-------------- FIND THIS
	end;

OnMyMobDead:   // <-------------- FIND THIS
	donpcevent instance_npcname("Lost Soul#102")+"::OnEnable";

	// ADD THESE
	//announce "[Torre Sem Fim]: O grupo "+ getpartyname( getcharid(1) ) +" acaba de matar Naght Sieger que dropou 30 Galhos Sangrentos como recompensa! Parab閚s a todos!", bc_all, "0x00ff99";
	announce "[Torre Sem Fim]: Naght Sieger acaba de ser morto pelo grupo "+ getpartyname(getcharid(1)) +", eles receberam 30 Galhos Sangrentos como recompensa! Parabéns!", bc_all, "0x00ff99";
	getitem 12103,30;
	end;
}

 

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