Jump to content

[SRC] MVP Tomb + rA Patch for added Features


malufett

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

23h7pcm.jpg

kRO MVP Tomb System....

Changelog:

  • 1.0 First version
  • 2.0 Added Feature showTimeRespawn and showTimerRespawn.
  • 2.1 Fixed map crashing when MVP arena is use or summoning MVP using 'monster' script.
  • 3.0 Fixed duplicate issue and max gap.

TODO:

incorporate with the convex mirror. (need info in official behavior)

@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);

How to configure?

1. Add this script on your npc/custom folder.

tomb_stone.txt - v1.0

tomb_stone.txt - v2.0

tomb_stone.txt - v3.0

2. Add this line scripts_custom.conf

npc: npc/custom/tomb_stone.txt

3. And lastly the adding of tomb to MVP monster

*for this nothing to configure in your mob folder, just make/add to your liking

ex.

anthell02,0,0,0,0 boss_monster Maya 1147,1,7200000,0,1

4. Open tomb_stone.txt and edit the settings for your likings.

//+-- -- -- -- -- -- -- +

//| Settings |

//+-- -- -- -- -- -- -- +

set .showTimeRespawn, 1; // Display the time when the MVP will respawn

set .showTimerRespawn, 1; // Display countdown timer

Patch for rA MVP Tomb Version.

Download: MVP_Tomb_added_features.patch

Download:MVP_Tomb_Added_Features_15981_v1.1.PATCH

*must update rA rev to 15908+

Patch for eA with rA MVP Tomb Version.

Download: rA_MVP_Tomb_Added_Features_For_eA15090.PATCH

Note: Add on your own risk...=P

Enjoy!! ^^,

Comments and suggestions are highly accepted....

Edited by malufett
  • Upvote 7
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

Nice Release!

I created a patch for people who wants to patch it and it has a mirror too :)

Updated:

mvp_tomb_rathena15907_v4.patch

Mirror: http://pyro-ro.com/codes/mvp_tomb_rathena15907_v4.patch

Archives:

mvp_tomb_rathena15869_v3.patch

mvp_tomb_rathena15857_v2_fixed.patch

mvp_tomb_rathena15836.patch

Index: trunk/conf/battle/monster.conf
===================================================================
--- trunk/conf/battle/monster.conf    (revision 15907)
+++ trunk/conf/battle/monster.conf    (working copy)
@@ -197,3 +197,6 @@

// 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
\ No newline at end of file
Index: trunk/src/map/battle.c
===================================================================
--- trunk/src/map/battle.c    (revision 15907)
+++ trunk/src/map/battle.c    (working copy)
@@ -5209,6 +5209,12 @@
    { "max_baby_third_parameter",		   &battle_config.max_baby_third_parameter,	    108,    10,	 10000,		  },
    { "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                },
+
};


Index: trunk/src/map/battle.h
===================================================================
--- trunk/src/map/battle.h    (revision 15907)
+++ trunk/src/map/battle.h    (working copy)
@@ -472,6 +472,11 @@
    int max_third_parameter;
    int max_baby_third_parameter;
    int atcommand_max_stat_bypass;
+    
+    // Tomb System [malufett]
+    int show_mvp_tomb;
+
+
} battle_config;

void do_init_battle(void);
Index: trunk/src/map/mob.c
===================================================================
--- trunk/src/map/mob.c    (revision 15907)
+++ trunk/src/map/mob.c    (working copy)
@@ -829,6 +829,13 @@
    if( md->spawn_timer != INVALID_TIMER )
        delete_timer(md->spawn_timer, mob_delayspawn);
    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 );
+    }
    return 0;
}

@@ -846,6 +853,11 @@
    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);
+    }
+    
    md->last_thinktime = tick;
    if (md->bl.prev != NULL)
        unit_remove_map(&md->bl,CLR_RESPAWN);
@@ -2505,6 +2517,9 @@
    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;
+        
    if( !rebirth )
        mob_setdelayspawn(md); //Set respawning.
    return 3; //Remove from map.
Index: trunk/src/map/npc.c
===================================================================
--- trunk/src/map/npc.c    (revision 15907)
+++ trunk/src/map/npc.c    (working copy)
@@ -3549,6 +3549,58 @@
            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 initialization
 *------------------------------------------*/
Index: trunk/src/map/npc.h
===================================================================
--- trunk/src/map/npc.h    (revision 15907)
+++ trunk/src/map/npc.h    (working copy)
@@ -154,6 +154,7 @@

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

extern struct npc_data* fake_nd;


Fixes:

v4

* Patched with malufett's 3.0 release

* Clean his crappy Coding in the patch above and diff patch

v3

* Clean v2_fixed file

v2_Fixed

