Jump to content
  • 0
Sign in to follow this  
Chuu

[Solved] Adding alternate sprite: Rune Knight

Question

Hello peeps,

the fact that the alternate Rune Knight Sprite isn't released yet made me sad.

So I decided to add the old Rune Knight Sprite (which looks really good!) as replacement for the unreleased alternate.

iC8vrc3.png

 

No lub or lua errors while launching the client.

0bCGITu.jpg

Just telling me, that there is no body style. :expressionless:

Do I have to make any serverside changes?

 

Following changes have been made

Path: \data\LuaFiles514\Lua Files\DressRoom\jobDressList.lub

Spoiler

_DressHeadPaletteList_f = {
	{ "(0) Default", 0 },
	{ "(1) Yellow", 1 },
	{ "(2) Purple", 2 },
	{ "(3) Orange", 3 },
	{ "(4) Green", 4 },
	{ "(5) Blue", 5 },
	{ "(6) White", 6 },
	{ "(7) Black", 7 },
	{ "(8) Red", 8 }
}
_DressHeadPaletteList_m = {
	{ "(0) Basic", 0 },
	{ "(1) Yellow", 1 },
	{ "(2) Purple", 2 },
	{ "(3) Orange", 3 },
	{ "(4) Green", 4 },
	{ "(5) Blue", 5 },
	{ "(6) White", 6 },
	{ "(7) Black", 7 },
	{ "(8) Red", 8 }
}
_DressBodyPaletteList_f = {
	{ "(0) Default", 0 },
	{ "(1) Default", 1 },
	{ "(2) Alternate 1", 2 },
	{ "(3) Alternate 2", 3 }
}
_DressBodyPaletteList_m = {
	{ "(0) Default", 0 },
	{ "(1) Default", 1 },
	{ "(2) Alternate 1", 2 },
	{ "(3) Alternate 2", 3 }
}
_DressHeadstyleList_f = {
	{ "(1) Style 1", 1 },
	{ "(2) Style 2", 2 },
	{ "(3) Style 3", 3 },
	{ "(4) Style 4", 4 },
	{ "(5) Style 5", 5 },
	{ "(6) Style 6", 6 },
	{ "(7) Style 7", 7 },
	{ "(8) Style 8", 8 },
	{ "(9) Style 9", 9 },
	{ "(10) Style 10", 10 },
	{ "(11) Style 11", 11 },
	{ "(12) Style 12", 12 },
	{ "(13) Style 13", 13 },
	{ "(14) Style 14", 14 },
	{ "(15) Style 15", 15 },
	{ "(16) Style 16", 16 },
	{ "(17) Style 17", 17 },
	{ "(18) Style 18", 18 },
	{ "(19) Style 19", 19 },
	{ "(20) Style 20", 20 },
	{ "(21) Style 21", 21 },
	{ "(22) Style 22", 22 },
	{ "(23) Style 23", 23 },
	{ "(24) Style 24", 24 },
	{ "(25) Style 25", 25 },
	{ "(26) Style 26", 26 },
	{ "(27) Style 27", 27 },
	{ "(28) Style 28", 28 },
	{ "(29) Style 29", 29 }
}
_DressHeadstyleList_m = {
	{ "(1) Style 1", 1 },
	{ "(2) Style 2", 2 },
	{ "(3) Style 3", 3 },
	{ "(4) Style 4", 4 },
	{ "(5) Style 5", 5 },
	{ "(6) Style 6", 6 },
	{ "(7) Style 7", 7 },
	{ "(8) Style 8", 8 },
	{ "(9) Style 9", 9 },
	{ "(10) Style 10", 10 },
	{ "(11) Style 11", 11 },
	{ "(12) Style 12", 12 },
	{ "(13) Style 13", 13 },
	{ "(14) Style 14", 14 },
	{ "(15) Style 15", 15 },
	{ "(16) Style 16", 16 },
	{ "(17) Style 17", 17 },
	{ "(18) Style 18", 18 },
	{ "(19) Style 19", 19 },
	{ "(20) Style 20", 20 },
	{ "(21) Style 21", 21 },
	{ "(22) Style 22", 22 },
	{ "(23) Style 23", 23 },
	{ "(24) Style 24", 24 },
	{ "(25) Style 25", 25 },
	{ "(26) Style 26", 26 },
	{ "(27) Style 27", 27 },
	{ "(28) Style 28", 28 },
	{ "(29) Style 29", 29 }
}
_DressList_f = {
-- Rune Knight
	[4054] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 } // Added this line • • •
	},
-- Warlock
	[4055] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Ranger
	[4056] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Arch Bishop
	[4057] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Mechanic
	[4058] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Guillotine Cross
	[4059] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Rune Knight (Trans)
	[4060] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 } // Added this line • • •
	},
-- Warlock (Trans)
	[4061] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Ranger (Trans)
	[4062] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Arch Bishop (Trans)
	[4063] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Mechanic (Trans)
	[4064] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Guillotine Cross (Trans)
	[4065] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Royal Guard
	[4066] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sorcerer
	[4067] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Minstrel
	[4068] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Wanderer
	[4069] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sura
	[4070] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Genetic
	[4071] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Shadow Chaser
	[4072] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Royal Guard (Trans)
	[4073] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sorcerer (Trans)
	[4074] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Minstrel (Trans)
	[4075] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Wanderer (Trans)
	[4076] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sura (Trans)
	[4077] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Genetic (Trans)
	[4078] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Shadow Chaser (Trans)
	[4079] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Rune Knight (Baby)
	[4096] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 } // Added this line • • •
	},
