Jump to content
  • 0

Guide in adding a custom card (full pls)


hyuna

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

Hello everyone!!! may I request for a guide on how to add a custom card and the files to edit?? THX

Edited by hyuna
  • Upvote 1
Link to comment
Share on other sites

17 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

bump...

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  144
  • Reputation:   4
  • Joined:  10/28/12
  • Last Seen:  

THX guys...i'll try it ASAP!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

after i done the guide

 

then type in game, i got tanos katar?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

still having probleme here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   2
  • Joined:  02/18/12
  • Last Seen:  

what's your problem ? i thougt it's ok na :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

when I @item the card, i get tanos katar instead. I tried search tanos katar but there is no such item so I dont think why I have this problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

I see tnx for that

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

nope that version uses the txt files not iteminfo.lua

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

nope those are for headgears.

Please read this in full > http://rathena.org/wiki/Custom_Items

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

hehe, thanks this guide i could add my own custom cards! just look at my profile picture!  made by myself!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  263
  • Reputation:   1
  • Joined:  04/25/13
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  09/09/13
  • Last Seen:  

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...

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...