Jump to content

Recommended Posts

Posted

[GR] Μπορεί να γίνει να δείχνει το id διπλά από το item? δηλαδή κάπως έτσι όπως στο minecraft.. :D

Screenshot_1.png

ofc it's easy

 

3b40c10bc40f43eba088b055572a7d1a.png f9bd07f503e5415b9f680edcbbe257c3.png

 

It's gonna be your HIGHLY MODIFIED AND TOP SECRET PATCH YOU WILL HAVE FOR YOUR PRO DEVELOPMENT REASONS.

  • 2 years later...
Posted
On 1/6/2017 at 11:03 PM, Reborn12 said:

Just a spam in your chat :D


could be like this to avoid spam chat :D
 

if (_ctrlPressed && activeChar.isGM()) activeChar.sendPacket(new CreatureSay(0, Say2.PARTY, "Name", ":" + item.getItemName() + " | Item ID:" +  
			item.getItemId()));

 

Posted (edited)
On 1/18/2017 at 3:47 AM, Hater’ said:

ofc it's easy


.........
 

It's gonna be your HIGHLY MODIFIED AND TOP SECRET PATCH YOU WILL HAVE FOR YOUR PRO DEVELOPMENT REASONS.



You can add on your interface ToolTip.uc just 1 line to do that -.- and keep it for your self...

//Additional Name
if (Len(Item.AdditionalName)>0)
{
        StartItem();
        m_Info.eType = DIT_TEXT;
        m_Info.t_bDrawOneLine = true;
        m_Info.t_color.R = 255;
        m_Info.t_color.G = 217;
        m_Info.t_color.B = 105;
        m_Info.t_color.A = 255;
-       m_Info.t_strText = " " $ Item.AdditionalName;
+      m_Info.t_strText = " (" $ Item.ID $ ") " $ Item.AdditionalName;
        EndItem();
}

Edited by StinkyMadness
Posted (edited)
On 1/28/2019 at 7:45 AM, StinkyMadness said:



You can add on your interface ToolTip.uc just 1 line to do that -.- and keep it for your self...

//Additional Name
if (Len(Item.AdditionalName)>0)
{
        StartItem();
        m_Info.eType = DIT_TEXT;
        m_Info.t_bDrawOneLine = true;
        m_Info.t_color.R = 255;
        m_Info.t_color.G = 217;
        m_Info.t_color.B = 105;
        m_Info.t_color.A = 255;
-       m_Info.t_strText = " " $ Item.AdditionalName;
+      m_Info.t_strText = " (" $ Item.ID $ ") " $ Item.AdditionalName;
        EndItem();
}

 

Sometimes, things are way easier... When i wanted something similar i ended up with the following code instead of the line you shared.

 

function OnClickItem( String strID, int index )
{
	Local ItemInfo info;
	Local ItemWindowHandle a_hItemWindow;
	a_hItemWindow = ItemWindowHandle(GetHandle("InventoryWnd" $ ".InventoryItem"));
	a_hItemWindow.GetItem(index, info);
	sendMessage("ItemID: " $ info.ClassID ,true);
	sendMessage("ObjectID: " $ info.ServerID ,false);
}

function sendMessage(String text,bool serverId)
{
	local Color	color;
	NormalChat = ChatWindowHandle( GetHandle("ChatWnd.NormalChat") );
	if (serverId)
	{
		Color.R = 153;
		Color.G = 102;
		Color.B = 0;
	}
	else
	{
		Color.R = 102;
		Color.G = 153;
		Color.B = 0;
	}
	color.A = 255;
	NormalChat.AddString(text, color );
}

in InventoryWnd

 

edit: the above code is sending itemid,objid when you click an item with left click :P

Edited by melron
Posted (edited)
5 hours ago, melron said:

 

Sometimes, things are way easier... When i wanted something similar i ended up with the following code instead of the line you shared.


...........
 

in InventoryWnd

 

