Jump to content
  • 0

Guide in adding a custom card (full pls)


Question

17 answers to this question

Recommended Posts

Posted

Server side.

  • item_db.txt
ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{
Script },{ OnEquip_Script },{ OnUnequip_Script }

ID,Name card,Name card,6,20,,10,,,,,,,,Localisation,,,,,{},{},{}
 

 

Put an unique ID, a name not necessarily unique and the localisation ( nb. where you insert the card)

For Localisation :

Loc: Equipment's placement. Values are:
    2^8  256 = Upper Headgear
    2^9  512 = Middle Headgear
    2^0  001 = Lower Headgear
    2^4  016 = Armor
    2^1  002 = Weapon
    2^5  032 = Shield
    2^2  004 = Garment
    2^6  064 = Footgear
    2^3  008 = Accessory 1
    2^7  128 = Accessory 2
    2^10 1024 = Costume Top Headgear
    2^11 2048 = Costume Mid Headgear
    2^12 4096 = Costume Low Headgear
    2^13 8192 = Costume Garment/Robe

 

 

 

 

 

 

 

 

 

Client side.

  • System/itemInfo.lub
  • data/cardprefixnametable.txt for prefix equipment name when you insert your card in equipment (optionnal)
  • data/num2cardillustnametable.txt if you want an illustration of your card (optionnal)
  • data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/cardbmp/ to put the illustration (optionnal)

 

 

 

itemInfo.lub

Just follow the typo. Change the Display name, the description for identified/unindentified item. That's all.

	[28000] = {
		unidentifiedDisplayName = "Card",
		unidentifiedResourceName  = "À̸§¾ø´ÂÄ«µå",
		unidentifiedDescriptionName = {
			"Your description",
			"Item Class: ^777777Card^000000",
			"Equip on: ^777777Garment^000000",
			"Weight: ^7777771^000000",
		},
		identifiedDisplayName = "Custom Card",
		identifiedResourceName = "À̸§¾ø´ÂÄ«µå",
		identifiedDescriptionName = {
			"Your description",
			"Item Class: ^777777Card^000000",
			"Equip on: ^777777Garment^000000",
			"Weight: ^7777771^000000",
		},
		slotCount = 0,
		ClassNum = 0
	},

 

 

cardprefixnametable.txt

Add in your file a line following the typo

      Card ID#Prefix#

 

 

 

num2cardillustnametable.txt

Add in your file a line following the typo

      Card ID#Name in cardbmp#

 

 

 

cardbmp/

Add your illustration in bmp format 300x400

  • Upvote 4
Posted

YOU FORGOT THE FACT

THAT SOME DATA FILES FOR EXAMPLE KRO, BY DEFAULT DON´T CAME WITH THE NUM2CARDILLUSTNAMETABLE INSIDE THE DATA FOLDER

 

there you go my num2cardillustnametable   just in case you dont find it in your data file!

 

 http://www.mediafire.com/view/?nidf2f64cf8pqln

 

this will save you the time and the job of downloading a grftool to open the original kro data and extract the file.

Posted

For adding cards you need to follow same rules as adding any other custom items. The only extra thing to look for are specifying the prefix name and illustration bmp file (which is already explained above).

 

if you are getting tanos katar it means you have specified wrong display name in iteminfo.lua (or *displaynametable.txt files if you are using older clients).

 

We can help you better if we see snapshot of item_db & iteminfo.

Posted

For adding cards you need to follow same rules as adding any other custom items. The only extra thing to look for are specifying the prefix name and illustration bmp file (which is already explained above).

 

if you are getting tanos katar it means you have specified wrong display name in iteminfo.lua (or *displaynametable.txt files if you are using older clients).

 

We can help you better if we see snapshot of item_db & iteminfo.

Im using 20120410aragexe. Do i need to edit iteminfo.lua?

Posted

nope that version uses the txt files not iteminfo.lua

then I need to edit idnum2itemdisplaynametable?

 

Do I need to put my custom card on accessoryid and accname?

Posted

Server side.

  • item_db.txt
ID,AegisName,Name,Type,Buy,Sell,Weight,ATK,DEF,Range,Slots,Job,Upper,Gender,Loc,wLV,eLV,Refineable,View,{
Script },{ OnEquip_Script },{ OnUnequip_Script }

ID,Name card,Name card,6,20,,10,,,,,,,,Localisation,,,,,{},{},{}
 

Put an unique ID, a name not necessarily unique and the localisation ( nb. where you insert the card)

For Localisation :

Loc: Equipment's placement. Values are:

    2^8  256 = Upper Headgear

    2^9  512 = Middle Headgear

    2^0  001 = Lower Headgear

    2^4  016 = Armor

    2^1  002 = Weapon

    2^5  032 = Shield

    2^2  004 = Garment

    2^6  064 = Footgear

    2^3  008 = Accessory 1

    2^7  128 = Accessory 2

    2^10 1024 = Costume Top Headgear

    2^11 2048 = Costume Mid Headgear

    2^12 4096 = Costume Low Headgear

    2^13 8192 = Costume Garment/Robe

 

 

 

 

 

 

 

 

 

Client side.

  • System/itemInfo.lub
  • data/cardprefixnametable.txt for prefix equipment name when you insert your card in equipment (optionnal)
  • data/num2cardillustnametable.txt if you want an illustration of your card (optionnal)
  • data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/cardbmp/ to put the illustration (optionnal)

 

 

 

itemInfo.lub

Just follow the typo. Change the Display name, the description for identified/unindentified item. That's all.

	[28000] = {
		unidentifiedDisplayName = "Card",
		unidentifiedResourceName  = "À̸§¾ø´ÂÄ«µå",
		unidentifiedDescriptionName = {
			"Your description",
			"Item Class: ^777777Card^000000",
			"Equip on: ^777777Garment^000000",
			"Weight: ^7777771^000000",
		},
		identifiedDisplayName = "Custom Card",
		identifiedResourceName = "À̸§¾ø´ÂÄ«µå",
		identifiedDescriptionName = {
			"Your description",
			"Item Class: ^777777Card^000000",
			"Equip on: ^777777Garment^000000",
			"Weight: ^7777771^000000",
		},
		slotCount = 0,
		ClassNum = 0
	},

 

 

cardprefixnametable.txt

Add in your file a line following the typo

      Card ID#Prefix#

 

 

 

num2cardillustnametable.txt

Add in your file a line following the typo

      Card ID#Name in cardbmp#

 

 

 

cardbmp/

Add your illustration in bmp format 300x400

uhm excuse me where can i find that info.lub?? and whats should i put on cardbmp?

Posted

Salut Capuche !

 

Je n'ai pas le num2cardillustnametable.txt . Faut-il en créer un ou en trouver un ?

Est-ce important de renseigner le préfixe de la card ?

Y'a un formatage précis pour le .bmp (or la dimension) ?

 

J'ai essayé tes manips, mais l'illustration n'apparait pas IG...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...