How to add a custom item?

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Spartanx
Posts: 9
Joined: Tue Apr 28, 2009 12:02 am

How to add a custom item?

Post by Spartanx »

Hi there, I'm trying to create a custom item for event, and get special stuff I added to the server, I added it to the etcitem, and My character DO get the item, but when a char get the Item the message is

"You have earned 2."
Instead of the full name of the item, how can I fix that? any clues?


I look all over the forums, google it, and couldnt find an anwser.



Thank you all for your Help.

SpartanX
Since 2005
tropheo
Posts: 176
Joined: Tue Apr 21, 2009 3:09 pm

Re: How to add a custom item?

Post by tropheo »

You need patch/edit your system.

etcitem.dat for item texture
itemname.dat for item name
User avatar
Bloodshed
L2j Veteran
L2j Veteran
Posts: 816
Joined: Mon Jun 23, 2008 9:54 am
Location: Dorf Town

Re: How to add a custom item?

Post by Bloodshed »

client modding discussions not allowed, read the rules
taking a break;
Spartanx
Posts: 9
Joined: Tue Apr 28, 2009 12:02 am

Re: How to add a custom item?

Post by Spartanx »

Well actually I'm not trying to modify the client, Im trying to modify the server so items like the mana potions show "mana potion" instead of "you use ." the same way im trying to do with the item I'm trying to add so the player can see how many of this items they have earned when the monsters drop the item, 'cos the item is not "visible" I found a server using L2J that runs Gracia Final, and when you kill a mob it shows something like this: "You have earned 2 event points", and if you use ".points" it shows how many you have earned so far, im trying to do something like that so the players can exchange this points for useful stuff, or decorative items but, I dont know if it is posible.

If anyone have any clue many many thanks.
cordate
Posts: 3
Joined: Wed May 06, 2009 7:00 pm

Re: How to add a custom item?

Post by cordate »

Maybe the return "Chat0.htm" parts of this quest-writing tutorial would work for this? Some of the tutorial looks to be outdated, as I am comparing it today to the quest scripts used in my server's revision, but maybe those chat statements could be used for you in your event scripting.
Spartanx
Posts: 9
Joined: Tue Apr 28, 2009 12:02 am

Re: How to add a custom item?

Post by Spartanx »

Well I guess it is ok and I do apreciate the effort but, I know how to add the drop, that's the easy part, what I dont know how to do it, is a way for My item to be show when you get it from a mob "You have earn 2 xxxxx"
If you use the mana potion it will show something like "You use ." instead of "You use mana potion" maybe im not clear on this, I know i will have to edit some parts of the core perhaps, or something like that, well I downloaded a Java editor, will be working on that if I get a way to do it I'll post it.

Thanx for your help =)

SpartanX
Since 2005
Post Reply