edit: the above code is sending itemid,objid when you click an item with left click :P


i make it on tooltip so i can see the itemId everywhere, My Inventory, Player Inventory, Player Wharehouse and Multisell/Shops ^_^ (This change is only on my interface not same for players :P

Edited by StinkyMadness
  • 5 years later...
Posted
On 1/28/2019 at 7:45 AM, StinkyMadness said:



You can add on your interface ToolTip.uc just 1 line to do that -.- and keep it for your self...

//Additional Name
if (Len(Item.AdditionalName)>0)
{
        StartItem();
        m_Info.eType = DIT_TEXT;
        m_Info.t_bDrawOneLine = true;
        m_Info.t_color.R = 255;
        m_Info.t_color.G = 217;
        m_Info.t_color.B = 105;
        m_Info.t_color.A = 255;
-       m_Info.t_strText = " " $ Item.AdditionalName;
+      m_Info.t_strText = " (" $ Item.ID $ ") " $ Item.AdditionalName;
        EndItem();
}

image.thumb.png.15fcd3a3419dfa46f2689ac53bcf53ee.png

Error in compile!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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



  • Posts

    • I wouldn't expect something less, since you work with Psadek (or I maybe mistake you with NightW0lf from itopz, in that case soz) Let's throw rocks at Java Golds and elevate "original L2OFF Golds", no?
    • We are delighted to announce our partnership with the leading resource, Active Anticheat, specializing in protection against bot programs, clickers, and additional modules for the game client that enhance the experience for both you and the players!   When you purchase Active Anticheat for our product, you will also receive a $50 discount.   Here's a brief overview of the features of Active Anticheat: Best protection against bots, including private and premium versions. Window limitation. HWID spoofing protection. Virtual machine protection. File hash protection for client files, preventing players from modifying them (e.g., interface files). Encryption of any game files. Integration with Discord to attract new players! Additional plugins: - Window with saved player logins/passwords. Players no longer need to enter them every time! - HWID sending to the game server. - Game window optimizer for quick switching. - Background FPS adjustment. - Window name customization in the format "%character_name% - %server_name%". - Ctrl+C/V permission. - Login and password saving (for Interlude -> High Five). - Launching the browser via server packets. - Launching interface events via server packets. - Interlude: fixing a known game bug (History: UpdateAnimation <- AActor::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop). - Interlude: debuff feature. 9) All of this is available without modifying the game server code (some plugins may require minor changes). Take note of newest plugin, which is highly useful: Guides section
    • The Lucera2 Multiprotocol is an advanced server branch for Lineage 2 that enables seamless support for multiple client versions on a single server instance. This allows players to connect and play using either the legacy (old) client or the newer Classic client simultaneously, without any compatibility issues or loss of functionality. Key Benefits Dual Client Support: Both the old Interlude client and Classic: Secret of Empire 2.6 client can run concurrently on the same server. All features from the Classic client (e.g., enhanced UI, new mechanics) remain fully available, while the old client retains its alternative features (e.g., simplified interfaces for lower-end hardware). Expanded Player Base: Ideal for regions with limited access to modern gaming setups, as it accommodates a wider range of devices and preferences, merging Legacy and Classic communities into one forum section for unified discussions. No Functionality Gaps: Extensive testing ensures zero disruptions—players on either client experience complete game integrity, including quests, PvP, raids, and custom Lucera2 subsystems. You can fully test and explore all aspects of Multiprotocol on the dedicated Test Server. Supported Protocols C6 (Old Client): Protocol versions 740–770. Classic Client (Secret of Empire 2.6): Protocol versions 166–192.
    • Connect to the server you need to >>>download<<< game client launch from /system_en/. Login server setup on auto registration, admin rights in game by default . Or you can use a patch specifying the l2.ini Connect to address classic.lucera2.com if you already have a game client Download updated patch All major/minor subsystems operate in a proper view. Absolutely ready to combat the server.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock