Jump to content
  • 0
haniko

How to edit item scripts and add new items?

Question

Hello guys,

I am currently learning how to edit and adding items. To do so, I have been reading this guide and got confused to which one to follow since I am working a pre-renewal server using the 2015-05-13aRagexe. 

 

2 Defining Item clientside (Renewal Clients <= 2012-04-10a & Main Clients <= 2012-07-10a) OR 3 Defining Items clientside (For New Clients)

 

Also, is there a place I can download custom items from? I have tried searching for it but they seem all out dated and mostly not from herc.ws.

It would also be quite helpful if there was an even easier guide for newbies like me for editing and adding items as well as creating your own. 

 

It would be great if someone could help me with this.

 

Happy new year everyone! 

Edited by haniko

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

So I should be following the section for "Defining Items clientside (For New Clients)"?

 

To my understanding, all I have to do is write a new entry for the item in iteminfo.lua and item_db.conf. Please correct me if I am wrong.

Now I am unsure where to place all the spirit files etc. since my data folder only has clientinfo.xml. Does that mean I need to specifically add the files to the GRF file? If so, which GRF file should they go into?

 

EDIT

Since the last reply, I have downloaded Tobi_Mask and tried to add this to my item list which I have succeeded in doing. I was able to create the mask and it's shown perfectly fine in the inventory, but there is a problem. Every time I attempt to equip it, my client crashes. See screenshots here

 

Code in iteminfo.lua

	[30502] = {
		unidentifiedDisplayName = "Tobi Mask",
		unidentifiedResourceName = "Tobi_Mask",
		unidentifiedDescriptionName = { 
						"An orange mask with a spiral design and one eye hole for the right eye.",
						"Defense :^777777 4^000000",
						"Equipped on :^777777 Upper, Mid, Lower^000000",
						"Weight :^777777 40^000000",
						"Applicable Job :^777777 Every Job^000000",
						"Spriter :^777777 Wolfeh^000000"
						},
		identifiedDisplayName = "Tobi Mask",
		identifiedResourceName = "Tobi_Mask",
		identifiedDescriptionName = { 
						"An orange mask with a spiral design and one eye hole for the right eye.",
						"Defense :^777777 4^000000",
						"Equipped on :^777777 Upper, Mid, Lower^000000",
						"Weight :^777777 40^000000",
						"Applicable Job :^777777 Every Job^000000",
						"Spriter :^777777 Wolfeh^000000"
						},
	slotCount = 0,
	ClassNum = 2106
 },

 

Code in item_db.conf

{
	Id: 30502
	AegisName: "Tobi_Mask"
	Name: "Tobi Mask"
	Type: 5
	Buy: 20
	Weight: 200
	Def: 5
	Loc: 769
	Refine: false
	View: 2106
	Script: <"
		bonus bMaxHP,100;
		bonus2 bResEff, Eff_Stun, 400;
		bonus2 bSubRace,RC_DemiPlayer,4;
	">
},

 

Any ideas how to fix this?

 

Edited by haniko

Share this post


Link to post
Share on other sites
  • 0

It's working! Spent the whole night trying to fix this one problem and all it took was increasing the headgear viewID. Thanks so much. :)

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.