Jump to content

Recommended Posts

Posted (edited)

Hello MxC!

 

I want to add to multisell window next to item needed count, the item count that the player have in his inventory. For ex if you need 15000 adena to buy x item price to be  like 15000 (100000000). Check image bellow.

image.png.92d5f1ea27fbdc09a730c77ef179f17e.png

 

I know that this is interface matter and maybe needed some core support. Anyone can give me a hand? I have decrypted and allready edited interface files for my needs. This is the last addon i would like to have.

Thanks in advance

Edited by andy1984
Posted (edited)

One idea which i just tested is just replace `UIAPI_MULTISELLNEEDEDITEM` to `UIAPI_HTMLCTRL` and just create how  want via html code.

https://prnt.sc/TaxhUdUma-U1

 

function OnClickItem( String strID, int index )			// ItemWindow
{
	local int i;
	local int Index2;
	local int have;
	local string param;
	local string html;
	local string multi;
	local ItemInfo a_ItemInfo;
	InventoryItem = ItemWindowHandle(GetHandle("InventoryWnd.InventoryItem"));
	
	class'UIAPI_MULTISELLITEMINFO'.static.Clear("MultiSellWnd.ItemInfo");
	class'UIAPI_MULTISELLNEEDEDITEM'.static.Clear("MultiSellWnd.NeededItem");
	//debug("OnClickItem : " $ strID $ ", index : " $ index );
	if( strID == "ItemList" )
	{
		if( index >= 0 && index < m_itemList.Length )
		{
			for( i=0 ; i < m_itemList[index].NeededItemList.Length ; ++i )
			{
				have = 0;
				param = "";
				//ParamAdd( param, "Name", m_itemList[index].NeededItemList[i].Name $ "\r\n99999");
				//ParamAdd( param, "ID", string(m_itemList[index].NeededItemList[i].ID ));
				//ParamAdd( param, "Num", string(m_itemList[index].NeededItemList[i].Count ));
				//ParamAdd( param, "Icon", m_itemList[index].NeededItemList[i].IconName );
				//ParamAdd( param, "enchant", string(m_itemList[index].NeededItemList[i].Enchant) );
				//ParamAdd( param, "CrystalType", string(m_itemList[index].NeededItemList[i].CrystalType) );
				//ParamAdd( param, "ItemType", string(m_itemList[index].NeededItemList[i].ItemType) );

				//debug("AddData " $ param );
				//class'UIAPI_MULTISELLNEEDEDITEM'.static.AddData("MultiSellWnd.NeededItem", param);
					Index2 = InventoryItem.FindItemWithClassID(m_itemList[index].NeededItemList[i].ID);
					if (Index2 > -1) {
					InventoryItem.GetItem(Index2,a_ItemInfo);
						have = a_ItemInfo.ItemNum;
					}
				multi = multi $ "<tr><td width=32><button width=32 height=32 back=\""$m_itemList[index].NeededItemList[i].IconName$"\" fore=\""$m_itemList[index].NeededItemList[i].IconName$"\"></td><td width=188 align=left><table cellspacing=0 cellpadding=0 width=188><tr><td>"$m_itemList[index].NeededItemList[i].Name$"</td></tr><tr><td>x "$string(m_itemList[index].NeededItemList[i].Count )$" (x"$string(have)$")</td></tr></table></td></tr>";
			}
			html = "<html><body><table width=220>"$multi$"</table></body></html>";
			class'UIAPI_HTMLCTRL'.static.LoadHtmlFromString("MultiSellWnd.NeededItemHtml", html);
			for( i=0 ; i < m_itemList[index].NeededItemNum ; ++i )
			{
				class'UIAPI_MULTISELLITEMINFO'.static.SetItemInfo("MultiSellWnd.ItemInfo", i, m_itemList[index].ItemInfoList[i] );
			}

 

xdat:

https://prnt.sc/1GenJx567s-N

Edited by wongerlt
Posted (edited)

 

 

fixed. thanks very much mate.

P.S is not 100% ready. some changes needed to be 100% ok.

if someone know another way please give me a advise. 

Edited by andy1984

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello, you can check www.l2jmaster.org we have a test server. regards.
    • 🎣 Enhanced Fishing Bot — Midnight 12.0.7 Now fully hands-off: it re-applies your lures AND uses your consumables automatically. 🔥   ▶️ Watch it in action:   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The only WoW fishing bot that keeps your pole lured and your buffs up the entire session — no babysitting, no lost catch rate. And it doesn't read your screen or touch the game — it listens for the splash like a real player. ❝ Other bots fish with a bare pole and waste half your session. This one keeps it lured and buffed the whole time — so you catch more, every cast. ❞ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✨ WHAT'S NEW • Automatic lure application — your fishing pole stays lured all session, so your catch rate never drops • Automatic consumables — food, buffs & fishing items get used for you, on time, automatically • Fully unattended — set it and genuinely walk away   ⚙️ HOW IT WORKS Pure audio detection — no pixels, no memory reading, no injection. It hears the splash, loots, recasts. Works at any resolution, UI scale, or graphics setting.   🛡️ BUILT TO STAY UNDER THE RADAR Every action is randomized to look human: • Randomized reaction times & key-hold durations • Occasional "missed" catches & distracted pauses • Idle breaks, anti-AFK jumps, periodic bag checks • Subtle mouse & position jitter • Built-in 3-hour session cap — never looks like a 24/7 robot • Fatigue system — reactions slow over long sessions, like a tired player   🪝 EVERYTHING INCLUDED • Comes with the bot + the BobberAssist addon (handles lures & consumables in-game) • One-time setup — remembers your settings • Optional VB-CABLE support to isolate WoW audio • Sit-and-fish mode for less mob aggro   🔒 LICENSING • One license = one PC, locked on first launch • Instant key delivery in our Discord • Changed PCs? Open a ticket and we'll reset it   ♻️ Free updates for life — buy once, every future version is free. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 💬 All the details, pricing & download are in our Discord: 👉 JOIN THE DISCORD 👈 Like any automation, use at your own discretion — ToS applies.  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..