Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 03:48

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

Advertisement



Select Values from Database C++

Discussion on Select Values from Database C++ within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
Select Values from Database C++

I'm use

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 online now  
Old 08/08/2018, 20:47   #2
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
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 08/08/2018, 21:53   #3
 
elite*gold: 8
Join Date: Sep 2014
Posts: 625
Received Thanks: 178
I don't even understand what he is trying to do
qqdev is offline  
Old 08/09/2018, 05:31   #4
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
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 online now  
Old 08/09/2018, 15:10   #5
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
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 08/09/2018, 15:33   #6
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
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 online now  
Old 08/10/2018, 01:47   #7
 
elite*gold: 100
Join Date: Sep 2017
Posts: 1,109
Received Thanks: 903
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 08/10/2018, 10:51   #8
 
athena1410's Avatar
 
elite*gold: 0
Join Date: Jul 2017
Posts: 118
Received Thanks: 65
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 08/12/2018, 19:05   #9
 
elite*gold: 135
Join Date: May 2015
Posts: 647
Received Thanks: 752
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 08/13/2018, 22:55   #10
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
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 08/14/2018, 04:09   #11
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
hmm.
concucu is online now  
Old 08/14/2018, 05:58   #12
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
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 08/14/2018, 10:21   #13
 
concucu's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 215
Received Thanks: 124
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 online now  
Old 08/14/2018, 15:10   #14
 
elite*gold: 135
Join Date: May 2015
Posts: 647
Received Thanks: 752
Quote:
Originally Posted by B1Q View Post
by far the stupidest statement i've ever seen in this section.
but true use a webserver
i'm trying to let him understand how things works
$WeGs is offline  
Old 08/14/2018, 16:54   #15
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
Quote:
Originally Posted by $WeGs View Post
i'm trying to let him understand how things works
ok my bad
B1Q is offline  
Reply


Similar Threads Similar Threads
how to store SELECT values from DB in Variable
06/20/2018 - Metin2 Private Server - 0 Replies
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 check Pet level before updating its parameters the new_petsystem table in DB looks like
Metin 2 Select Character select error
02/26/2011 - Metin2 Private Server - 1 Replies
Dabei-ist das spiel Charakter-Auswahl Error help Log Files 0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error 0225 23:37:16227 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error 0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage2.mse) Error 0225 23:37:16227 ::...
How can we edit values or memory values?
12/18/2006 - Eudemons Online - 15 Replies
How can we edit values or memory values? I don't know how to do it....help



All times are GMT +1. The time now is 03:48.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.