Jump to content
  • 0

Help to add custom weapon


wmmsr

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  02/17/12
  • Last Seen:  

Hello good evening, tried to find on the internet and in the forum could not the way they are showing takes place in weapontable.lub, I tried this way could not, or I'm not doing it right, someone can help me add a custom weapon, thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

db/import/item_db.txt

30000,Excalibur,Excalibur,5,100,,1500,265,,1,4,0x000654E3,7,2,2,4,2,1,2,{ bonus bStr,1; },{},{}

System/itemInfo.lub

[30000] = {
		unidentifiedDisplayName = "Excalibur",
		unidentifiedResourceName  = "Excalibur",
		unidentifiedDescriptionName = {
			"Unknown Item, can be identified by ^6A5ACDMagnifier^000000."
		},
		identifiedDisplayName = "Excalibur",
		identifiedResourceName = "Excalibur",
		identifiedDescriptionName = {
			"A legendary one-handed sword.",
			"Str + 1",
			"Class :^777777 Sword^000000",
			"Attack :^777777 25^000000",
			"Weight :^777777 50^000000",
			"Weapon Level :^777777 4^000000",
			"Required Level :^777777 2^000000",
			"Applicable Job :^777777 Novice Class, Swordsman Class, Merchant Class, Thief Class^000000",
		},
		slotCount = 4,
		ClassNum = 99
	},

luafiles514/lua files/datainfo/weapontable.lub

Weapon_IDs

	WEAPONTYPE_Girls_Diary = 95,
	WEAPONTYPE_Staff_Of_Soul = 96,
	WEAPONTYPE_Wizardy_Staff = 97,
	WEAPONTYPE_Spoon = 98,
	WEAPONTYPE_Excalibur = 99

WeaponNameTable

	[Weapon_IDs.WEAPONTYPE_Book_Of_Mother_Earth] = "_1554",
	[Weapon_IDs.WEAPONTYPE_Book_Of_Blazing_Sun] = "_1555",
	[Weapon_IDs.WEAPONTYPE_Book_Of_Gust_Of_Wind] = "_1556",
	[Weapon_IDs.WEAPONTYPE_Book_Of_The_Apocalypse] = "_1557",
	[Weapon_IDs.WEAPONTYPE_Girls_Diary] = "_1558",
	[Weapon_IDs.WEAPONTYPE_Staff_Of_Soul] = "_1472",
	[Weapon_IDs.WEAPONTYPE_Wizardy_Staff] = "_1473",
	[Weapon_IDs.WEAPONTYPE_Excalibur] = "_30000"

Expansion_Weapon_IDs

	[Weapon_IDs.WEAPONTYPE_Book_Of_Blazing_Sun] = Weapon_IDs.WEAPONTYPE_BOOK,
	[Weapon_IDs.WEAPONTYPE_Book_Of_Gust_Of_Wind] = Weapon_IDs.WEAPONTYPE_BOOK,
	[Weapon_IDs.WEAPONTYPE_Book_Of_The_Apocalypse] = Weapon_IDs.WEAPONTYPE_BOOK,
	[Weapon_IDs.WEAPONTYPE_Girls_Diary] = Weapon_IDs.WEAPONTYPE_BOOK,
	[Weapon_IDs.WEAPONTYPE_Staff_Of_Soul] = Weapon_IDs.WPCLASS_TWOHANDROD,
	[Weapon_IDs.WEAPONTYPE_Wizardy_Staff] = Weapon_IDs.WPCLASS_TWOHANDROD,
	[Weapon_IDs.WEAPONTYPE_Excalibur] = Weapon_IDs.WEAPONTYPE_SWORD

How to change your weapon sprite

 

Example:

Weapon Sprite
Excalibur.act
Excalibur.spr

change it to 

Female

±â»ç_¿©_30000.act
±â»ç_¿©_30000.spr

Male

±â»ç_³²_30000.act
±â»ç_³²_30000.spr

Legend:

Class_Sex_ItemID

Sex

¿© - Female
³² - Male

Weapon Classes

´ÑÀÚ - Ninja weapons
¸¶¹ý»ç - Magician weapons
¸ùÅ© - Monk weapons
¿¬±Ý¼ú»ç - Alchemist weapons
¿ëº´ - Mercenary weapons
¿î¿µÀÚ - GM weapons
񃯇 - Knight weapons
±Ã¼ö - Archer weapons
»óÀÎ - Merchant weapons
°Ç³Ê - Gunslinger weapons
°Ë»ç - Swordsman weapons
µµµÏ - Thief weapons
·Î±× - Rogue weapons
¼¼ÀÌÁö - Sage weapons
¼ºÁ÷ÀÚ - Acolyte weapons
½´ÆÛ³ëºñ½º - Super Novice weapons
½ÅÆäÄÚÅ©·ç¼¼ÀÌ´õ - Crusader weapons (mounted)
¾î¼¼½Å - Assassin weapons
¹«Èñ - Dancer weapons
¹Ùµå - Bard weapons
Á¦Ã¶°ø - Blacksmith weapons
À§Àúµå - Wizard weapons
Å©·ç¼¼ÀÌ´õ - Crusader weapons
űǼҳâ - Taekwon Effects(?)
ÆäÄÚÆäÄÚ_±â»ç - Knight weapons (mounted)
Ãʺ¸ÀÚ - Novice weapons
ÇÁ¸®½ºÆ® - Priest weapons
ÇåÅÍ - Hunter weapons

make an folder and place all sprites inside the folder similar to the name of the class that you add in your weapon sprite.

Example:

sprite/Àΰ£Á·/±â»ç

or

sprite/Àΰ£Á·/±â»ç/±â»ç_¿©_30000.act
sprite/Àΰ£Á·/±â»ç/±â»ç_¿©_30000.spr
sprite/Àΰ£Á·/±â»ç/±â»ç_³²_30000.act
sprite/Àΰ£Á·/±â»ç/±â»ç_³²_30000.spr
Edited by Lelouch vi Britannia
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  02/17/12
  • Last Seen:  

hello good day, I tried the way u gave me, when I click the item, it's gravity error,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

hello good day, I tried the way u gave me, when I click the item, it's gravity error,

 

Maybe you have missing item sprite? because the weapon sprite are the visible sprite when you attack, for an example if you use an custom sword you'll see an custome weapon sprite but in your case maybe an missing item sprite is the answer.

Note: Excalibur was just an example what i posted above :D

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