Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 23:12

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

Advertisement



[REQUEST]Send coins for few players at once

Discussion on [REQUEST]Send coins for few players at once within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
[REQUEST]Send coins for few players at once

Hi,
As title says need query or php script to send some amount of coins to some players only.
For example I want to send for player *** and player yyy and player zzz 999 coins at once.
Or maybe it is possible to make a job to do that every 2 days for example.

So anyone can help me with that? pieter can you? I know you are MSSQL master
gedimazs is offline  
Old 01/24/2011, 15:45   #2
 
elite*gold: 0
Join Date: Sep 2008
Posts: 277
Received Thanks: 101
I have a query to send coins to all players, I could modify it to only send to a particular guild or something.

What selection of players? Just a few? Then you can just make a query to send it people with the user numbers or user IDs.

If you want it to run automatically, let's say every week, you can create a database job to run each week.
911Hacker is offline  
Old 01/24/2011, 16:44   #3
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
create a table named SpecialChars
field charname VARCHAR(40)

in there just add the players u want to award the coins

then just add coins using the IN statement

update blablabla
set ammount=(ammount + 999)
where character_name in (select charactername from Specialusers)

dont have access to a dk db atm (cellphone) but if its char_no based use this in statement
where character_no in (select character_no from character..user_character where character_name in (SELECT charactername from Specialusers))
pieter is offline  
Thanks
1 User
Old 01/24/2011, 16:57   #4
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
Quote:
Originally Posted by pieter View Post
create a table named SpecialChars
field charname VARCHAR(40)

in there just add the players u want to award the coins

then just add coins using the IN statement

update blablabla
set ammount=(ammount + 999)
where character_name in (select charactername from Specialusers)

dont have access to a dk db atm (cellphone) but if its char_no based use this in statement
where character_no in (select character_no from character..user_character where character_name in (SELECT charactername from Specialusers))
It was hard to understand your wonderful thoughts I'm not so freaking MSSQL master like you are so it is a bit complicated for me.
Why create new table, why I can't just make script to find those charnames from user_character then take their user_no and with user_no add coins to cash.dbo user_cash?


Quote:
Originally Posted by 911Hacker View Post
I have a query to send coins to all players, I could modify it to only send to a particular guild or something.

What selection of players? Just a few? Then you can just make a query to send it people with the user numbers or user IDs.

If you want it to run automatically, let's say every week, you can create a database job to run each week.
I have script too to send coins to all players, but I need only to send coins for only few players, cause it sucks to add coins for each player (~15) manually.
gedimazs is offline  
Old 01/24/2011, 18:32   #5
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
because then u can make a php file to add chars to that table without having to login to server again
pieter is offline  
Old 01/24/2011, 21:12   #6
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
pieter is it possible you to make everything with better explanation? cause how I mentioned I'm not so good with MSSQL commands
gedimazs is offline  
Old 01/25/2011, 02:51   #7
 
elite*gold: 0
Join Date: Feb 2008
Posts: 185
Received Thanks: 57
I believe it is by user_no, since all characters on that account have access to the D-shop coins.

So you could write a php script that allows you to type all the names separated by comma, use select statement to find their user_no, then add the coin amount to the cash table for each one.

I'm not home either so would hate to spit out an example that doesn't work right.
caper is offline  
Thanks
1 User
Old 01/25/2011, 18:43   #8
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
#request to close.
Question solved
Thanks guys for answering
gedimazs is offline  
Reply


Similar Threads Similar Threads
[HP]Server script incl REGI FULL IS RANK TOP 10 PLAYERS TOP 10 GUILD ADMIN ADD COINS
03/03/2013 - Metin2 PServer Guides & Strategies - 36 Replies
VER HI-FI ver 2 (FAST SERVER) updated and translated screenshots: http://img411.imageshack.us/img411/8049/20327240. jpg http://img683.imageshack.us/img683/6581/30641525. jpg http://img697.imageshack.us/img697/93/29191941.jp g http://img3.imageshack.us/img3/406/96803128.jpg http://img412.imageshack.us/img412/9854/51065306. jpg download: http://www.speedyshare.com/files/21438828/wlasny- ver2.rar
Send coins to all account
04/27/2010 - Dekaron Private Server - 8 Replies
Hi, Anyone got a script to send all accounts, that are not duplicated in ip address, coins. For example send all accounts 5k coins, but i dont want them to have heaps of accounts like then they could make 10, and then 10x 5k = 50k So anyone have a script so it restricts it to send coins to 1 account per ip. Thanks Community
TO ALL GC US PLAYERS. SEND ME A BOT/HACK/TRAINER PLZ
11/30/2009 - Grand Chase - 2 Replies
i have the gg pass but i dont have a bot/hack/trainer. wen sent can u include include instructons plz?:)
[Request] How send clicks on minimized
10/11/2008 - CO2 Programming - 2 Replies
How send clicks on minimized in Visual C# ?



All times are GMT +1. The time now is 23:14.


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.