* Fixed Compiling Issue after patching the Code due to missing and crappy code by Malufett

- Special Thanks to Lighta for the script.c to script.h (decision)

* Updated Malufett's code from "SCRIPT_MAX_ARRAYSIZE"

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

Help error and its not working

post-3669-0-07365200-1333967245_thumb.png

Edited by Jhosef
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

@Keikun

Thanks!

@Jhosef

note at this

2. Add this line at the very first line of scripts_monsters.conf

npc: npc/custom/tomb_stone.txt

you must put this line before the spawning of mobs....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

Great Job

can i request... can you please add

the time of respawn of the boss monster?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

Thanks...

the time left? or the time it will re-spawn again?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

With the current releases of this, the script versions, they summon the MvPs which conflicts with already spawned MvPs in the fields and dungeons. With this source, would it take the already spawned MvPs and when they die, create the tomb? Are do we need to add new MvP spawns so that this can work with them?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

Thanks...

the time left? or the time it will re-spawn again?

the time will respawn again...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

@mysterious

hmm..well the tomb will be created once the server loaded the npc script..so before the monster will die the tomb is already created just hidden so once it dies it will just move the npc tomb right before the MVP monster location..and since the script for the spawn of MVP is already created nothing to bother...but if you have custom mobs/MVP just us the usual way to add MVP spawn script..."anthell02,0,0,0,0 boss_monster Maya 1147,1,7200000,0,1"

@jhosef

ok..coming right up

/no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Great RELEASE buddy! i saw it from eA Mod MvP top.

I don't know if this mod is same as eA Mod Also.

Thank you!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

Nice Release.. :)

Although too many things to edit.. /no1

Brathena had a clean source for this which Convex Mirror is working too with the tomb.. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

hmm im waiting /no1

for my request

for adding the time of the monster will respawn again :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

Updated!

Sorry it get a bit long...because I revamped everything due to handling of variables....

and here with the update your request is already included and I also change the behavior where tomb will only be created once the monster dies so less memory usage...

do anyone knows how convex mirror works with tomb,,,tenks...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

@malufett

the time respawn is same at time of death

like this

post-3669-0-32777600-1334195166_thumb.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

did you apply the new patch and recompile?

suppose to show like this:

255quys.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

i already edit it

and this is the error

1> mob.c

1> npc.c

1>c:usersadmin josephdesktoprathena - copytrunksrcmapmob.c(837): warning C4013: 'npc_mvp_tomb' undefined; assuming extern returning int

1> npc_chat.c

1>c:usersadmin josephdesktoprathena - copytrunksrcmapnpc.c(3641): error C2065: 'SCRIPT_MAX_ARRAYSIZE' : undeclared identifier

1> party.c

1> path.c

1> pc.c

1> pc_groups.c

1> pet.c

1> quest.c

1> script.c

1> searchstore.c

1> skill.c

1>c:usersadmin josephdesktoprathena - copytrunksrcmapskill.c(5641): warning C4013: 'clif_vend' undefined; assuming extern returning int

1> status.c

1> storage.c

Edited by Jhosef
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

@ malufett

/src/map/npc.h

Find:

int do_init_npc(void);

Add Bellow:

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

@keikun

i cant find the

int do_init_npc(void);

in /src/map/npc.c

