Register for your free account! | Forgot your password?

You last visited: Today at 22:52

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

Advertisement



about Grant name

Discussion on about Grant name within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
LegendarySouL's Avatar
 
elite*gold: 0
Join Date: Nov 2020
Posts: 155
Received Thanks: 54
about Grant name

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;
}
}
}
LegendarySouL is offline  
Old 03/10/2021, 14:32   #2

 
SubZero**'s Avatar
 
elite*gold: 0
Join Date: Apr 2017
Posts: 987
Received Thanks: 456
You need to get the character id SQL Table (_Char)
SubZero** is offline  
Old 03/10/2021, 15:58   #3
 
LegendarySouL's Avatar
 
elite*gold: 0
Join Date: Nov 2020
Posts: 155
Received Thanks: 54
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;
LegendarySouL is offline  
Old 03/10/2021, 20:33   #4

 
SubZero**'s Avatar
 
elite*gold: 0
Join Date: Apr 2017
Posts: 987
Received Thanks: 456
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
SubZero** is offline  
Old 03/11/2021, 04:33   #5
 
LegendarySouL's Avatar
 
elite*gold: 0
Join Date: Nov 2020
Posts: 155
Received Thanks: 54
Quote:
Originally Posted by Zoro.Sro View Post
As i see it ill work fine

LegendarySouL is offline  
Old 03/11/2021, 09:01   #6
 
Mc-Diesel's Avatar
 
elite*gold: 80
Join Date: May 2015
Posts: 364
Received Thanks: 110
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
Mc-Diesel is offline  
Thanks
1 User
Old 03/11/2021, 10:39   #7

 
SubZero**'s Avatar
 
elite*gold: 0
Join Date: Apr 2017
Posts: 987
Received Thanks: 456
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
SubZero** is offline  
Reply


Similar Threads Similar Threads
Changing Grant name
07/24/2020 - SRO Coding Corner - 3 Replies
Hello Can someone help me how grant name changing Through Filter which packets and how it works please :)
Grant name
05/10/2012 - Technical Support - 5 Replies
How can i get a grant name?:o
[Help] Grant Name Block
04/29/2012 - SRO Private Server - 3 Replies
Anyone knows, which .txt I have to edit to unblock swear words / special letters like _:;^ etc. for Grant names? Would help me a lot.
>> Admin Please need Grant Name <<
01/30/2012 - Main - 3 Replies
i want to change my grant name to ‡°•._ĚϚłipśę_.•°‡ please admin!! and thanks
how can i use special characters in grant name?
02/10/2009 - SRO Private Server - 6 Replies
im playing on fembria, and i saw ppl with "*,^,>,_" those characters, but when im trying to use them, it says "this name cant be used because it contains special characters what to do?



All times are GMT +2. The time now is 22:52.


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.