Installation Details: Fantasy Races Palette Set

Step 1: Choose the GRF you need

Choose the GRF you need. If you have a pre-renewal server, use “KamishiFantasyPalettes-PreRenewal.grf”, else use “KamishiFantasyPalettes-All.grf”.

Step 2: Add the GRF in your client

Add the GRF inside the your client’s folder. Then add it’s name in data.ini, before everything other grf.

Example below:

[data]  
0=kamishipalettes.grf
1=yourserver.grf
2=data.grf

Step 4: Update your client.conf

Open conf/Battle/client.conf, make sure you have set the following values to the correct numbers:

min_hair_style: 0
max_hair_style: 100 // Set this to your max hair style number.
min_hair_color: 0
max_hair_color: 955
min_cloth_color: 0
max_cloth_color: 955

Step 5: Install “GRF Classes Corrections” from Me & Haziel

Pre-renewal classes corrections :
https://rathena.org/board/files/file/2447-corrected-classes-head-sprites/

Costumes corrections :
http:// https://rathena.org/board/files/file/3437-third-job-costumes-corrected/

Step 6: Make sure your current stylist does not offer “fanasy” palette numbers

Check your Stylist script, and make sure it doesn’t go higher than 700 for the clothes and hairs. Depending on your stylist script, you will have to do some changes yourself, for instance force a maximum value of 700 in number selection.

Step 7: Decide how you want to use the “race hats”.

You have 3 possibilities :

  • [No Hats] No hats at all, you only change the skin color of the player.
  • [Disguise To Race] When a player talks to the “Fantasy Master”, his race is changed permanenly, and the middle hat is disguised to the race’s hat.
  • [Equip to Change Race] When a player equip a race hat, its skin change to the selected race. When he unequips it, he come back to human again.

Once you took your decision, install only one of the three script in Scripts/ folder.

No Hats :

With that system, you must offer to your player either a NPC or an item that can trigger the following function :

callfunc "TransformToRaceFantasy", <race_id>;

With <race_id> being one of the following races numbers:

0 = Human
1 = Dark Elf
2 = Light Elf
3 = Merman
4 = Orc
5 = Vampire
6 = Beast
7 = Dragon
8 = Demon

You can find an example of a NPC doing that (it is called “FantasyMaster”) in Fantasy_No_Hats.txt

Disguise To Race :

Please follow all the step in “No Hats”. Then, you must add the race hats in your server and client, which means, add the sprites in the grf, update various .txt or luas client-side. If you don’t know how to add sprites in your server, please follow some guides on how to add custom items.

Now, you will only care about the “View ID” of the hat, which is the one that you can see in accessoryid.lua

ACCESSORY_LightElve = 936,
ACCESSORY_DarkElve = 937,
ACCESSORY_Vampire = 938,
ACCESSORY_Beast = 939,
ACCESSORY_Merman = 940,
ACCESSORY_Orc = 941,
ACCESSORY_Dragoon = 942,
ACCESSORY_Demon = 943,

If your View ID are different that the ones above, then you need to adapt the function called setRaceFantasyHat.

Equip to Change Race :

First of all, you must add the race hats in your server and client, which means, add the sprites in the grf, update various .txt or luas client-side. If you don’t know how to add sprites in your server, please follow some guides on how to add custom items.

Then, you have to change the “equip script” and “unequip script” of each of the race hat so when a player equip an hat, it calls the “TransformToRaceElemental” method.

============================================================
ITEM EQUIP SCRIPT :
------------------------------------------------------------
callfunc "TransformToRaceFantasy", <race_id>;
============================================================
ITEM UNEQUIP SCRIPT :
------------------------------------------------------------
callfunc "TransformFromElementalToHuman";
============================================================

With <race_id> being one of the following races numbers:

0 = Human
1 = Dark Elf
2 = Light Elf
3 = Merman
4 = Orc
5 = Vampire
6 = Beast
7 = Dragon
8 = Demon

Step 8: Test if it works

If you followed the steps correctly, it should be working fine. If you have a problem, please contact me on laetitiakami[@]gmail.com

Step 8: Leave a cool review! 

Here, thank you!