Jump to content
  • 0

How to insert in-game item via thor patcher


lexaeus

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

Hi Guys,

I would like to ask how to insert item using thor patcher. I would like to add custom item on my server however when I already updated the following accname,accessory id,idnum2itemdesctable,idnum2displaynametable, idnum2itemresnametable , itemslotcountable and spr / act. Also updated Item_db.

the patch is completing however when I @item the item that I inserted it giving me error "@item failed"

Is there a video or guide that I need to follow of I missed some steps.

Looking forward for your expert response.

 

Thank you,

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  24
  • Reputation:   2
  • Joined:  06/22/12
  • Last Seen:  

don't forget to use commands in game @reloaditemdb or restart your server after update item_db

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

I already reloadeditemdb but to no avail.

do you have a guide wherein I can follow?

 

Thank you in advance

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

@item failed = server side

did you add it to your item_db ?

can you show us the line for that item ?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

currently, the patch that I made is failing.

failed to get 07-26-17.thor :(

I uploaded the patch and added it in the plist.

 

heres the command line on my item_db

 

5000,Myd_Cap,Myd_Cap,5,0,0,0,,0,,1,0xFFFFFFFF,7,2,256,,1,1,1325,{},{},{}

 

patch successfully downloaded.

I reloaded itemdb

and here's what happened.

 

Capture.JPG

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

Hi guys update.

I was able to get the item however it is not showing in my inventory.

597984e6895b8_Capture1.JPG.6c68169f5a24aa61a5a0e8228aa22941.JPG

what wrong with this.

Thank you in advance.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

even if you got (failed to get 07-26-17.thor) @item failed = server side if it's from the client you will get the item even if it's not in the client you will get apple like unknown item

did you try to restart the server ?

this line where you put it ?

pre/item_db.txt ? <<this = pre

re/item_db.txt ? <<this = renewal

item_db.sql ? <<this = pre sql type

item_db_re.sql ? <<this = renewal sql type

 

4 hours ago, lexaeus said:

not showing in my inventory

this now a client files error 

make sure you have the item.bmp in the grf and the irem file name in the itheminfo.lua/lub

icon:

data\texture\유저인터페이스\item\my_item.bmp

collection:

data\texture\유저인터페이스\collection\my_item.bmp

if the item hat etc that need spirt and act you need those files

drop spirt/act:

data\sprite\아이템\my_item.spr

data\sprite\아이템\my_item.act

boy/girl spirt/act files:

data\sprite\악세사리\남\남_my_item.spr

data\sprite\악세사리\남\남_my_item.spr

data\sprite\악세사리\여\여_my_item.spr

data\sprite\악세사리\여\여_my_item.spr

you need to add the view id in:

data\lua files\datainfo\accessoryid.lub

ACCESSORY_MY_ITEM = 1500 << EXAMPLE

data\lua files\datainfo\accname.lub

[ACCESSORY_IDs.ACCESSORY_ROSE_HEADBAND] = "_my_item"

iteminfo.lua/lub:

[5000] = {
        unidentifiedDisplayName = "Helm",
        unidentifiedResourceName = "헬름",
        unidentifiedDescriptionName = {
            "Unknown Item, can be identified by ^6A5ACDMagnifier^000000.",
        },
        identifiedDisplayName = "my item",
        identifiedResourceName = "my_item",
        identifiedDescriptionName = {
            "it's my item.",
        },
        slotCount = 0,
        ClassNum = 1500
    },

 

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

yes i have all the item.bmp in the grf.

Capture 2.JPG

 

i checked my grf and it looks like this.

how can I remove all unnecessary files?

Capture 3.JPG

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

are you sure your client use the txt files ?not the iteminfo.lua/lub ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

yes my client uses text files

 

ACCNAME :

    [ACCESSORY_IDs.ACCESSORY_BLUE_EYES] = "_blueeyes",
    [ACCESSORY_IDs.ACCESSORY_myd_CAP] = "_mydcap",

ACCESSORYID :

    ACCESSORY_BLUE_EYES = 1324,
    ACCESSORY_MYD_CAP = 1577,        <<<<<----- this is the last line on my accessoryid, should I remove (,) ?

 

Thank you!

 

4 hours ago, sader1992 said:

even if you got (failed to get 07-26-17.thor) @item failed = server side if it's from the client you will get the item even if it's not in the client you will get apple like unknown item

did you try to restart the server ?

this line where you put it ?

pre/item_db.txt ? <<this = pre

re/item_db.txt ? <<this = renewal

item_db.sql ? <<this = pre sql type

item_db_re.sql ? <<this = renewal sql type

pre/item_db.txt ? <<this = pre

I managed to get the item however it is not showing in my inventory

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

when you hover the mouse on it it must say missing something

you don't get that ?

not showing in the inventory = data\texture\유저인터페이스\item\my_item.bmp

what the error show ? and if you don't get popup error see the chat

if you can make a test client that you use for testing and don't use 

Ignore Resource Errors
Ignore Missing Palette Error

those options not good for testing they will hide the error from you 

ofc if you want client not for testing and to give it for other players you do choose those options

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  24
  • Reputation:   2
  • Joined:  06/22/12
  • Last Seen:  

Check your file name.. 
i think wrong in item name wich has a sign ( _ )  in your GRF

Edited by Ilfan Zulkarnain
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

should I remove the ( _ ) on the item name?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  65
  • Reputation:   0
  • Joined:  03/03/17
  • Last Seen:  

4 hours ago, sader1992 said:

when you hover the mouse on it it must say missing something

you don't get that ?

not showing in the inventory = data\texture\유저인터페이스\item\my_item.bmp

what the error show ? and if you don't get popup error see the chat

if you can make a test client that you use for testing and don't use 


Ignore Resource Errors
Ignore Missing Palette Error

those options not good for testing they will hide the error from you 

ofc if you want client not for testing and to give it for other players you do choose those options

when I hover on the item it says nothing. then when I right clicked on the item it shows the description however no image of the item.

I tried to equip the item and then boom I got an error "something says data .... item bmp"

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1677
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

when you don't see the icon in your bag = data\texture\유저인터페이스\item\my_item.bmp

when you don't see the image when you right click the item = data\texture\유저인터페이스\collection\my_item.bmp

when you hold the item with your mouse or see the item on the ground = data\sprite\아이템\my_item.spr/act

getting error when you ware the item or you don't see the item after you ware it  = data\sprite\악세사리\남\남_my_item.spr/act + data\sprite\악세사리\여\여_my_item.spr+act

you also will get the errors if you didn't add the file name/loc as it most be

can you let us see the accessoryid.lub / accname.lub and there path and the text files + are they in grf or data folder ? did you add the grf to your data.ini ?

can you let us know what the files you have for the item ? did you try to make new grf and put only the item and add it to your data.ini and see if it's working ?

if you upload the files and put them here or send them to me in private message i would make a grf from them and you test if everything work or not it would be faster (only the text files/lub/lua/the item files)

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  02/01/17
  • Last Seen:  

16 hours ago, lexaeus said:

Hi Guys,

I would like to ask how to insert item using thor patcher. I would like to add custom item on my server however when I already updated the following accname,accessory id,idnum2itemdesctable,idnum2displaynametable, idnum2itemresnametable , itemslotcountable and spr / act. Also updated Item_db.

the patch is completing however when I @item the item that I inserted it giving me error "@item failed"

Is there a video or guide that I need to follow of I missed some steps.

Looking forward for your expert response.

 

Thank you,

Hello did you put your custom item in item_db2? And us accname, moon and lub?

Put in your /luasfiles/datainfo/accname.lub folder and moon [ID_Item] "_Name",
Then save both and compile with luac5.0.2

Now take the test to see if it works

Here it worked so my emulator, date is hexed are updated

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