Jump to content
  • 0

How to add custom job for rAthena 2024


allofeve

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  08/31/14
  • Last Seen:  

Help me please, My modding custom job not work.

screenrAthena000.thumb.jpg.2238dab4c00f6afceee0e6b2aafccb35.jpg

Server

rathena\src\map\pc.cpp

case JOB_SOUL_ASCETIC:          return MAPID_SOUL_ASCETIC;
// custom job
case JOB_DARK_KNIGHT:           return MAPID_DARK_KNIGHT;
case MAPID_SOUL_ASCETIC:          return JOB_SOUL_ASCETIC;
// custom job
case MAPID_DARK_KNIGHT:           return JOB_DARK_KNIGHT;
case JOB_SKY_EMPEROR2:
	return msg_txt( nullptr, 813 );
// custom job
case JOB_DARK_KNIGHT:
	return msg_txt( nullptr, 814 );

 

rathena\src\map\script_constants.hpp

export_constant(JOB_SKY_EMPEROR2);
// custom job
export_constant(JOB_DARK_KNIGHT);
export_constant2("EAJ_SOUL_ASCETIC", MAPID_SOUL_ASCETIC);
// custom job
export_constant2("EAJ_DARK_KNIGHT", MAPID_DARK_KNIGHT);

 

rathena\src\map\pc.hpp

// custom job
#define pcdb_checkid_sub(class_) ( \
	( (class_) < JOB_MAX_BASIC ) || \
	( (class_) >= JOB_NOVICE_HIGH			&& (class_) <= JOB_DARK_COLLECTOR ) || \
	( (class_) >= JOB_RUNE_KNIGHT			&& (class_) <= JOB_MECHANIC_T2    ) || \
	( (class_) >= JOB_BABY_RUNE_KNIGHT		&& (class_) <= JOB_BABY_MECHANIC2 ) || \
	( (class_) >= JOB_SUPER_NOVICE_E		&& (class_) <= JOB_SUPER_BABY_E   ) || \
	( (class_) >= JOB_KAGEROU				&& (class_) <= JOB_OBORO          ) || \
	  (class_) == JOB_REBELLION				|| (class_) == JOB_SUMMONER         || \
	  (class_) == JOB_BABY_SUMMONER			|| \
	( (class_) >= JOB_BABY_NINJA			&& (class_) <= JOB_BABY_REBELLION ) || \
	( (class_) >= JOB_BABY_STAR_GLADIATOR2	&& (class_) <= JOB_BABY_STAR_EMPEROR2 ) || \
	( (class_) >= JOB_DRAGON_KNIGHT			&& (class_) <= JOB_TROUVERE       ) || \
	( (class_) >= JOB_WINDHAWK2				&& (class_) <= JOB_IMPERIAL_GUARD2 ) || \
	( (class_) >= JOB_SKY_EMPEROR			&& (class_) <= JOB_SPIRIT_HANDLER ) || \
	  (class_) == JOB_SKY_EMPEROR2  		|| (class_) == JOB_DARK_KNIGHT      \
)
#define pcdb_checkid(class_) pcdb_checkid_sub((unsigned int)class_)

 

rathena\src\map\map.hpp

MAPID_SOUL_ASCETIC,
// custom job
MAPID_DARK_KNIGHT,

 

rathena\src\char\inter.cpp

		case JOB_SKY_EMPEROR2:
			return msg_txt( 135 );
		// custom job
		case JOB_DARK_KNIGHT:
			return msg_txt( 142 );
		default:
			return msg_txt(199);
	}
}

 

rathena\src\common\mmo.hpp

JOB_SKY_EMPEROR2 = 4316,
	
	// custom job
	JOB_DARK_KNIGHT = 4320,
	JOB_MAX,
};

 

rathena\db\re\job_stats.yml

    # custom job
    - Jobs:
      DARK_KNIGHT: true
    BonusStats:
      - Level: 2
        Luk: 1
      - Level: 3
        Dex: 1
      - Level: 5
        Agi: 1
      - Level: 6
        Vit: 1
      - Level: 8
        Str: 1
      - Level: 9
        Int: 1

 

rathena\db\re\job_exp.yml

Body:
  - Jobs:
      Novice: true
      Swordman: true
      Mage: true
      Archer: true
      Acolyte: true
      Merchant: true
      Thief: true
      Knight: true
      Priest: true
      Wizard: true
      Blacksmith: true
      Hunter: true
      Assassin: true
      Knight2: true
      Crusader: true
      Monk: true
      Sage: true
      Rogue: true
      Alchemist: true
      Bard: true
      Dancer: true
      Crusader2: true
      Super_Novice: true
      Gunslinger: true
      Ninja: true
      Baby: true
      Baby_Swordman: true
      Baby_Mage: true
      Baby_Archer: true
      Baby_Acolyte: true
      Baby_Merchant: true
      Baby_Thief: true
      Baby_Knight: true
      Baby_Priest: true
      Baby_Wizard: true
      Baby_Blacksmith: true
      Baby_Hunter: true
      Baby_Assassin: true
      Baby_Knight2: true
      Baby_Crusader: true
      Baby_Monk: true
      Baby_Sage: true
      Baby_Rogue: true
      Baby_Alchemist: true
      Baby_Bard: true
      Baby_Dancer: true
      Baby_Crusader2: true
      Super_Baby: true
      Taekwon: true
      Star_Gladiator: true
      Star_Gladiator2: true
      Soul_Linker: true
      Baby_Ninja: true
      Baby_Taekwon: true
      Baby_Star_Gladiator: true
      Baby_Soul_Linker: true
      Baby_Gunslinger: true
      # custom job
      DARK_KNIGHT: true
    MaxBaseLevel: 99
    BaseExp:
      - Level: 1
        Exp: 548
      - Level: 2

 

 

