Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 16:46

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Item Comparison System in VSRO - Late Halloween Gift

Discussion on [Release] Item Comparison System in VSRO - Late Halloween Gift within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old 12/25/2019, 19:46   #31
 
ownkhan's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 116
Received Thanks: 105
Quote:
Originally Posted by kanift View Post
why don't u guys use a custom class ?




nice troll ALP
ownkhan is offline  
Old 12/25/2019, 21:32   #32

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
Code:
class wstring05 {
public:
	wstring05(const wchar_t* cstr)
	{
		allocator = nullptr;
		reserved_size = size = wcslen(cstr);
		if (size < 8)
			memcpy(buffer, cstr, (size + 1) * sizeof(wchar_t));
		else
			p_buffer = cstr;
	}

	const wchar_t* cchar()
	{
		if (reserved_size > sizeof(buffer))
		{
			return p_buffer;
		}
		else
		{
			return buffer;
		}
	}

private:

	void *allocator;
	union {
		wchar_t buffer[8];
		const wchar_t* p_buffer;
	};

	int size;
	int reserved_size;
};
and I'm using this.

credits: stackoverflow
sarkoplata is offline  
Old 12/25/2019, 22:30   #33
 
kanift's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 62
Received Thanks: 78
Quote:
Originally Posted by sarkoplata View Post
Code:
class wstring05 {
public:
	wstring05(const wchar_t* cstr)
	{
		allocator = nullptr;
		reserved_size = size = wcslen(cstr);
		if (size < 8)
			memcpy(buffer, cstr, (size + 1) * sizeof(wchar_t));
		else
			p_buffer = cstr;
	}

	const wchar_t* cchar()
	{
		if (reserved_size > sizeof(buffer))
		{
			return p_buffer;
		}
		else
		{
			return buffer;
		}
	}

private:

	void *allocator;
	union {
		wchar_t buffer[8];
		const wchar_t* p_buffer;
	};

	int size;
	int reserved_size;
};
and I'm using this.

credits: stackoverflow
i think u didnt pay attention to source (c&p is evil) size < 8 @ ctor but reversed_size > 8 @ cchar ? good bye to cchar when 8len in ctor

kanift is offline  
Old 12/26/2019, 00:36   #34

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,654
well, you're right. just using the constructor to make wstring05's and passing them to sro functions, didn't even use that cchar(). saving the day with c&p
sarkoplata is offline  
Old 12/27/2019, 03:03   #35
 
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 86
Works, thank you.
Mr.Awesome1337 is offline  
Old 12/29/2019, 21:06   #36
 
elite*gold: 0
Join Date: Aug 2019
Posts: 15
Received Thanks: 0
Does anyone help me
silkroadntc is offline  
Old 10/29/2020, 01:45   #37
 
elite*gold: 0
Join Date: Oct 2020
Posts: 104
Received Thanks: 19
after into dll in sro_clinet not found any damage on weapons ? @HB
Rixy* is offline  
Old 10/29/2020, 09:12   #38
 
elite*gold: 0
Join Date: Mar 2010
Posts: 564
Received Thanks: 226
Quote:
Originally Posted by Rixy* View Post
after into dll in sro_clinet not found any damage on weapons ? @HB
How It Works: Hold ALT and put your mouse on the item in your inventory/npc/exchange..etc to compare to your equipped one on the tooltip.
Laag#82 is offline  
Thanks
1 User
Old 10/29/2020, 14:56   #39
 
elite*gold: 0
Join Date: Oct 2020
Posts: 104
Received Thanks: 19
Quote:
Originally Posted by khaleed2010 View Post
How It Works: Hold ALT and put your mouse on the item in your inventory/npc/exchange..etc to compare to your equipped one on the tooltip.
Thank working
Rixy* is offline  
Old 01/11/2021, 22:38   #40
 
elite*gold: 0
Join Date: Aug 2019
Posts: 55
Received Thanks: 10
Quote:
Originally Posted by #HB View Post
Hey there,

Happy Halloween everyone, I know its like a couple of days late, but you know...


About: Straight to the topic, if you haven't heard about this system before, this is an ISRO system, that helps you for example compare the stats of a weapon in your inventory to the already equipped weapon.

So, it should tell you whether the weapon in your inventory is better/worse than the weapon you're equipping, decreasing your time calculating with it your eyes, haha..

