Register for your free account! | Forgot your password?

Go Back   elitepvpers > Silkroad Online > SRO Coding Corner
You last visited: Today at 23:41

  • 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: 100
Received Thanks: 28
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 08/08/2018, 20:47   #2
 
elite*gold: 0
Join Date: Sep 2017
Posts: 375
Received Thanks: 70
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: 0
Join Date: Sep 2014
Posts: 561
Received Thanks: 148
I don't even understand what he is trying to do
qqdev is offline  
Old 08/09/2018, 05:31   #4
 
elite*gold: 0
Join Date: Sep 2012
Posts: 100
Received Thanks: 28
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 08/09/2018, 15:10   #5
 
elite*gold: 0
Join Date: Sep 2017
Posts: 375
Received Thanks: 70
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
 
elite*gold: 0
Join Date: Sep 2012
Posts: 100
Received Thanks: 28
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 08/10/2018, 01:47   #7
 
elite*gold: 0
Join Date: Sep 2017
Posts: 375
Received Thanks: 70
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
 
elite*gold: 0
Join Date: Jul 2017
Posts: 113
Received Thanks: 56
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: 95
Join Date: May 2015
Posts: 408
Received Thanks: 370
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

 
elite*gold: 950
Join Date: Aug 2015
Posts: 1,679
Received Thanks: 941
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 online now  
Old 08/14/2018, 04:09   #11
 
elite*gold: 0
Join Date: Sep 2012
Posts: 100
Received Thanks: 28
hmm.
concucu is offline  
Old 08/14/2018, 05:58   #12

 
elite*gold: 950
Join Date: Aug 2015
Posts: 1,679
Received Thanks: 941
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 online now  
Old 08/14/2018, 10:21   #13
 
elite*gold: 0
Join Date: Sep 2012
Posts: 100
Received Thanks: 28
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  
Old 08/14/2018, 15:10   #14
 
elite*gold: 95
Join Date: May 2015
Posts: 408
Received Thanks: 370
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

 
elite*gold: 950
Join Date: Aug 2015
Posts: 1,679
Received Thanks: 941
Quote:
Originally Posted by $WeGs View Post
i'm trying to let him understand how things works
ok my bad


B1Q is online now  
Reply



« Reading RegionID through 3013 | Detect bot join server »

Similar Threads
how to store SELECT values from DB in Variable
06/20/2018 - Metin2 PServer - Discussions / Questions - 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 PServer - Discussions / Questions - 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,...
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 +2. The time now is 23:41.


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.