Register for your free account! | Forgot your password?

You last visited: Today at 07:07

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

Advertisement



Hey people :)

Discussion on Hey people :) within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 165
Received Thanks: 40
Hey people :)

can Anyone post please sql for send auto Item to all characters.
like Daily Item but Auto, like every 24 hours
yarin1115 is offline  
Old 05/19/2017, 02:46   #2
 
ViihJana's Avatar
 
elite*gold: 0
Join Date: Feb 2017
Posts: 25
Received Thanks: 4
If i dont mistake its a SQL job .
ViihJana is offline  
Old 05/19/2017, 03:50   #3
 
elite*gold: 0
Join Date: Jan 2012
Posts: 165
Received Thanks: 40
yes as I thought, but you know what is the sql code for it ?
yarin1115 is offline  
Old 05/19/2017, 04:47   #4
 
ViihJana's Avatar
 
elite*gold: 0
Join Date: Feb 2017
Posts: 25
Received Thanks: 4
Well i don't know it , but if i remember in one of the threads some guy posted it with a tutorial how to create a job .
ViihJana is offline  
Old 05/19/2017, 07:51   #5
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
use search
@ to close.
[DEV]Dekaron is offline  
Old 05/19/2017, 12:37   #6
 
elite*gold: 0
Join Date: Jan 2012
Posts: 165
Received Thanks: 40
Quote:
Originally Posted by [DEV]Dekaron View Post
use search
@ to close.
Already Searched. I always search before create topic.
Do not be arrogant.

@ to don't Close.
yarin1115 is offline  
Old 05/19/2017, 13:18   #7



 
guesswho-.-'s Avatar
 
elite*gold: 293
Join Date: Jan 2012
Posts: 2,445
Received Thanks: 1,100
I'm just gonna point out a few problems with what you're trying to do:
if it runs every 24h, people will create accounts and characters just to "farm" the reward. then again if its so insignificant then there's no point having it at all.
you're better off sending a reward to people who spent some time in game. could be once a day, but make it so that they stay 10 mins in game or so.

what I'd probably do is edit the user_character table and add 2 int columns which will be default 0. then add a job that will increment one of the columns for every character that is logged in every 60 seconds (but only if the 2nd column is 0), and also modify SP_CHAR_CHECK_IN to set the column to 0.
then another job which will distribute the reward to everyone who has reached 10 (and 2nd column == 0) in that column and set the 2nd column to 1.

I'm not gonna give you the code for it. SQL is **** easy and with minimal effort you will do it. If you have any SQL experience you'll do it in 5 mins, otherwise I'd guess about 2 hours.


btw, I'm not a SQL expert, this is what works for me, I dont know if there are any more efficient methods.
guesswho-.- is offline  
Old 05/19/2017, 13:45   #8
 
elite*gold: 0
Join Date: Jan 2012
Posts: 165
Received Thanks: 40
I want to make it 24hours on the clock, If the specific user won't log after 10 days the reward will delete. it's untraded. got my idea ?
yarin1115 is offline  
Old 05/19/2017, 14:29   #9
Trade Restricted
 
elite*gold: LOCKED
Join Date: Oct 2016
Posts: 321
Received Thanks: 79
yarin as guess said and he said right you can add a extra table for set the time which player has logged in and sql has some functions you just need to check if the time he logged - your current time is equal to the result that you want, if yes then you can give reward for the player.
Iam at phone atm can't handle the query but it isnt hard
Underfisk is offline  
Old 05/19/2017, 14:34   #10



 
guesswho-.-'s Avatar
 
elite*gold: 293
Join Date: Jan 2012
Posts: 2,445
Received Thanks: 1,100
Yes but my idea is the that you write the code yourself. Sql is probably easier than dealing with csv files.
guesswho-.- is offline  
Old 05/19/2017, 15:05   #11
 
elite*gold: 0
Join Date: Jul 2015
Posts: 876
Received Thanks: 258
Quote:
Originally Posted by yarin1115 View Post
Already Searched. I always search before create topic.
Do not be arrogant.

@ to don't Close.
yes im sure you use search i find this in 5 sec
[DEV]Dekaron is offline  
Old 05/19/2017, 15:06   #12

 
Alborzar's Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 645
Received Thanks: 94
google is your bestfriend
Alborzar is offline  
Old 05/19/2017, 15:07   #13
 
elite*gold: 0
Join Date: Jan 2012
Posts: 165
Received Thanks: 40
Quote:
Originally Posted by guesswho-.- View Post
Yes but my idea is the that you write the code yourself. Sql is probably easier than dealing with csv files.
not for everyone, I'm good in csv and not in sql

Quote:
Originally Posted by [DEV]Dekaron View Post
yes im sure you use search i find this in 5 sec

Thanks, I will try to make add time for this
yarin1115 is offline  
Old 05/19/2017, 20:28   #14
Trade Restricted
 
elite*gold: LOCKED
Join Date: Oct 2016
Posts: 321
Received Thanks: 79
@ search for SQL time func, after it just make a table or even the account last logged in works (i guess), check the time he logged out + the extra time you want like 10 min or more and see if that loggedout + the extra is > than the actual time (of sv ofc).
Gl, its just one idea (i never made that ofc reward but i guess it could work, but there can be more easier implementations)
Underfisk is offline  
Old 05/20/2017, 01:31   #15
 
freez00's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 415
Received Thanks: 139
You will need to either program this using a stored procedure in SQL or in another language. either way you need to program it.

You need to capture the character number from the character table. So a query and loop around the results. In the loop, execute the SP_POST_SEND_OP stored procedure and put in the character number, subject, message, item index number.

Save your stored procedure and set a job to run it every 15 minutes etc. Right-click jobs under sql server agent and select new job. Give it a name, create the steps to run the stored procedure, set the schedule and you're done!

I haven't seen any scripts here that are pre-made that do this but this is an easy way to make an automated task without a lot of programming knowledge.
freez00 is offline  
Reply


Similar Threads Similar Threads
HEy HeY Hey
08/13/2008 - Say Hello - 1 Replies
Hey everyone...Just wanted to say Hello to allz!!!!!
HeY HeY heY
07/10/2008 - Ragnarok Online - 7 Replies
so habe frage wie geht das nochmal mit den gstorage dupe?? habe vergessen bei mein server geht gstorage wieder *g*
Hey hey HEY
06/16/2008 - Say Hello - 0 Replies
HEY im just new here and just wanted to sey hey :)
HEY HEY HEY!!
10/15/2006 - Conquer Online 2 - 2 Replies
Hey i havent played co2 cause co 1 suked can some 1 put the thread for dling co2 ty
hey hey hey WoW hax
12/26/2005 - WoW Exploits, Hacks, Tools & Macros - 1 Replies
this is one awesome hax pack it has got flying, floating, teleport, speed increase/decrease, minimap monster locations and a bunch of other cool stuff iv used it on legit and havnt been cuaght :D just dont do it infront of any GM's and you'll be fine anyway this is the link http://www.myfilehut.com/userfiles/2815/Compono.ra r cya later happy gaming ^^



All times are GMT +1. The time now is 07:10.


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.