How It Works: Hold ALT and put your mouse on the item in your inventory/npc/exchange..etc to compare to your equipped one on the tooltip.


Code Snippets:
Code:
void CIFSlotWithHelp::AppendAdvancedInfo(CIFHelperBubbleWindow* window)
{
	reinterpret_cast<void(__thiscall*)(CIFSlotWithHelp*, CIFHelperBubbleWindow*)>(0x0066FD60)(this, window);

	/*0: EQUIP_SLOT_HELM
	1: EQUIP_SLOT_MAIL,
	2: EQUIP_SLOT_SHOULDERGUARD,
	3: EQUIP_SLOT_GAUNTLET,
	4: EQUIP_SLOT_PANTS,
	5: EQUIP_SLOT_BOOTS,
	6: EQUIP_SLOT_WEAPON,
	7: EQUIP_SLOT_SHIELD or ARROW,
	9: EQUIP_SLOT_EARRING,
	10: EQUIP_SLOT_NECKLACE,
	11: EQUIP_SLOT_L_RING,
	12: EQUIP_SLOT_R_RING,
	*/

	short ALTState = GetKeyState(VK_MENU);
	if (ALTState == -127 || ALTState == -128) // ALT is hold
	{
		wchar_t buffer[45];
		std::wstring mymsg(L"\n       <<Comparison>>");
		UINT msgcolor = 0xFFEFDAA4; //No Difference: FFFEFEFF | Better: FFFFD953 | Worse: FFFF4A4A
		window->WriteLine(mymsg, 0, msgcolor, 0, 3);
		CSOItem* myitem = this->_CSOItem;
		CSOItem* curritem;

		switch (myitem->GetObjectData()->TID)
		{
			//...
		}
	}
Note: Some calculations are incorrect or the text is miss-written, I was working quick back when I was making this project, so you may do a little touches on your own
Note: Addresses above are done on VSRO 1.88
Note: Structures above are for VC80 libs, back when strings were 28 bytes.
Note: Always compile on Release!

License: Leaving a tiny credit by the code won't hurt.

Special thanks to: florian0
When i Press ALT Got Crashed ! any help ??
omar125 is offline  
Old 01/12/2021, 00:52   #41
 
#HB's Avatar
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,097
Received Thanks: 889
Quote:
Originally Posted by omar125 View Post
When i Press ALT Got Crashed ! any help ??
Follow notes.
#HB is offline  
Old 01/12/2021, 15:51   #42
 
elite*gold: 0
Join Date: Aug 2019
Posts: 55
Received Thanks: 10
Quote:
Originally Posted by #HB View Post
Follow notes.
im usuing VC80 and VSRO188
*im was merge it with dev kit*
omar125 is offline  
Old 03/02/2021, 20:16   #43
 
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 9
How we can use with sro_devkit?
kanka5252 is offline  
Old 03/07/2021, 13:26   #44
 
elite*gold: 0
Join Date: Oct 2019
Posts: 195
Received Thanks: 81
How work ?
Mr Yuni ™ is offline  
Old 03/07/2021, 14:17   #45
 
elite*gold: 0
Join Date: Nov 2010
Posts: 132
Received Thanks: 9
he always change florian0 project and we cant use this release with devkit -.-"

Share all steps how we can do it? If you share we can teach @HB
kanka5252 is offline  
Reply


Similar Threads Similar Threads
[Release] Weapon Comparison
04/30/2016 - S4 League Hacks, Bots, Cheats & Exploits - 2 Replies
You can compare damage, range and time all attacks of all sword weapons Table with data:Comparison of sword weapons - S4 League Wikia - Wikia You can see how the damage and range was changing from pre-season to current s4 league version Still in beta phase. You can correct some mistakes
Was sollte late late game equip sein?
09/07/2012 - League of Legends - 16 Replies
Hallo! Hab letztens ein richtig schönes und langes Spiel mit Caitlyn gehabt. Irgendwann bei der 40sten-50sten Minute war ich dann full equipped mit Berserkerz 2x Phantoms BT Infinity Edge Last Wisper (Da ich relativ gut beschützt wurde vor deren Shaco von Shen + Janna musste ich keine Def Items kaufen.)



All times are GMT +2. The time now is 16:46.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.