Jump to content
  • 0

how to use act / spr file


adseej

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  07/06/12
  • Last Seen:  

i create spr and act view file how to use it ^^'

i have new item data but view item no ? i don't how to use my file

i can use spr (drop item)

vg.act / vg.spr < item (drop/icon) i can use this

headgear(mid) item ( m / f ) < item view i don't know how to use - -'

남_vg.act / 남_vg.spr

여_vg.act / 여_vg.spr

29001,Virtual_guard','Virtual guard',5,,,0,,,,,0xFFFFFFFE,7,2,1024,,,,?view number?,{},{},{}

/pif

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

It looks like you're trying to add a shield based item. The naming of the shield sprite .ACT and .SPR can be found here (naming differs based on class). That link also provides the location of where you place your shield. As for the view ID it's based on the following:

Shield-type items (List # signifies the sprite it will refer to show):

  1. Guard, Novice Guard
  2. Buckler
  3. Shield, Holy Guard, Evangelist
  4. Mirror Shield

E.g - Custom Shield utilizing a NON-Custom Sprite

2141,Dwarven_Guard,Dwarven Guard,5,500,,300,,4,,1,0xFFFFFFFF,7,2,32,,0,1,1,{ if(getrefine()>6){ bonus bMdef, 2;}},{},{}

- This sprite will appear as a guard

Step 1. You MUST utilize an item db # range of the item within 2101~2199. So any of those numbers is perfectly fine to use. (Client hard coded this range for acceptable shields to view)

Step 2. The type must be set to armor which is 5. (Shields are armor type equipments)

Step 3. The view ID determines the kind of sprite to present.

After adding your sprite to the appropriate client side areas you should be good.

Since shields don't share the flexibility as weapons do (you can name a weapon sprite file to contain a number which is equal to the item DB number in the acceptable weapon ID range and your weapon will call that specific custom sprite) which I believe is right, you have to replace the pre-existing shields sprites with your own and have it appear there. Again refer to the sprite bible. If I'm wrong on this matter (I haven't personally added a custom shield sprite before) please make sure to correct my mistake.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  07/06/12
  • Last Seen:  

not shield it headgear(mid-coutume) item and add new Custom Sprite

ex

item Detail add in idnum2itemdesctable.txt

29001#

new coutume

Weight : ^7777770^000000

#

item name add in idnum2itemdisplaynametable.txt

29001#Virtual_glasses#

item .spr(icon) file add in idnum2itemresnametable.txt

29001#Virtual_glasses#

but where i can add or fix view item(number)

ex.

2141,Dwarven_Guard,Dwarven Guard,5,500,,300,,4,,1,0xFFFFFFFF,7,2,32,,0,1,1,{ if(getrefine()>6){ bonus bMdef, 2;}},{},{} <<< view number = 1

my add item

29001,Virtual_guard','Virtual guard',5,,,0,,,,,0xFFFFFFFE,7,2,1024,,,,?view number?,{},{},{}

type 5 = armor type

location equip 1024(costume-headgear-mid)

view number ??? <<<< how to use this

ex

207 = Cyclop's Eye view

12 = Sunglasses

568 = Sigrun's Wings

what i can add my new view number /hum

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

So this is a costume regular headgear? Alright then it really simplifies things up.

1. Open your data / lua files / datainfo / accessoryid.lua

2. Open your data / lua files / datainfo / jobname.lua

3. Follow this guide here: http://rathena.org/wiki/Custom_Items#View_IDs.2C_Having_A_Custom_Item_Without_Xray

If you're still confused, the Graphics Support section is filled threads regarding "how to add custom items" so you shouldn't have a problem finding resources to solve your issue. If you're still stuck after all of that, come back to this thread. =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  07/06/12
  • Last Seen:  

Ohhhh! thanks

add in lua file on I get it /ok

it work

Edited by adseej
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...