|
You last visited: Today at 16:46
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.
12/25/2019, 19:46
|
#31
|
elite*gold: 0
Join Date: Apr 2015
Posts: 116
Received Thanks: 105
|
Quote:
Originally Posted by kanift
why don't u guys use a custom class ?
class sro_wstring
{
private:
int unk0;
union
{
wchar_t* m_wchContentPtr;
wchar_t m_wchContentBuffer[8];
};
int m_iLength;
int m_iMaxLength;
public:
sro_wstring()
{
}
sro_wstring(wchar_t* _Ptr)
{
assign(_Ptr);
}
void assign(wchar_t* _Ptr)
{
m_iLength = wcslen(_Ptr);
m_iMaxLength = wcslen(_Ptr);
if (m_iMaxLength < 8)
{
wcscpy_s(m_wchContentBuffer, _Ptr);
}
else
{
m_wchContentPtr = _Ptr;
}
}
const wchar_t* c_wstr()
{
return m_iMaxLength < 8 ? m_wchContentBuffer : *reinterpret_cast<wchar_t**>(m_wchContentBuffer);
}
};
|
nice troll ALP
|
|
|
12/25/2019, 21:32
|
#32
|
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
|
|
|
12/25/2019, 22:30
|
#33
|
elite*gold: 0
Join Date: May 2010
Posts: 62
Received Thanks: 78
|
Quote:
Originally Posted by sarkoplata
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
|
|
|
12/26/2019, 00:36
|
#34
|
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
|
|
|
12/27/2019, 03:03
|
#35
|
elite*gold: 53
Join Date: Sep 2014
Posts: 308
Received Thanks: 86
|
Works, thank you.
|
|
|
12/29/2019, 21:06
|
#36
|
elite*gold: 0
Join Date: Aug 2019
Posts: 15
Received Thanks: 0
|
Does anyone help me
|
|
|
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
|
|
|
10/29/2020, 09:12
|
#38
|
elite*gold: 0
Join Date: Mar 2010
Posts: 564
Received Thanks: 226
|
Quote:
Originally Posted by Rixy*
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.
|
|
|
10/29/2020, 14:56
|
#39
|
elite*gold: 0
Join Date: Oct 2020
Posts: 104
Received Thanks: 19
|
Quote:
Originally Posted by khaleed2010
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
|
|
|
01/11/2021, 22:38
|
#40
|
elite*gold: 0
Join Date: Aug 2019
Posts: 55
Received Thanks: 10
|
Quote:
Originally Posted by #HB
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 ??
|
|
|
01/12/2021, 00:52
|
#41
|
elite*gold: 100
Join Date: Sep 2017
Posts: 1,097
Received Thanks: 889
|
Quote:
Originally Posted by omar125
When i Press ALT Got Crashed ! any help ??
|
Follow notes.
|
|
|
01/12/2021, 15:51
|
#42
|
elite*gold: 0
Join Date: Aug 2019
Posts: 55
Received Thanks: 10
|
Quote:
Originally Posted by #HB
Follow notes.
|
im usuing VC80 and VSRO188
*im was merge it with dev kit*
|
|
|
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?
|
|
|
03/07/2021, 13:26
|
#44
|
elite*gold: 0
Join Date: Oct 2019
Posts: 195
Received Thanks: 81
|
How work ?
|
|
|
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
|
|
|
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.
|
|