Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 13:42

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

 

Select Values from Database C++

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2012
Posts: 93
Received Thanks: 26
Select Values from Database C++

I'm use https://www.elitepvpers.com/forum/sr...mands-etc.html

Link Src :

Code:
namecolors::SetPrefix(L"Name1", 0xFF25DD25);
namecolors::SetPrefix(L"Name2", 0xFFFF0088);
namecolors::SetPrefix(L"Name3", 0xFF0055FF);
namecolors::SetPrefix(L"Name4", 0xFF66FF66);
namecolors::SetPrefix(L"Name5", 0xFF00CC00);
I want it to change the colors color does not based on physical name, which
select from the database through the filter package

I'm not good at C ++, please give me help, please suggest

Thanks



concucu is offline  
Old   #2
 
elite*gold: 0
Join Date: Sep 2017
Posts: 257
Received Thanks: 56
You cannot do that for sure, you have to use packets afaik. (Or maybe you can but that will enable the SQL injection.)

Also, do not ask for a full-code for a thing. You don't even try.


#HB is offline  
Old   #3
 
elite*gold: 0
Join Date: Sep 2014
Posts: 556
Received Thanks: 148
I don't even understand what he is trying to do
qqdev is offline  
Old   #4
 
elite*gold: 0
Join Date: Sep 2012
Posts: 93
Received Thanks: 26
i trying use this Src to change character name.

Quote:
Originally Posted by #HB View Post
You cannot do that for sure, you have to use packets afaik. (Or maybe you can but that will enable the SQL injection.)

Also, do not ask for a full-code for a thing. You don't even try.
yes., i know use Packet , but i can do it because i not good c++


concucu is offline  
Old   #5
 
elite*gold: 0
Join Date: Sep 2017
Posts: 257
Received Thanks: 56
Quote:
Originally Posted by concucu View Post
i not good c++
Did read what I've written above?

Quote:
Originally Posted by qqdev View Post
I don't even understand what he is trying to do
You better not actually.
#HB is offline  
Old   #6
 
elite*gold: 0
Join Date: Sep 2012
Posts: 93
Received Thanks: 26
Tiếng anh không phải ngôn ngữ mẹ đẻ của tôi ok
Tôi đă thử rất nhiều nhưng nó quá khó. C̣n bạn không giúp được cũng không cần cmt đâu. Tôi ước ǵ mă nguồn nó là c# th́ cũng không cần lập topic này.

English is not the native language ok
I tried a lot but it was too hard. If you do not help, then you should not comment. I wish the source code was c #, then I do not need to set up this topic.
concucu is offline  
Old   #7
 
elite*gold: 0
Join Date: Sep 2017
Posts: 257
Received Thanks: 56
This section isn't made for copypasters. I am not sure if there's someone that will give you a full-code to copy.
Learn or burn.
#HB is offline  
Old   #8
 
elite*gold: 0
Join Date: Jul 2017
Posts: 89
Received Thanks: 30
Using the filter to read the data from the database and send it to the client through the packet. Then dll read information from packet and do all the things you want
Hint for you: using Sro++ library, you can handle the swap packet between filter and client via dll.
athena1410 is offline  
Old   #9
 
elite*gold: 115
Join Date: May 2015
Posts: 350
Received Thanks: 344
first of all , it cannot be done via C# (C# cannot create dynamic dll files like C++)

You have to use Packets instead of sql connection (To Avoid sql injections) , inject a custom packet to work with a filter then customize the db with the filter (like HWID limit)

it also can be done via php , make a connection between a php and sql then read the data of php from your dll
$WeGs is offline  
Thanks
1 User
Old   #10

 
elite*gold: 0
Join Date: Aug 2015
Posts: 1,622
Received Thanks: 916
Quote:
Originally Posted by $WeGs View Post
first of all , it cannot be done via C# (C# cannot create dynamic dll files like C++)
by far the stupidest statement i've ever seen in this section.
but true use a webserver
B1Q is offline  
Old   #11
 
elite*gold: 0
Join Date: Sep 2012
Posts: 93
Received Thanks: 26
hmm.
concucu is offline  
Old   #12

 
elite*gold: 0
Join Date: Aug 2015
Posts: 1,622
Received Thanks: 916
Quote:
Originally Posted by concucu View Post
hmm.
use curl or boost.
if you need help i can write you a PHP script to retrieve data from your database and help you parse/split results in C++
B1Q is offline  
Old   #13
 
elite*gold: 0
Join Date: Sep 2012
Posts: 93
Received Thanks: 26
Quote:
Originally Posted by B1Q View Post
use curl or boost.
if you need help i can write you a PHP script to retrieve data from your database and help you parse/split results in C++
yes please. I contacted you at discord


concucu is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
how to store SELECT values from DB in Variable
hi i hope to find help here am facing a problem with retrieving some data from my DB with SELECT query am doing a Quest that needs to...
0 Replies - Metin2 PServer - Discussions / Questions
Metin 2 Select Character select error
Dabei-ist das spiel Charakter-Auswahl Error help Log Files 0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir...
1 Replies - Metin2 PServer - Discussions / Questions
How can we edit values or memory values?
How can we edit values or memory values? I don't know how to do it....help
15 Replies - Eudemons Online



All times are GMT +2. The time now is 13:42.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.