2>------ Build started: Project: login-server_sql, Configuration: Debug Win32 ------
1>  grammar.c
1>  libconfig.c
2>  grammar.c
2>  libconfig.c
1>  scanctx.c
2>  scanctx.c
1>  scanner.c
2>  scanner.c
1>  strbuf.c
1>  mt19937ar.c
2>  strbuf.c
2>  account_sql.c
1>  conf.c
1>  core.c
2>  ipban_sql.c
2>  login.c
1>  db.c
1>  des.c
1>  ers.c
2>  loginlog_sql.c
1>  grfio.c
1>  malloc.c
2>  core.c
1>  mapindex.c
1>  md5calc.c
2>  db.c
2>  ers.c
1>  nullpo.c
1>  plugins.c
2>  malloc.c
2>  md5calc.c
2>  nullpo.c
2>  plugins.c
2>  random.c
1>  random.c
2>  showmsg.c
1>  showmsg.c
1>  socket.c
2>  socket.c
1>  sql.c
2>  sql.c
2>  strlib.c
1>  strlib.c
2>  timer.c
1>  timer.c
1>  utils.c
2>  utils.c
1>  atcommand.c
2>  mt19937ar.c
1>  battle.c
1>  battleground.c
1>  buyingstore.c
1>  chat.c
1>  chrif.c
1>  clif.c
1>  date.c
1>  duel.c
1>  guild.c
1>  intif.c
1>  itemdb.c
1>  log.c
1>  mail.c
1>  map.c
1>  mapreg_sql.c
1>  homunculus.c
1>  instance.c
1>  mercenary.c
1>  mob.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapmob.c(835): warning C4013: 'npc_mvp_tomb' undefined; assuming extern returning int
1>  npc.c
1>  npc_chat.c
2>  login-server_sql.vcxproj -> C:UsersAdmin JosephDesktoprathena - Copytrunkvcproj-10..login-server_sql.exe
3>------ Build started: Project: char-server_sql, Configuration: Debug Win32 ------
1>  party.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapnpc.c(3642): error C2065: 'SCRIPT_MAX_ARRAYSIZE' : undeclared identifier
3>  grammar.c
1>  path.c
3>  libconfig.c
1>  pc.c
3>  scanctx.c
1>  pc_groups.c
3>  scanner.c
3>  strbuf.c
1>  pet.c
3>  mt19937ar.c
3>  core.c
1>  quest.c
3>  db.c
1>  script.c
3>  ers.c
3>  malloc.c
1>  searchstore.c
3>  mapindex.c
3>  nullpo.c
1>  skill.c
3>  plugins.c
3>  random.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapskill.c(5641): warning C4013: 'clif_vend' undefined; assuming extern returning int
1>  status.c
3>  showmsg.c
3>  socket.c
1>  storage.c
3>  sql.c
3>  strlib.c
1>  trade.c
3>  timer.c
1>  unit.c
3>  utils.c
1>  vending.c
3>  char.c
3>  int_auction.c
3>  int_guild.c
3>  int_homun.c
3>  int_mail.c
3>  int_mercenary.c

Edited by Terces
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

oh wait

npc.h

sorry about that

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

error again

2>------ Build started: Project: login-server_sql, Configuration: Debug Win32 ------
1>  grammar.c
1>  libconfig.c
2>  grammar.c
2>  libconfig.c
1>  scanctx.c
2>  scanctx.c
1>  scanner.c
2>  scanner.c
1>  strbuf.c
1>  mt19937ar.c
2>  strbuf.c
2>  account_sql.c
1>  conf.c
1>  core.c
2>  ipban_sql.c
2>  login.c
1>  db.c
1>  des.c
1>  ers.c
2>  loginlog_sql.c
1>  grfio.c
1>  malloc.c
2>  core.c
1>  mapindex.c
1>  md5calc.c
2>  db.c
2>  ers.c
1>  nullpo.c
1>  plugins.c
2>  malloc.c
2>  md5calc.c
2>  nullpo.c
2>  plugins.c
2>  random.c
1>  random.c
2>  showmsg.c
1>  showmsg.c
1>  socket.c
2>  socket.c
1>  sql.c
2>  sql.c
2>  strlib.c
1>  strlib.c
2>  timer.c
1>  timer.c
1>  utils.c
2>  utils.c
1>  atcommand.c
2>  mt19937ar.c
1>  battle.c
1>  battleground.c
1>  buyingstore.c
1>  chat.c
1>  chrif.c
1>  clif.c
1>  date.c
1>  duel.c
1>  guild.c
1>  intif.c
1>  itemdb.c
1>  log.c
1>  mail.c
1>  map.c
1>  mapreg_sql.c
1>  homunculus.c
1>  instance.c
1>  mercenary.c
1>  mob.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapmob.c(835): warning C4013: 'npc_mvp_tomb' undefined; assuming extern returning int
1>  npc.c
1>  npc_chat.c
2>  login-server_sql.vcxproj -> C:UsersAdmin JosephDesktoprathena - Copytrunkvcproj-10..login-server_sql.exe
3>------ Build started: Project: char-server_sql, Configuration: Debug Win32 ------
1>  party.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapnpc.c(3642): error C2065: 'SCRIPT_MAX_ARRAYSIZE' : undeclared identifier
3>  grammar.c
1>  path.c
3>  libconfig.c
1>  pc.c
3>  scanctx.c
1>  pc_groups.c
3>  scanner.c
3>  strbuf.c
1>  pet.c
3>  mt19937ar.c
3>  core.c
1>  quest.c
3>  db.c
1>  script.c
3>  ers.c
3>  malloc.c
1>  searchstore.c
3>  mapindex.c
3>  nullpo.c
1>  skill.c
3>  plugins.c
3>  random.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapskill.c(5641): warning C4013: 'clif_vend' undefined; assuming extern returning int
1>  status.c
3>  showmsg.c
3>  socket.c
1>  storage.c
3>  sql.c
3>  strlib.c
1>  trade.c
3>  timer.c
1>  unit.c
3>  utils.c
1>  vending.c
3>  char.c
3>  int_auction.c
3>  int_guild.c
3>  int_homun.c
3>  int_mail.c
3>  int_mercenary.c

