Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Last Chaos > Last Chaos Private Server
You last visited: Today at 13:20

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

Advertisement



[Release] Online Time Cash Script

Discussion on [Release] Online Time Cash Script within the Last Chaos Private Server forum part of the Last Chaos category.

Reply
 
Old 12/30/2014, 13:34   #31

 
damona's Avatar
 
elite*gold: 199
Join Date: Dec 2010
Posts: 2,161
Received Thanks: 2,696
Quote:
Originally Posted by MATTHIAS0397 View Post
hat wer noch ne idee
warst du in nem anderen forum schon, hier sind alle zu faul um zu antworten ^^
damona is offline  
Old 12/30/2014, 14:42   #32
 
elite*gold: 0
Join Date: Oct 2009
Posts: 27
Received Thanks: 6
nein leider nicht ich schau mal ob ich irgendwo anders hilfe bekomme

danke für die info
MATTHIAS0397 is offline  
Old 03/09/2015, 09:18   #33
 
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 0
link ist down bitte neu machen danke
[ADM]Jean is offline  
Old 03/09/2015, 10:29   #34

 
damona's Avatar
 
elite*gold: 199
Join Date: Dec 2010
Posts: 2,161
Received Thanks: 2,696
Quote:
Originally Posted by [ADM]Jean View Post
link ist down bitte neu machen danke
Einfach mysql event dann brauchst du nix installen

Quote:
Originally Posted by damona View Post
benutz nen sql event geht besser in meinen augen
MySQL Console Öffnen (navicat z.b.)
Quote:
Originally Posted by damona View Post
CREATE EVENT `OnlineCashAdd`
ON SCHEDULE
EVERY 5 MINUTE STARTS '2014-08-06 00:34:11'
ON COMPLETION PRESERVE
ENABLE
COMMENT ''
DO UPDATE newproject_auth.bg_user SET cash = cash + 50 WHERE user_code IN (SELECT a_portal_index FROM newproject_db_user.t_users WHERE a_zone_num != -1)
damona is offline  
Thanks
1 User
Old 03/27/2015, 19:45   #35
 
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 0
hab ich gemacht funzt nicht
[ADM]Jean is offline  
Old 03/27/2015, 19:48   #36

 
EEOI's Avatar
 
elite*gold: 50
Join Date: Feb 2010
Posts: 3,038
Received Thanks: 2,519
Quote:
Originally Posted by [ADM]Jean View Post
hab ich gemacht funzt nicht
Code:
host=127.0.0.1
user=
password=
db_auth=
db_user=
cash=20

	select=`mysql -D $db_user -h $host --user=$user --password=$password --skip-column-names -e "SELECT a_portal_index FROM t_users WHERE a_zone_num > -1"`

   for online in ${select[@]}

do

	setcash=`mysql -D $db_auth -h $host --user=$user --password=$password --skip-column-names -e "UPDATE bg_user SET cash = cash +'$cash' WHERE user_code = '$online'"`

done
EEOI is offline  
Old 03/28/2015, 16:50   #37
 
elite*gold: 0
Join Date: Mar 2014
Posts: 18
Received Thanks: 0
Quote:
Originally Posted by EEOI View Post
Code:
host=127.0.0.1
user=
password=
db_auth=
db_user=
cash=20

	select=`mysql -D $db_user -h $host --user=$user --password=$password --skip-column-names -e "SELECT a_portal_index FROM t_users WHERE a_zone_num > -1"`

   for online in ${select[@]}

do

	setcash=`mysql -D $db_auth -h $host --user=$user --password=$password --skip-column-names -e "UPDATE bg_user SET cash = cash +'$cash' WHERE user_code = '$online'"`

done

was muss ich damit machen ???
[ADM]Jean is offline  
Old 04/01/2015, 22:32   #38

 
Naguya's Avatar
 
elite*gold: 505
Join Date: Jul 2013
Posts: 395
Received Thanks: 676
hier machs als mysql-event

Code:
UPDATE newproject_db_auth.bg_user SET cash = cash + 100 WHERE user_code IN (SELECT a_portal_index FROM newproject_db_auth.t_users WHERE a_zone_num != -1)
edit: oh wurde von damona schon genannt xD post kann gelöscht werden D:
Naguya is offline  
Thanks
1 User
Old 04/01/2015, 22:51   #39

 
EEOI's Avatar
 
