Jump to content
  • 0

Tomb MVP problem


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

http://rathena.org/b...added-features/

@battle.h

// rAthena

int max_third_parameter;

int atcommand_max_stat_bypass;

+// Tomb System [malufett]

+int show_mvp_tomb;

@battle.c

**/

{ "max_third_parameter", &battle_config.max_third_parameter, 20, 0, INT_MAX, },

{ "atcommand_max_stat_bypass", &battle_config.atcommand_max_stat_bypass, 0, 0, 100, },

+{ "skill_amotion_leniency", &battle_config.skill_amotion_leniency, 90, 0, 100, },

+// Tomb System [malufett]

+{ "show_mvp_tomb", &battle_config.show_mvp_tomb, 1, 0, 1 },

// Should MVP slaves retain their target when summoned back to their master?

mob_slave_keep_target: yes

+// Show Tomb when MVP got killed?

+show_mvp_tomb: yes

@mob.c

md->spawn_timer = add_timer(gettick()+spawntime, mob_delayspawn, md->bl.id, 0);

+if( md->status.mode&MD_BOSS &&

+ battle_config.show_mvp_tomb){//Tomb System [malufett]

+ struct map_session_data *sd = map_id2sd(md->target_id);

+ md->target_id = npc_mvp_tomb(md, sd );

+}

int mob_spawn (struct mob_data *md)

{

int i=0;

unsigned int tick = gettick();

int c =0;

+if(md->status.mode&MD_BOSS &&

+ battle_config.show_mvp_tomb){//Tomb System [malufett]

+ npc_mvp_tomb(md, NULL);

+}

clif_clearunit_delayed(&md->bl, CLR_DEAD, tick+250);

if(!md->spawn) //Tell status_damage to remove it from memory.

return 5; // Note: Actually, it's 4. Oh well...

+if( mvp_sd && md->status.mode&MD_BOSS && battle_config.show_mvp_tomb)//Tomb System [malufett]

+ md->target_id = mvp_sd->bl.id;

@npc.c

npc_debug_warps_sub(map[m].npc[i]);

}

+/**

MVP Tomb System. [malufett]

+**/

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

+

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

+ const struct TimerData * timer_data = get_timer(md->spawn_timer);

+

+ if(md->spawn_timer == INVALID_TIMER)

+ return 1;

+

+ sprintf(w2, "Tomb#%d|%d", boss_md->class_, (DIFF_TICK(timer_data->tick, gettick()) + 60));

+ sprintf(w1, "%s, %d, %d, 1", map[boss_md->bl.m].name, x , y);

+ sprintf(w3, "%s@%s", sd->status.name, map[boss_md->bl.m].name);

+ sprintf(w2, "%s::%s", w2, w3);

+ sprintf(w3, "%s::OnMyMobDead", w3);

+

+ safestrncpy(md->npc_event, w3, sizeof(md->npc_event));

+ npc_parse_duplicate(w1,"duplicate(tomb_stone)",w2,"565", "-", "-", "MVP_TOMB"+boss_md->class_);

+

+ npc_event(sd,md->npc_event,0);

+ safestrncpy(md->npc_event, "", sizeof(md->npc_event));

+ return sd->bl.id;

+ }

+ }else{

+ struct map_session_data *msd = map_id2sd(md->target_id);

+

+ if(msd != NULL){

+ sprintf(w1, "%s@%s", msd->status.name, map[md->bl.m].name);

+ nd = npc_name2id(w1);

+ if (nd != NULL){

+ npc_unload(nd);

+ md->target_id = 0;

+ }

+ }

+ }

+ return 0;

+}

@npc.h

int npc_duplicate4instance(struct npc_data *snd, int m);

int npc_cashshop_buy(struct map_session_data *sd, int nameid, int amount, int points);

+int npc_mvp_tomb(struct mob_data *md, struct map_session_data *sd);

does this guide need to follow? because i found that some of the word doesn't contain inside the files and i think that guide is old... so i just follow inside this MVP_Tomb_Added_Features_15981_v1.1.PATCH and compile my server ... but even i compiled the server successfully and after killed a mvp the client also auto crashes.. what happened? my eyes very pain... it used my 1 hour to check it out=.= but still failed...

EDITED: yes, im sure im using latest miruku data.grf and rdata.grf

bump

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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