about Grant name

03/09/2021 22:25 LegendarySouL#1
I tried to Modify this Code but something is missing about m_instance and ->CharID;

what is missing for this code in GS

Quote:
void CGObjPC::SetGrantName(std::string* grantname)
{
if (m_instance)
{
unsigned int charid = m_instance->CharID;

__asm
{
push grantname;
push 0x25;
push this;

mov ecx, charid;
xor edx, edx;

mov eax, 0x005C80A0;
call eax;
}
}
}
03/10/2021 14:32 SubZero**#2
You need to get the character id SQL Table (_Char)
03/10/2021 15:58 LegendarySouL#3
Quote:
Originally Posted by Zoro.Sro View Post
You need to get the character id SQL Table (_Char)
I have already table sql>> i mean the codes is missing

Quote:
if (m_instance)
{
unsigned int charid = m_instance->CharID;
03/10/2021 20:33 SubZero**#4
Quote:
Originally Posted by LegendarySouL View Post
I have already table sql>> i mean the codes is missing
As i see it ill work fine
03/11/2021 04:33 LegendarySouL#5
Quote:
Originally Posted by Zoro.Sro View Post
As i see it ill work fine

:lul:
03/11/2021 09:01 Mc-Diesel#6
you have to rewrite it since you got different CGObjPC
this part get char id you can use it as a parameter i think and send it by sql

void CGObjPC::SetGrantName(uint Charid , std::string* grantname)
so there is no need for m_instace

and i think this fun used to ignore master guild while updating the Grantname
03/11/2021 10:39 SubZero**#7
Quote:
Originally Posted by Mc-Diesel View Post
you have to rewrite it since you got different CGObjPC
this part get char id you can use it as a parameter i think and send it by sql

void CGObjPC::SetGrantName(uint Charid , std::string* grantname)
so there is no need for m_instace

and i think this fun used to ignore master guild while updating the Grantname
He also can get the CharID from CInstancePC