rathena\db\re\job_basepoints.yml

   # custom job
    - Jobs:
      DARK_KNIGHT: true
    BaseHp:
      - Level: 1
        Hp: 40
      - Level: 2
        Hp: 45
      - Level: 3
        Hp: 50
      - Level: 4
        Hp: 55
      - Level: 5
        Hp: 60
      - Level: 6
        Hp: 65
      - Level: 7
        Hp: 70
      - Level: 8
        Hp: 75
      - Level: 9
        Hp: 80
      - Level: 10
        Hp: 85
      - Level: 11
        Hp: 90
      - Level: 12
        Hp: 95
      - Level: 13
        Hp: 100
      - Level: 14
        Hp: 105
      - Level: 15
        Hp: 110
      - Level: 16
        Hp: 115
      - Level: 17
        Hp: 120
      - Level: 18
        Hp: 125
      - Level: 19
        Hp: 130
      - Level: 20
        Hp: 135
      - Level: 21
        Hp: 140
      - Level: 22
        Hp: 145
      - Level: 23
        Hp: 150
      - Level: 24
        Hp: 155
      - Level: 25
        Hp: 160
      - Level: 26
        Hp: 165
      - Level: 27
        Hp: 170
      - Level: 28
        Hp: 175
      - Level: 29
        Hp: 180
      - Level: 30
        Hp: 185
      - Level: 31
        Hp: 190
      - Level: 32
        Hp: 195
      - Level: 33
        Hp: 200
      - Level: 34
        Hp: 205
      - Level: 35
        Hp: 210
      - Level: 36
        Hp: 215
      - Level: 37
        Hp: 220
      - Level: 38
        Hp: 225
      - Level: 39
        Hp: 230
      - Level: 40
        Hp: 235
      - Level: 41
        Hp: 240
      - Level: 42
        Hp: 245
      - Level: 43
        Hp: 250
      - Level: 44
        Hp: 255
      - Level: 45
        Hp: 260
      - Level: 46
        Hp: 265
      - Level: 47
        Hp: 270
      - Level: 48
        Hp: 275
      - Level: 49
        Hp: 280
      - Level: 50
        Hp: 285
      - Level: 51
        Hp: 290
      - Level: 52
        Hp: 295
      - Level: 53
        Hp: 300
      - Level: 54
        Hp: 305
      - Level: 55
        Hp: 310
      - Level: 56
        Hp: 315
      - Level: 57
        Hp: 320
      - Level: 58
        Hp: 325
      - Level: 59
        Hp: 330
      - Level: 60
        Hp: 335
      - Level: 61
        Hp: 340
      - Level: 62
        Hp: 345
      - Level: 63
        Hp: 350
      - Level: 64
        Hp: 355
      - Level: 65
        Hp: 360
      - Level: 66
        Hp: 365
      - Level: 67
        Hp: 370
      - Level: 68
        Hp: 375
      - Level: 69
        Hp: 380
      - Level: 70
        Hp: 385
      - Level: 71
        Hp: 390
      - Level: 72
        Hp: 395
      - Level: 73
        Hp: 400
      - Level: 74
        Hp: 405
      - Level: 75
        Hp: 410
      - Level: 76
        Hp: 415
      - Level: 77
        Hp: 420
      - Level: 78
        Hp: 425
      - Level: 79
        Hp: 430
      - Level: 80
        Hp: 435
      - Level: 81
        Hp: 440
      - Level: 82
        Hp: 445
      - Level: 83
        Hp: 450
      - Level: 84
        Hp: 455
      - Level: 85
        Hp: 460
      - Level: 86
        Hp: 465
      - Level: 87
        Hp: 470
      - Level: 88
        Hp: 475
      - Level: 89
        Hp: 480
      - Level: 90
        Hp: 485
      - Level: 91
        Hp: 490
      - Level: 92
        Hp: 495
      - Level: 93
        Hp: 500
      - Level: 94
        Hp: 505
      - Level: 95
        Hp: 510
      - Level: 96
        Hp: 515
      - Level: 97
        Hp: 520
      - Level: 98
        Hp: 525
      - Level: 99
        Hp: 530

 

rathena\db\re\job_noenter_map.txt

JOB_HYPER_NOVICE,4112,100
JOB_SPIRIT_HANDLER,4112,100
// custom job
JOB_DARK_KNIGHT,4112,100

 

rathena\conf\msg_conf\char_msg.conf

140: Hyper Novice
141: Spirit Handler
// custom job
142: Dark Knight
199: Unknown Job

 

rathena\db\re\skill_tree.yml

  # custom job
  - Job: DARK_KNIGHT
    Tree:
      - Name: NV_BASIC
        MaxLevel: 9

 

 

Edited by allofeve
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   2
  • Joined:  08/31/14
  • Last Seen:  

Client

coming soon...

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  337
  • Reputation:   64
  • Joined:  10/30/12
  • Last Seen:  

Is this a guide or a question?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  25
  • Reputation:   6
  • Joined:  03/17/21
  • Last Seen:  

300px-Confused_Nick_Young.jpg



Probably an updated topic back in 2015:

 

Edited by EAJ_BASEMASK
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...