Jump to content

Recommended Posts

Posted

If you use rA, it's implemented in latest SVN. Try to check your /conf/battle/monster.conf

// Whether or not to spawn the mvp tomb.
// See http://irowiki.org/wiki/MVP#Gravestone
mvp_tomb_enabled: yes

  • 2 months later...
  • 2 months later...
  • 3 months later...
Posted (edited)

Ok i use V.4  for rathena with eathena It's work !! 

 

 

But i want to add Tomb delay when MVP die and respwn

 

Tomb will show when MVP die for 5 sec

Tomb will hidden when MVP respawn for 5 sec

 

It like in Offical Server.

Edited by akanejung
  • 4 weeks later...
  • 2 weeks later...
Posted (edited)

Hmm i have that line., I followed the main topic first post.

here's what i got on my npc.c

/**
MVP Tomb System. [malufett]
**/
static int totalnpctomb = 0;
int npc_mvp_tomb(struct mob_data *md, struct map_session_data *sd){
	char w1[256], w2[256], w3[256];
	struct npc_data *nd = NULL;
	int count;
   nullpo_ret(md);
	if(sd){
	 struct mob_data *boss_md = map_getmob_boss(sd->bl.m); // Search for Boss on this Map and ignore summoned Boss
	   if(  boss_md != NULL &&
					   boss_md->bl.prev != NULL &&
						 md->bl.id == boss_md->bl.id)
	 {
		 int x = boss_md->bl.x, y = boss_md->bl.y;
		 sprintf(w2, "Tomb#%d", boss_md->class_);
		 sprintf(w1, "%s, %d, %d, 1", map[boss_md->bl.m].name, x , y);
		 sprintf(w3, "n%d::OnMyMobDead", totalnpctomb);
		 sprintf(w2, "%s::n%d", w2, count=totalnpctomb++);
		 safestrncpy(md->npc_event, w3, sizeof(md->npc_event));
		 npc_parse_duplicate(w1,"duplicate(tomb_stone)",w2,"565", "-", "-", "MVP_TOMB"+boss_md->class_);
		 if(md->spawn_timer != INVALID_TIMER){
		  const struct TimerData * timer_data = get_timer(md->spawn_timer);
		  pc_setreg(sd, add_str("@spawn_delay"), DIFF_TICK(timer_data->tick, gettick())  + 60);
		 }
		 npc_event(sd,md->npc_event,0);
		 safestrncpy(md->npc_event, "", sizeof(md->npc_event));
		 if(SCRIPT_MAX_ARRAYSIZE > totalnpctomb) totalnpctomb = 0;
	 }
	}else{
	 sprintf(w1, "n%d", md->target_id);
	 nd = npc_name2id(w1);
	 if (nd  != NULL){
		 npc_unload(nd);
		 md->target_id = 0;
		 totalnpctomb--;
	 }
	}
	return count;
}

will this working on eathena as well?

i`m useing 3ceam

 

i have try and not working! haha

 

headache

Edited by whitehawk_ro
  • 10 months later...
  • 3 years later...
Posted (edited)

Hello, sorry to revive the topic... I'm using the latest eAthena rev, manually added without any problem...

The only problem is that tombs do not disappear!

598882b2d12b8_WhatsAppImage2017-08-07at10_03_32.jpeg.fa07ee47889a2db9b064c97e891acb74.jpeg

 

Thank you in advance!

 

@Edit:

debug show:

[07/Aug/2017 07:30][Warning]: npc_parsename: Duplicate unique name in file 'arse_mob: Unknown mob ID %d (file '%s', line '%d').
', line'1'. Renaming 'helpony@moc_pryd06' to '1_124_101_85'.
[07/Aug/2017 07:30][Debug]: this npc:
   display name 'Tomb#1511|4039238'
   unique name 'helpony@moc_pryd06'
   map=moc_pryd06, x=101, y=85
[07/Aug/2017 07:30][Debug]: other npc:
   display name 'Tomb#1511|3788501'
   unique name 'helpony@moc_pryd06'
   map=moc_pryd06, x=103, y=84

 

Edited by dragonivell

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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