Einfach mysql event dann brauchst du nix installen
Quote:
Originally Posted by damona
benutz nen sql event geht besser in meinen augen
MySQL Console Öffnen (navicat z.b.)
Quote:
Originally Posted by damona
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)
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:
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 .
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.
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)
[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">
<!--