Jump to content
  • 0

making axe skills of mechanic usable on MADO


Rebel

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

how can i make all skills of mechanic usable while mounting in MADO and also if not mounting. thanks. i see a battle config in 3ceam but nothing here.

 

thanks

Edited by Rebel
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

I was also looking into this, and even to add skills which can't be used while in mado. Here's how you do it:

You have to open db/re/skill_db.txt (or pre-re if you're using pre-renewal) and look for the skill you want to edit:

2280,0,8,4,-1,0x2,2:2:3:3:3,5,-6,no,0,0x40000,0,weapon,0,0x04000,	NC_AXETORNADO,Axe Tornado

Here we can see Axe Tornado is listed as unable to be used while in mado. This is because of the last numbers: "0x04000".

// 16 inf3 (skill information 3):
//    0x04000 - skill that can't be used while in mado

If you wish to have Axe Tornado to be used while IN mado, simply change that number to "0x0", like so:

2280,0,8,4,-1,0x2,2:2:3:3:3,5,-6,no,0,0x40000,0,weapon,0,0x0,	NC_AXETORNADO,Axe Tornado

 

For statuses to be removed or be ineffective while during Mado, go into src/map/pc.c and look for this:

	if( (sd->class_&MAPID_THIRDMASK) == MAPID_MECHANIC ) {
		if( type&OPTION_MADOGEAR && !(p_type&OPTION_MADOGEAR) ) {
			status_calc_pc(sd,SCO_NONE);
			status_change_end(&sd->bl,SC_MAXIMIZEPOWER,INVALID_TIMER);
			status_change_end(&sd->bl,SC_OVERTHRUST,INVALID_TIMER);
			status_change_end(&sd->bl,SC_WEAPONPERFECTION,INVALID_TIMER);
			status_change_end(&sd->bl,SC_ADRENALINE,INVALID_TIMER);
			status_change_end(&sd->bl,SC_CARTBOOST,INVALID_TIMER);
			status_change_end(&sd->bl,SC_MELTDOWN,INVALID_TIMER);
			status_change_end(&sd->bl,SC_MAXOVERTHRUST,INVALID_TIMER);
			pc_bonus_script_clear(sd,BSF_REM_ON_MADOGEAR);
		} else if( !(type&OPTION_MADOGEAR) && p_type&OPTION_MADOGEAR ) {
			status_calc_pc(sd,SCO_NONE);
			status_change_end(&sd->bl,SC_SHAPESHIFT,INVALID_TIMER);
			status_change_end(&sd->bl,SC_HOVERING,INVALID_TIMER);
			status_change_end(&sd->bl,SC_ACCELERATION,INVALID_TIMER);
			status_change_end(&sd->bl,SC_OVERHEAT_LIMITPOINT,INVALID_TIMER);
			status_change_end(&sd->bl,SC_OVERHEAT,INVALID_TIMER);
			pc_bonus_script_clear(sd,BSF_REM_ON_MADOGEAR);
		}
	}

Add your desired mado-banned status before pc_bonus_script_clear(sd,BSF_REM_ON_MADOGEAR);
Just like this:

status_change_end(&sd->bl,SC_MAXOVERTHRUST,INVALID_TIMER);
status_change_end(&sd->bl,SC_YOURSTATUSHERE,INVALID_TIMER);
pc_bonus_script_clear(sd,BSF_REM_ON_MADOGEAR);

Hope it helps!

Edited by OscarScorp
Formatting
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...