Custom TypeID 4.

03/11/2021 04:27 Vaasneht#1
Hello, first of all thank you so much for all the questions, answers and info that is stored in this forum, it has helped me alot.

My question is really simple, as the title says, I would like to know the steps or any tip/hint in how to create a custom typeid 4, and make it work. I know that the answer is not as simple as my question, but any guidance will help me. I already figured it out how to create the custom text, my problem is that when I right click the item, for example a return scroll nothing happen, I think I know that I have to hook the custom typeid 4 to something on the game server and the client to make it work, I'm not really an expert on this subject, this has been a learning experience for me, so don't be rude with me I'm just trying to learn new things.

Basically what I want to do is have a custom text for an scroll for example, instead of saying Sort of Item: Return Scroll, it says Sort Of Item: Awesome Item, and when I right click it, it works as a regular return scroll.

Thank you so much in advance to anybody who can help me with this.

P.D: Sorry for my english, it isn't my native language.
03/12/2021 16:45 DaxterSoul#2
item_grouping.txt has 2 sections. GROUPING_TID which assigns group names as Return Scroll by TID. But it also has GROUPING_CODENAME where you can define a specific item codename and assign a group name to that. Now I don't know if the GROUPING_CODENAME will override the GROUPING_TID if there already is but it might be worth a try. You could still use the original TID of the Return Scroll for your "Awesome Item" and retain it's functionally without going into the GameServer assembly and patching up the IGObj::IsTownPortal function to include your custom TID4.
03/12/2021 23:30 Vaasneht#3
Quote:
Originally Posted by DaxterSoul View Post
item_grouping.txt has 2 sections. GROUPING_TID which assigns group names as Return Scroll by TID. But it also has GROUPING_CODENAME where you can define a specific item codename and assign a group name to that. Now I don't know if the GROUPING_CODENAME will override the GROUPING_TID if there already is but it might be worth a try. You could still use the original TID of the Return Scroll for your "Awesome Item" and retain it's functionally without going into the GameServer assembly and patching up the IGObj::IsTownPortal function to include your custom TID4.
I’ll give it a try and I’ll let you know, thank you for the tips.

EDIT: @[Only registered and activated users can see links. Click Here To Register...] Dude you are a genius, this is exactly what I wanted to do, as you said, creating a new SN_ITEM_TOOLTIP_GROUPING in textdata_object and, assigning that custom item tooltip grouping to an existing item in GROUPING_CODENAME, override the text and the item is functional. Also, other items with the same TID doesn't change, they keep the original text, like for example Return Scroll. Thank you so much for your tip and help, I really appreciate it.

EDIT 2: If a moderator wants to close this thread, you are more than welcome to do it.