Abandoned displaying status items

Status
Not open for further replies.

SeSephiroth

Premium
Premium
Joined
Nov 5, 2024
Messages
24
Reaction score
2
Points
3
6 II_SYS_SYS_SCR_VELOCIJUMP IDS_PROPITEM_TXT_004666 1 9999 IK1_CHARGED IK2_SYSTEM IK3_SCROLL = 0 1 = 0 = = = = = = = 0 = = 1 = = 1 1 = = = = _NONE 0 = = = = = = = = = = = = = = = = = = = DST_SPEED DST_JUMPING = = = = 25 25 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = XI_SYS_EXPAN01 = = = 180 = = WUI_NOW = = = = = = = = = 1 = = = = = = = = = = = = 1 = = = """Itm_SysSysScrVelJum.dds""" 0 "" "" "" IDS_PROPITEM_TXT_004667

I just realized that there's something I'm wondering about. I'm looking for How to make items of this type display their status list when used?
 

Attachments

  • 1730834122371.png
    1730834122371.png
    22.3 KB · Views: 18
What do you mean? Show their stats? If so - here's what I know / think:

Most buff items display their stats as they are contained in their spec(prop)_item under the dst parameters which will be used when MakeToolTipText is called

Not all power-ups were made equal in the flyff source. Some use the this SMMode system and most (maybe all?) of these don't show stats. Their effects are hard-coded and there's no dst to read from their item prop to be displayed client-side in tool tips. Examples are upcuts, velocity scrolls, bull hamstring, grilled eel etc.

How to fix? You just need to create a function to output the effects, probably best to use a switch statement on the ID and call it explicitly for each ID that uses the SMMode system (there's like 6/7 which give stats that you will want to include)

Hey There!
Please login and(or) register to see this awesome content today.

Then you probably want to look in

or

Hey There!
Please login and(or) register to see this awesome content today.

To call you new function ( CWndMgr:: PutSMModeEffect(CItemElem* pItemElem, CEditString* pEdit) )
 
Last edited:
  • Like
Reactions: SeSephiroth
What do you mean? Show their stats? If so - here's what I know / think:

Most buff items display their stats as they are contained in their spec(prop)_item under the dst parameters which will be used when MakeToolTipText is called (I think).

Not all power-ups were made equal in the flyff source. Some use the this SMMode system and most (maybe all?) of these don't show stats. Their effects are hard-coded and there's no dst to read from their item prop to be displayed client-side in tool tips. Examples are upcuts, velocity scrolls, bull hamstring, grilled eel etc.

How to fix? You just need to create a function to output the effects, probably best to use a switch statement on the ID and call it explicitly for each ID that uses the SMMode system (there's like 6/7 which give stats that you will want to include)

Hey There!
Please login and(or) register to see this awesome content today.

Then you probably want to look in

or

Hey There!
Please login and(or) register to see this awesome content today.

To call you new function ( CWndMgr:: PutSMModeEffect(CItemElem* pItemElem, CEditString* pEdit) )
It is an easy to understand explanation. thank you very much

What do you mean? Show their stats? If so - here's what I know / think:

Most buff items display their stats as they are contained in their spec(prop)_item under the dst parameters which will be used when MakeToolTipText is called (I think).

Not all power-ups were made equal in the flyff source. Some use the this SMMode system and most (maybe all?) of these don't show stats. Their effects are hard-coded and there's no dst to read from their item prop to be displayed client-side in tool tips. Examples are upcuts, velocity scrolls, bull hamstring, grilled eel etc.

How to fix? You just need to create a function to output the effects, probably best to use a switch statement on the ID and call it explicitly for each ID that uses the SMMode system (there's like 6/7 which give stats that you will want to include)

Hey There!
Please login and(or) register to see this awesome content today.

Then you probably want to look in

or

Hey There!
Please login and(or) register to see this awesome content today.

To call you new function ( CWndMgr:: PutSMModeEffect(CItemElem* pItemElem, CEditString* pEdit) )

I have edited it according to the instructions in this section.

void CWndMgr::MakeToolTipText( CItemBase* pItemBase, CEditString& strEdit, int flag )

Option show If I point to an item in my inventory

But after pressing use, the option still doesn't show. I'm looking for a point.

The source I'm using doesn't see this.

PutSMModeEffect

I have edited it according to the instructions in this section.

void CWndMgr::MakeToolTipText( CItemBase* pItemBase, CEditString& strEdit, int flag )

Option show If I point to an item in my inventory

But after pressing use, the option still doesn't show. I'm looking for a point.

The source I'm using doesn't see this.

void CWndMgr:: PutSMModeEffect(CItemElem* pItemElem, CEditString* pEdit)
 
Just to clear up my earlier poost after doing some digging.

On my base (v18): SM buff items (like velocity scroll) when in the inventory will create their tooltips using the MakeToolTipText function I described previously.

Once activated you need to look at the following function:

Hey There!
Please login and(or) register to see this awesome content today.

Turns out velocity scroll does infact have two dst parameters for it's effect in the spec_item so the effects can be displayed with the following: (I've outlined the section in the "__SMBUFF_STAT_DISPLAY" define)

Hey There!
Please login and(or) register to see this awesome content today.

For Upcut stone (and some others) some extra consideration is still needed as these effects are hardcoded and are not dst parameters. For upcuts you'll want to add something like this after or before the dst parameter displays.

Hey There!
Please login and(or) register to see this awesome content today.
 
Last edited:
On my base (v18): SM buff items (like velocity scroll) when in the inventory will create their tooltips using the MakeToolTipText function i described previously.

Once activated you need to look at the following function:

Hey There!
Please login and(or) register to see this awesome content today.

Turns out velocity scroll does infact have two dst parameters for it's effect in the spec_item so the effects should be getting displayed at the following point:

Hey There!
Please login and(or) register to see this awesome content today.
Yes,

Hey There!
Please login and(or) register to see this awesome content today.
Is the correct function to edit the text of the sm buffs tooltips.

My only caveat is that in L19.4 the tooltip is called in another function:

Hey There!
Please login and(or) register to see this awesome content today.


if i am not mistaken, "CWndMgr::MakeToolTipText" is mostly used for tootip in 'inventory' -- In other words, an item that has already been added to some inventory and has not been consumed.
 
Last edited:
Status
Not open for further replies.