elite*gold: 50
Join Date: Feb 2010
Posts: 3,038
Received Thanks: 2,519
Quote:
Originally Posted by xOutLawZ™ View Post
hier machs als mysql-event

Code:
UPDATE newproject_db_auth.bg_user SET cash = cash + 100 WHERE user_code IN (SELECT a_portal_index FROM newproject_db_auth.t_users WHERE a_zone_num != -1)
edit: oh wurde von damona schon genannt xD post kann gelöscht werden D:
Das ist aber nur ein Update und wird einmalig ausgeführt .
EEOI is offline  
Old 04/02/2015, 00:09   #40
 
ZaTii's Avatar
 
elite*gold: 181
Join Date: May 2012
Posts: 1,982
Received Thanks: 1,627
Quote:
Originally Posted by EEOI View Post
Das ist aber nur ein Update und wird einmalig ausgeführt .
mysql event..
ZaTii is offline  
Old 11/29/2016, 22:54   #41
 
AlalaGames's Avatar
 
elite*gold: 0
Join Date: Oct 2012
Posts: 394
Received Thanks: 55
hat jemand das script noch ?
AlalaGames is offline  
Old 11/30/2016, 13:25   #42

 
elite*gold: 2
Join Date: May 2010
Posts: 2,254
Received Thanks: 1,919
Quote:
Originally Posted by AlalaGames View Post
hat jemand das script noch ?
Hier, 'path' noch ändern damit die Logs in das gewünschte Verzeichnis geschrieben werden. Außerdem ausführbare Rechte geben/sowie Schreibrechte und per crontab -e je nach gewünschter Zeit aufrufen.

Aktuell:

Code:
path="/home/Server/CashLog/log_$date2.txt"
Attached Files
File Type: rar Autocash.rar (649 Bytes, 95 views)
Ih¢sãs123 is offline  
Old 05/05/2022, 17:44   #43
 
elite*gold: 26
Join Date: Apr 2022
Posts: 30
Received Thanks: 0
wenn ich das ausführe kommt nur
Succesfully 0 Cash added distributed 0 Accounts.

aber bekomme kein Cash
Gl1tch20 is offline  
Old 05/05/2022, 19:34   #44


 
Veni/Marius's Avatar
 
elite*gold: 36
Join Date: May 2014
Posts: 1,606
Received Thanks: 1,044
Natürlich bekommst du nix, da steht ja auch 0 cash an 0 accounts.

Hast es bestimmt nicht richtig konfiguriert, oder du hattest keinen char online. Ohne weitere Infos kann dir da keiner groß helfen.
Veni/Marius is offline  
Old 05/07/2022, 14:13   #45
 
elite*gold: 265
Join Date: Jul 2009
Posts: 735
Received Thanks: 2,147
If you want to make a very simple online cash way, just use the database only.
Enable the mysql event scheduler.
and create this event :
Code:
CREATE DEFINER=`root`@`127.0.0.1` EVENT `OnlineCashAdd`
	ON SCHEDULE
		EVERY 5 MINUTE STARTS '2013-08-06 04:34:11'
	ON COMPLETION PRESERVE
	ENABLE
	COMMENT ''
	DO UPDATE newproject_auth.bg_user SET cash = cash + 25 WHERE user_code IN (SELECT a_portal_index FROM newproject_auth.t_users WHERE a_zone_num != -1)
Wizatek is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[RELEASE]Ingame Cash-In Script!
11/12/2012 - Metin2 PServer Guides & Strategies - 93 Replies
Peace! Vorab; Ich suche nochn paar Elite*Gold, falls ihr mir ein paar Spenden wollt :) hihi Ich denke dazu muss ich nichts sagen. Download:
Server time script(A very easy java script)
12/22/2008 - CO2 Private Server - 4 Replies
Put this in ur body tag <table> <td> <span id="liveclock" style="position:absolute;Change this to left or right:1;change this to bottom or top:1;"></span> <script language="JavaScript"> <!--



All times are GMT +1. The time now is 13:21.


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.