How to add new cloaks.

Banana
Loyal Member
Joined
Feb 15, 2009
Messages
1,011
Reaction score
855
This guide was tested on a heavily modified client, connecting to a Rune Flyff Emulator, which was created by Duotone.

HOW TO ADD NEW CLOAKS

First, collect what you need. Since you're unsure of how to do it, I'll just list the files you need to collect:

(Note, you will be using the Gaia cloak as an example.)

Gpotato\Flyff:
data.res
dataSub2.res

Gpotato\Flyff\Item:
itm_ArmCloCloGaia.dds

Gpotato\Flyff\Model:
Part_FemaleCloakGaia.o3d
Part_MaleCloakGaia.o3d

Gpotato\Flyff\Model\Texture:
Part_FemaleCloakGaia.dds
Part_MaleCloakGaia.dds

Gpotato\Flyff\Model\TextureLow:
Part_FemaleCloakGaia.dds
Part_MaleCloakGaia.dds

Gpotato\Flyff\Model\TextureMid:
Part_FemaleCloakGaia.dds
Part_MaleCloakGaia.dds

Extract the following files from data.res:
defineItem.h
mdlDyna.inc

Extract the following files from dataSub2.res
propItem.txt
propItem.txt.txt

Now, rename the following files, this example will be a GM cloak:
(Note, you can name them to anything as long as you don't leave out certain text.)
itm_ArmCloCloGaia.dds = itm_ArmCloCloGameMaster.dds
Part_FemaleCloakGaia.o3d = Part_FemaleCloakGameMaster.o3d
Part_MaleCloakGaia.o3d = Part_MaleCloakGameMaster.o3d
Part_FemaleCloakGaia.dds = Part_FemaleCloakGameMaster.dds
Part_MaleCloakGaia.dds = Part_MaleCloakGameMaster.dds

To make life easier for leechers, I'll post the basic item layout for the GM cloaks.
defineItem.h
#define II_ARM_S_CLO_CLO_GM 90000
mdlDyna.inc
"GenMatSuitbox" II_ARM_S_CLO_CLO_GM MODELTYPE_MESH "MaleCloakGameMaster/FemaleCloakGameMaster" 0 MD_NEAR 0 1.0f 0 1 ATEX_NONE 1
propItem.txt
6 II_ARM_S_CLO_CLO_GM IDS_PROPITEM_TXT_SELF_000000 1 1 IK1_ARMOR IK2_CLOTH IK3_CLOAK = TRUE = = 200000 50000 = = = = PARTS_CLOAK = 1 = = 1 = = 1 = = = 1 1 _NONE 0 0 0 = = = = = = = = = = = = = = = = = DST_HP_MAX DST_STA 65 1 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 0 0 0 0 0 0 = = = = = = = = = = = = = = = = """itm_ArmCloCloGameMaster.dds""" 0 """""" IDS_PROPITEM_TXT_SELF_000001
propItem.txt.txt
IDS_PROPITEM_TXT_SELF_000000 Game Master Cloak
IDS_PROPITEM_TXT_SELF_000001
Database (SQL, Navicat, blabla)
INSERT INTO `itemlist` VALUES ('6', '90000', 'Game Master Cloak', '1', '1', '2', '9', '24', '-1', '1', '-1', '-1', '2000', '50000', '-1', '-1', '-1', '-1', '8', '-1', '1', '-1', '-1', '1', '-1', '-1', '1', '-1', '-1', '-1', '1', '1', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '35', '4', '-1', '65', '1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '0', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', 'itm_ArmCloCloGameMaster.dds', '0', '', '', '1', '0');

Add the line of text from defineItem.h anywhere between the two "..."'s:
#ifndef __DEFINE_ITEM
#define __DEFINE_ITEM

Edit:
Where the hell did the rest of the guide go O.o
 
Last edited:
Back