Jump to content
  • 0
ThyroDree

Anyone can help me Add Custom Weapon

Question

I have followed on how to add the custom weapon here

https://herc.ws/wiki/Custom_Items#Weapon_Sprite_Solution_.28Renewal_Clients_.3C.3D_2012-04-10a_.26_Main_Clients_.3C.3D_2012-07-10a.29

 

My problem here the weapon is not showing its sprite.

I put the sprite to data/sprite/¾ÆÀÌÅÛ/

then created iteminfo and item_dbs the weapon. The weapon works fines the dropped, when equipped.

Just when attack the weapon is the normal sprite view. How can I make the show its own custom sprite?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Maybe I am wrong, but I think you are missing the sprites that are responsible for attacking.

Download SPR Conview and check out the sprites.
With actOR you can adjust/change the sprites if necessary.

http://ratemyserver.net/index.php?page=download_tool

 

Hope this helps. Otherwise, contact Haziel 
He is very friendly and trustworthy.

 

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, ThyroDree said:

I have followed on how to add the custom weapon here

https://herc.ws/wiki/Custom_Items#Weapon_Sprite_Solution_.28Renewal_Clients_.3C.3D_2012-04-10a_.26_Main_Clients_.3C.3D_2012-07-10a.29

 

My problem here the weapon is not showing its sprite.

I put the sprite to data/sprite/¾ÆÀÌÅÛ/

then created iteminfo and item_dbs the weapon. The weapon works fines the dropped, when equipped.

Just when attack the weapon is the normal sprite view. How can I make the show its own custom sprite?

Adding Custom Weapon needs the Following..

 

data/luafiles514/lua files/datainfo/weapontable.lub
Something like this, check each code where to place it

WEAPONTYPE_Custom_Weapon = 110
[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"
[Weapon_IDs.WEAPONTYPE_Custom_Weapon] = Weapon_IDs.WEAPONTYPE_SWORD

Then in your item_db2.conf

{
	Id: 32000
	AegisName: "Custom_Weapon"
	Name: "Custom Weapon"
	Type: "IT_WEAPON"
	Buy: 20
	Weight: 1000
	Atk: 150
	Range: 1
	Loc: 2
	Slots: 4
	WeaponLv: 4
	Subtype: "W_1HSWORD"
	Job: {
		Knight: true
	}
	Refine: true
	Script: <"">
},

Then in iteminfo.lua

	[32000] = {
		unidentifiedDisplayName = "Custom Weapon",
		unidentifiedResourceName  = "Custom_Weapon",
		unidentifiedDescriptionName = {
			"Unidentified item, can be identified with [Magnifier].",
		},
		identifiedDisplayName = "Custom Weapon",
		identifiedResourceName = "Custom_Weapon",
		identifiedDescriptionName = { "" },
		slotCount = 4,
		ClassNum = 110
	},

ofcourse your sprite should be same name with what you put in weapontable.lub

Edited by Zhao Chow

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, Zhao Chow said:

Adding Custom Weapon needs the Following..

 

data/luafiles514/lua files/datainfo/weapontable.lub
Something like this, check each code where to place it

WEAPONTYPE_Custom_Weapon = 110 [Weapon_IDs.WEAPONTYPE_Banryu] = "_32000" [Weapon_IDs.WEAPONTYPE_Custom_Weapon] = Weapon_IDs.WEAPONTYPE_SWORD


WEAPONTYPE_Custom_Weapon = 110
[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"
[Weapon_IDs.WEAPONTYPE_Custom_Weapon] = Weapon_IDs.WEAPONTYPE_SWORD

Then in your item_db2.conf

{ Id: 32000 AegisName: "Custom_Weapon" Name: "Custom Weapon" Type: "IT_WEAPON" Buy: 20 Weight: 1000 Atk: 150 Range: 1 Loc: 2 Slots: 4 WeaponLv: 4 Subtype: "W_1HSWORD" Job: { Knight: true } Refine: true Script: <""> },


{
	Id: 32000
	AegisName: "Custom_Weapon"
	Name: "Custom Weapon"
	Type: "IT_WEAPON"
	Buy: 20
	Weight: 1000
	Atk: 150
	Range: 1
	Loc: 2
	Slots: 4
	WeaponLv: 4
	Subtype: "W_1HSWORD"
	Job: {
		Knight: true
	}
	Refine: true
	Script: <"">
},

Then in iteminfo.lua

[32000] = { unidentifiedDisplayName = "Custom Weapon", unidentifiedResourceName = "Custom_Weapon", unidentifiedDescriptionName = { "Unidentified item, can be identified with [Magnifier].", }, identifiedDisplayName = "Custom Weapon", identifiedResourceName = "Custom_Weapon", identifiedDescriptionName = { "" }, slotCount = 4, ClassNum = 110 },


	[32000] = {
		unidentifiedDisplayName = "Custom Weapon",
		unidentifiedResourceName  = "Custom_Weapon",
		unidentifiedDescriptionName = {
			"Unidentified item, can be identified with [Magnifier].",
		},
		identifiedDisplayName = "Custom Weapon",
		identifiedResourceName = "Custom_Weapon",
		identifiedDescriptionName = { "" },
		slotCount = 4,
		ClassNum = 110
	},

ofcourse your sprite should be same name with what you put in weapontable.lub

Hi! Im confused with this

 

WEAPONTYPE_Custom_Weapon = 110

 

[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"

 

which one is the sprite name there?

If I have spritename like hellrevolver.spr/act

can you give me example using hellrevolver?

Share this post


Link to post
Share on other sites
  • 0
52 minutes ago, ThyroDree said:

Hi! Im confused with this

 

WEAPONTYPE_Custom_Weapon = 110

 

[Weapon_IDs.WEAPONTYPE_Banryu] = "_32000"

 

which one is the sprite name there?

If I have spritename like hellrevolver.spr/act

can you give me example using hellrevolver?

Change all the custom_weapon name int ohellrevolver

it must be like this
[Weapon_IDs.WEAPONTYPE_hellrevolver] = "_32000"

 

WEAPONTYPE_hellrevolver = 110

 

the 32000 is the item ID number

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, Zero Human said:

Maybe I am wrong, but I think you are missing the sprites that are responsible for attacking.

Download SPR Conview and check out the sprites.
With actOR you can adjust/change the sprites if necessary.

http://ratemyserver.net/index.php?page=download_tool

 

Hope this helps. Otherwise, contact Haziel 
He is very friendly and trustworthy.

 

I only have the sprite files from ¾ÆÀÌÅÛ folder, am I missing something? Sorry i dont know about adding weapons sprites 😕

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.