Jump to content
  • 0

Adding Custom Items (wiki didn't help me much no the search ^^, help)


pandaplaygames

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

Hey All!

 

Client - 2012-04-10a
So i first followed the wiki - http://rathena.org/wiki/Custom_Items

These are the steps i made regarding the files

I followed the guide and appended the following entries in their respective files and file locations.

Let's take for example...a Headgear item. "Angeling_Wings"

I dumped the drop files (.ACT and .SPR) in data\sprite\¾ÆÀÌÅÛ - resnametable deals with this

I dumped the equip files (.ACT and .SPR) in the following details
for males data\sprite\¾Ç¼¼»ç¸®\³²\ and renamed the file " ³²Angeling_Wings "
for femails data\sprite\¾Ç¼¼»ç¸®\¿©\ and renamed the file " ¿©Angeling_Wings "

 

 

 

 

In accname.lua

    [ACCESSORY_IDs.ACCESSORY_Angeling_Wings] = "_Angeling_Wings"
}

 

 

 

 


In accessoryid.lua (other guides and default file removes the comma on the last entry)

	ACCESSORY_Angeling_Wings = 874
}

 

 



Ingame @changelook command 874 (or whatever ID i placedin accessoryid.lua) gives me nothing in-game. The EXE file has been patched for custim Id max at 30000 and to read lua files before lub.

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

Nvm. :) Solved..

Stupid me.. Ovelrooking the tiniest detail..

data/514lua/lua files/datainfo

was..
data/514lua/luafiles/datainfo

mapping issue...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

Maybe you are in a wrong sections, maybe this is in Graphic Support btw next time please be appropriate in posting topics.

using @changelook <lua id> won't do, the 874 thingy represents the view id of headgear in Lua files, therefore your item_db.txt/db2.txt will be like this, btw based on your Lua Files why dont you add comma(,)? at end? it will cause errors.
 

example: ACCESSORY_Fin_Helm = 100

5014,Fin_Helm,Fin Helm,5,20,,300,,2,,0,0x00004082,7,2,512,,65,0,100,{},{},{}
Edited by wiideliva
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Hey All!

 

Client - 2012-04-10a

So i first followed the wiki - http://rathena.org/wiki/Custom_Items

These are the steps i made regarding the files

I followed the guide and appended the following entries in their respective files and file locations.

Let's take for example...a Headgear item. "Angeling_Wings"

I dumped the drop files (.ACT and .SPR) in data\sprite\¾ÆÀÌÅÛ - resnametable deals with this

I dumped the equip files (.ACT and .SPR) in the following details
for males data\sprite\¾Ç¼¼»ç¸®\³²\ and renamed the file " ³²Angeling_Wings "
for femails data\sprite\¾Ç¼¼»ç¸®\¿©\ and renamed the file " ¿©Angeling_Wings "

 

 

 

 

In accname.lua

    [ACCESSORY_IDs.ACCESSORY_Angeling_Wings] = "_Angeling_Wings"
}

 

 

 

 

In accessoryid.lua (other guides and default file removes the comma on the last entry)

	ACCESSORY_Angeling_Wings = 874
}

 

 

Ingame @changelook command 874 (or whatever ID i placedin accessoryid.lua) gives me nothing in-game. The EXE file has been patched for custim Id max at 30000 and to read lua files before lub.

wtf!... 30000k?? lol. try to diff it to 2000 

Link to comment
Share on other sites


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

With the new lua system, any equip (right now only headgears, weapons and garments) that shows on a character has a second id called view id. This id is what the client uses to access information about where to get sprites for displaying on the character.

 

For headgears we specify them through accname.lua and accessoryid.lua files. (accessoryid modification is actually optional if you dont mind using view id directly - example shown below).

 

Now for your case - Angeling_Wings with view id 874

 

In accessoryid.lua

[ACCESSORY_Angeling_Wings] = 874

 

In accname.lua

[ACCESSORY_IDs.ACCESSORY_Angeling_Wings] = "_Angeling_Wings"

 

If you find this confusing you can also do it this way :

 

No modification in accessoryid.lua

 

In accname.lua

[874] = "_Angeling_Wings"

 

From this the client simply suffixes the above string to the 32 and ¿© to get the sprite paths.

 

So the sprites names should be =>

data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_Angeling_Wings.spr

data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_Angeling_Wings.act

 

data\sprite\¾Ç¼¼»ç¸®\³²\³²_Angeling_Wings.spr

data\sprite\¾Ç¼¼»ç¸®\³²\³²_Angeling_Wings.act

 

if you don't want the underscore before "Angeling" you should remove it in accname.lua as well.

 

 

wtf!... 30000k?? lol. try to diff it to 2000 
 

i diffed mine to 30000 too there is no issue in that (since it is the max value possible)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   1
  • Joined:  02/04/13
  • Last Seen:  

the first Client who use lua files for item is 2012-04-18 .  Client 2012-04-10 use "idnum2item....txt" for item's

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

thanks for everyone's input on this and I apologize i posted on the wrong section. 

I know @changelook command calls for the client to select that id and show. But darn thing just won't show up even with a custom "apple" item just to check it out.

So also [874] = "_Angel_Wings" doesn't work for me :) thanks for the info but i've tried that too.

Langtype is set 0 or 1.. still doesn't work... can someone be nice enough to give me a sample? I'd upload the files for you if you need it. I juzt need 1 :)~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

thanks for everyone's input on this and I apologize i posted on the wrong section. 

I know @changelook command calls for the client to select that id and show. But darn thing just won't show up even with a custom "apple" item just to check it out.

So also [874] = "_Angel_Wings" doesn't work for me :) thanks for the info but i've tried that too.

Langtype is set 0 or 1.. still doesn't work... can someone be nice enough to give me a sample? I'd upload the files for you if you need it. I juzt need 1 :)~

 

'll hitchhike here ... xD

I'm trying to configure a server with renew r17138

information of use to say reathena hexede 2012-04-10th

Some problems I am trying to solve two weeks, and I'm not succeeding in finding answers

on any board.

Don run the client window.

- Did all that was possible to imagine I even tried the marretear hexed, but the name / title of the window is absolutely lost at the hexed address 532851 (11 spaces).

-There appear also minimize the buttons (already tried all setups using win7 at work and at home xP).

I thought ...

I'll leave that for later ... I'll put some wings to at least get something prettier.

Based on a server that was working perfectly in version 2009 (I think)

reused all codes itemdb ... and everyone else, conferred minuscionamente.

All sprites are in the correct places (according to what he understood of rag,

but with so many changes, I give tutorials), and continues all the right places.

Each sprite, description, item information ... everything in order.

 

Run then right?!

xD

@item 99999

bingo

there he is.

team, gives bonus and everything else ....

BUT

does not show the char equipped.

well ... face of so many troubles,

left no alternative but to ask for help to someone who has already gone through these difficulties,

and mostly with good will to help resolve this.

PS.: Idea and configure a "private"

which will be played exclusively on weekends,

by a group of about 40/50 players, all of which bear the desesas

server cooperatively.

then no there items for donations.

Additional players will be accepted by appointment and approval of admins group.

 

Again, thank you if you have help.

 

ths at our "lord" Judas, if can help me.

I read each tutor than you have posted.

wow

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