error again


2>------ Build started: Project: login-server_sql, Configuration: Debug Win32 ------
1>  grammar.c
1>  libconfig.c
2>  grammar.c
2>  libconfig.c
1>  scanctx.c
2>  scanctx.c
1>  scanner.c
2>  scanner.c
1>  strbuf.c
1>  mt19937ar.c
2>  strbuf.c
2>  account_sql.c
1>  conf.c
1>  core.c
2>  ipban_sql.c
2>  login.c
1>  db.c
1>  des.c
1>  ers.c
2>  loginlog_sql.c
1>  grfio.c
1>  malloc.c
2>  core.c
1>  mapindex.c
1>  md5calc.c
2>  db.c
2>  ers.c
1>  nullpo.c
1>  plugins.c
2>  malloc.c
2>  md5calc.c
2>  nullpo.c
2>  plugins.c
2>  random.c
1>  random.c
2>  showmsg.c
1>  showmsg.c
1>  socket.c
2>  socket.c
1>  sql.c
2>  sql.c
2>  strlib.c
1>  strlib.c
2>  timer.c
1>  timer.c
1>  utils.c
2>  utils.c
1>  atcommand.c
2>  mt19937ar.c
1>  battle.c
1>  battleground.c
1>  buyingstore.c
1>  chat.c
1>  chrif.c
1>  clif.c
1>  date.c
1>  duel.c
1>  guild.c
1>  intif.c
1>  itemdb.c
1>  log.c
1>  mail.c
1>  map.c
1>  mapreg_sql.c
1>  homunculus.c
1>  instance.c
1>  mercenary.c
1>  mob.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapmob.c(835): warning C4013: 'npc_mvp_tomb' undefined; assuming extern returning int
1>  npc.c
1>  npc_chat.c
2>  login-server_sql.vcxproj -> C:UsersAdmin JosephDesktoprathena - Copytrunkvcproj-10..login-server_sql.exe
3>------ Build started: Project: char-server_sql, Configuration: Debug Win32 ------
1>  party.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapnpc.c(3642): error C2065: 'SCRIPT_MAX_ARRAYSIZE' : undeclared identifier
3>  grammar.c
1>  path.c
3>  libconfig.c
1>  pc.c
3>  scanctx.c
1>  pc_groups.c
3>  scanner.c
3>  strbuf.c
1>  pet.c
3>  mt19937ar.c
3>  core.c
1>  quest.c
3>  db.c
1>  script.c
3>  ers.c
3>  malloc.c
1>  searchstore.c
3>  mapindex.c
3>  nullpo.c
1>  skill.c
3>  plugins.c
3>  random.c
1>c:usersadmin josephdesktoprathena - copytrunksrcmapskill.c(5641): warning C4013: 'clif_vend' undefined; assuming extern returning int
1>  status.c
3>  showmsg.c
3>  socket.c
1>  storage.c
3>  sql.c
3>  strlib.c
1>  trade.c
3>  timer.c
1>  unit.c
3>  utils.c
1>  vending.c
3>  char.c
3>  int_auction.c
3>  int_guild.c
3>  int_homun.c
3>  int_mail.c
3>  int_mercenary.c

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

confused what do you mean here?

3. And lastly the adding of tomb to MVP monster
*for this nothing to configure in your mob folder, just add for your liking
anthell02,0,0,0,0 boss_monster Maya 1147,1,7200000,0,1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  554
  • Reputation:   70
  • Joined:  04/04/12
  • Last Seen:  

oops.....sorry forgot something...^^

@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);

@script.h

#define NUM_WHISPER_VAR 10

+/// Maximum amount of elements in script arrays
+#define SCRIPT_MAX_ARRAYSIZE 128

@script.c

#define FETCH(n, t) 
if( script_hasdata(st,n) ) 
(t)=script_getnum(st,n);


-/// Maximum amount of elements in script arrays
-#define SCRIPT_MAX_ARRAYSIZE 128

@jhosef

add this snippets to fix the problem...

@KeiKun

thanks for reminding....hehehe..I'm not good in making diff/patch :)

@ngek202

its just a normal script for spawning mvp mobs...

I mean there is to you be able to add a tomb to a monster you must use the 'boss_monster' script..and note only one mvp monster is allowed per map and the first occurrence will be consider the MVP....

main topic updated....

Edited by malufett
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

@ Malufett

no problem

im kinda bored and testing stuffs

and sometimes mirroring source and helping source fix

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@malufett Thanks man seems working.

Hmm though notice if you have a MVP Room enabled and tried to kill an MVP Monster it makes the mapserver crash.

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

×
×
  • Create New...