are you tired to make a new action and want to copy existing action?
i create this script to learning action type, data and param from other database...
its good to know a new action type where i never know like Quest system with monster kill count on Revo DB and other nice action style from you all...
i think, may be you need this, if you're a newbie with more knowledge on Mysql Query script.
I put all script ( HTML, PHP ) on one php page. and this is the script :
Video Up to 720p : 2:26
i create this script to learning action type, data and param from other database...
its good to know a new action type where i never know like Quest system with monster kill count on Revo DB and other nice action style from you all...
i think, may be you need this, if you're a newbie with more knowledge on Mysql Query script.
I put all script ( HTML, PHP ) on one php page. and this is the script :
PHP Code:
<?php
// CONNECTION
$hostDB = 'localhost';
$userDB = 'root';
$passDB = 'test';
$nameDB = 'my';
$connection = mysqli_connect($hostDB, $userDB, $passDB, $nameDB)or die("Connection Error");
// END CONNECTION
// CLASS
function getAction($idAction, $actionCount, $typeAction, $idParrent){
global $connection;
if($idAction != 0 && $idAction !=""){
$cekAction1 = mysqli_query($connection, "select * from cq_action where id='".$idAction."'");
$cekAction2 = mysqli_num_rows($cekAction1);
if($cekAction2 != 0){
$dataAction = mysqli_fetch_array($cekAction1);
if($actionCount == 1){
$queryAction .= '-- ----------------------------
';
$queryAction .= '-- First Action
';
$queryAction .= '-- ----------------------------
';
$queryAction .= "insert into cq_action (id, id_next, id_nextfail, type, data, param)values
";
}else{
if($typeAction == "fail"){
$queryAction .= '
';
$queryAction .= '
';
$queryAction .= '
';
$queryAction .= '-- ----------------------------
';
$queryAction .= '-- Fail Action on ID '.$idParrent.'
';
$queryAction .= '-- ----------------------------
';
$queryAction .= "insert into cq_action (id, id_next, id_nextfail, type, data, param)values
";
}else{
$queryAction .= ",
";
}
}
$queryAction .= '("'.$dataAction['id'].'", "'.$dataAction['id_next'].'", "'.$dataAction['id_nextfail'].'", "'.$dataAction['type'].'", "'.$dataAction['data'].'", "'.$dataAction['param'].'")';
$actionCount = $actionCount + 1;
$queryAction .= getAction($dataAction['id_next'], $actionCount, "success", $dataAction['id']);
$queryAction .= getAction($dataAction['id_nextfail'], $actionCount, "fail", $dataAction['id']);
if($dataAction['id_next'] == 0){
$queryAction .= ";
";
}
return $queryAction;
}
}
}
// END CLASS
// SUBMIT FORM
if(isset($_GET['action'])){
if($_GET['action'] == "getAction"){
$idAction = htmlspecialchars(trim($_POST['idAction']));
echo '<textarea style="width: 700px; height: 300px;">'.getAction($idAction, "1", "", "").'</textarea>';
}
}
// END SUBMIT FORM
?>
HTML Code:
<form method="post" action="?action=getAction"> <label for="idAction">Action ID</label><br> <input type="text" name="idAction" id="idAction" placeholder="Type the first action id"><br> <br> <input type="submit" value="Crack Now"> </form>
Video Up to 720p : 2:26
|
[Only registered and activated users can see links. Click Here To Register...]
Change this php script :
Good Luck :handsdown:
02/15/2015 07:02
linja12#2
Nice one Ryan
02/15/2015 15:24
SoulNecturn#3
:) sad you didnt put this here years ago - life would be even easier :) But its great to see this as others will have easier life ... and its good to see eo section little by little but living again ;)
So thats why "thanks" provided ;)
02/15/2015 16:08
RyanOtoy01#4
Awh :') my bad :D anyway, what do you think if the HP / Magic bar is like this? [Only registered and activated users can see links. Click Here To Register...]
02/17/2015 07:48
marcbacor6666#5
Fatal error: Call to undefined function: mysqli_connect() in W:\www\1.php on line 8
02/17/2015 10:28
RyanOtoy01#6
Are you using Wamp Server? Your PHP lib is not have mysqli library... you need to enable the extension on php.ini try to find Code:
;extension=php_mysqli.dll Code:
extension=php_mysqli.dll or you can use my webserver : [Only registered and activated users can see links. Click Here To Register...]
02/17/2015 12:14
marcbacor6666#7
thanks bro
02/17/2015 16:06
idlemonkey#8
this is as good a reason to secure your servers mysql users passwords and hosts as I have ever seen.... warning to you new guys who dont change your user/host info
since it wasnt mentioned .... this is a unsecured mysql access page and if youre using this you should use it on a "localhost only" webserver and not allow it to connect to the outside world (or anyone else could use it too) @Ryan maybe you should add a .htaccess file to provide a login for these guys who might not know that they shouldnt put this on their production webserver or how to create one themselves
02/17/2015 19:21
RyanOtoy01#9
Nope... i've planned to release my full EO site control panel... but its still need more function... [Only registered and activated users can see links. Click Here To Register...] and this is my big release with Paladin Client & Paladin Server old style... so we can try to develop it step by step without bug and make our own server on one server based. Just wait untill i leave my job :)
02/17/2015 23:10
Soul[PM]#10
Great work bro keep it up :D
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. SEO by vBSEO ©2011, Crawlability, Inc. |