-- Warlock (Baby)
	[4097] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Ranger (Baby)
	[4098] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Arch Bishop (Baby)
	[4099] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Mechanic (Baby)
	[4100] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Guillotine Cross (Baby)
	[4101] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Royal Guard (Baby)
	[4102] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sorcerer (Baby)
	[4103] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Minstrel (Baby)
	[4104] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Wanderer (Baby)
	[4105] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sura (Baby)
	[4106] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Genetic (Baby)
	[4107] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Shadow Chaser (Baby)
	[4108] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	}
}
_DressList_m = {
-- Rune Knight
	[4054] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 } // Added this line • • •
	},
-- Warlock
	[4055] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Ranger
	[4056] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Arch Bishop
	[4057] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Mechanic
	[4058] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Guillotine Cross
	[4059] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Rune Knight (Trans)
	[4060] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 } // Added this line • • •
	},
-- Warlock (Trans)
	[4061] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Ranger (Trans)
	[4062] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Arch Bishop (Trans)
	[4063] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Mechanic (Trans)
	[4064] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Guillotine Cross (Trans)
	[4065] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Royal Guard
	[4066] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sorcerer
	[4067] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Minstrel
	[4068] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Wanderer
	[4069] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sura
	[4070] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Genetic
	[4071] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Shadow Chaser
	[4072] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Royal Guard (Trans)
	[4073] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sorcerer (Trans)
	[4074] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Minstrel (Trans)
	[4075] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Wanderer (Trans)
	[4076] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sura (Trans)
	[4077] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Genetic (Trans)
	[4078] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Shadow Chaser (Trans)
	[4079] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Rune Knight (Baby)
	[4096] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 } // Added this line • • •
	},
-- Warlock (Baby)
	[4097] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Ranger (Baby)
	[4098] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Arch Bishop (Baby)
	[4099] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Mechanic (Baby)
	[4100] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Guillotine Cross (Baby)
	[4101] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Royal Guard (Baby)
	[4102] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sorcerer (Baby)
	[4103] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Minstrel (Baby)
	[4104] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Wanderer (Baby)
	[4105] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Sura (Baby)
	[4106] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Genetic (Baby)
	[4107] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	},
-- Shadow Chaser (Baby)
	[4108] = {
		{ "(0) Default", 0 },
		{ "(1) Alternate Outfit", 1 }
	}
}

 

 

Thank you in advance <3

Edited by Ouverture

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

After couple of minutes, I got it fixed... :bawling:

Solution:

Path: \trunk\src\map\atcommand.c

  • -> Search for @bodystyle 
  • Add this line between the others: 
    && (sd->job & MAPID_THIRDMASK) != MAPID_RUNE_KNIGHT

     

  • After that it should (could) look like this: 

    Spoiler
    
    	if ((sd->job & MAPID_THIRDMASK) != MAPID_GUILLOTINE_CROSS
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_RUNE_KNIGHT
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_GENETIC
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_MECHANIC
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_ROYAL_GUARD
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_ARCH_BISHOP
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_RANGER
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_WARLOCK
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_SHADOW_CHASER
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_MINSTRELWANDERER
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_SORCERER
    	 && (sd->job & MAPID_THIRDMASK) != MAPID_SURA

     

     

  • DON'T FORGET TO RECOMPILE !  :warning:

 

 

Share this post


Link to post
Share on other sites
  • 0

UPDATED SOLUTION:

This commit just ruined the option to add further bodystyles for classes. I've been searching for hours where to enter my selected classes. So in the current hercules version you may search long. Here is my solution:

Path: \trunk\src\map\atcommand.c

  • -> Search for @bodystyle 
  • Remove this
Quote

if (!pc->has_second_costume(sd))

  • -> add this lines instead
Quote

    if ((sd->job & MAPID_THIRDMASK) != MAPID_GUILLOTINE_CROSS
     && (sd->job & MAPID_THIRDMASK) != MAPID_GENETIC
     && (sd->job & MAPID_THIRDMASK) != MAPID_MECHANIC
     && (sd->job & MAPID_THIRDMASK) != MAPID_ROYAL_GUARD
     && (sd->job & MAPID_THIRDMASK) != MAPID_ARCH_BISHOP
     && (sd->job & MAPID_THIRDMASK) != MAPID_RANGER
     && (sd->job & MAPID_THIRDMASK) != MAPID_WARLOCK
     && (sd->job & MAPID_THIRDMASK) != MAPID_SHADOW_CHASER
     && (sd->job & MAPID_THIRDMASK) != MAPID_MINSTRELWANDERER
     && (sd->job & MAPID_THIRDMASK) != MAPID_SORCERER
     && (sd->job & MAPID_THIRDMASK) != MAPID_SURA
     && (sd->job & MAPID_THIRDMASK) != MAPID_RUNE_KNIGHT
     && (sd->job & MAPID_THIRDMASK) != MAPID_STAR_GLADIATOR
     && (sd->job & MAPID_THIRDMASK) != MAPID_SOUL_LINKER
     )

In this example, I've added the latest 3rd job sprites as bodystyles for the Star Gladiator and Soul Linker job, so after "@bodystyle 1" they will look like a Star Emperor/Soul Reaper. (palletes are necessary to make sprites work)

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.