Most visitors online was 8830 , on 6 Feb 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!sry but i didn"t get what u mean
how can i edit clsconfig?
./gamedbd gamesys.conf exportclsconfig
oh thanks a lot ,
and a question : the old characters won"t get the new changes?
if( isset($_POST['inventory']) )
{
$api = new API();
if ( $role_data = $api->getRole( $role ) )
{
if(($role_data['pocket']['icapacity'] == '64') || ($role_data['pocket']['icapacity'] == '80') || ($role_data['pocket']['icapacity'] == '32'))
{
$role_data['pocket']['icapacity'] = '96';
if ($api->putRole( $role, $role_data ))
{
$ERROR = "<div class='alert alert-success'> <b>Successfully extended your Inventory to 96 Slots!</b></div></br>";
}
else
{
$ERROR = "<div class='alert alert-danger'> <b>There was an error</b></div></br>";
}
}
elseif ($role_data['pocket']['icapacity'] == '128' || ($role_data['pocket']['icapacity'] == '96'))
{
$ERROR = "<div class='alert alert-danger'> <b>You already have extended your Inventory !</b></div></br>";
}
else
{
$ERROR = "<div class='alert alert-danger'> <b>You must maximize your inventory to 64 Slots first!</b></div></br>";
}
}
}
Use the API that Hulu shared
You must be registered to see links
everything is possible with this
eg webservice :
PHP:if( isset($_POST['inventory']) ) { $api = new API(); if ( $role_data = $api->getRole( $role ) ) { if(($role_data['pocket']['icapacity'] == '64') || ($role_data['pocket']['icapacity'] == '80') || ($role_data['pocket']['icapacity'] == '32')) { $role_data['pocket']['icapacity'] = '96'; if ($api->putRole( $role, $role_data )) { $ERROR = "<div class='alert alert-success'> <b>Successfully extended your Inventory to 96 Slots!</b></div></br>"; } else { $ERROR = "<div class='alert alert-danger'> <b>There was an error</b></div></br>"; } } elseif ($role_data['pocket']['icapacity'] == '128' || ($role_data['pocket']['icapacity'] == '96')) { $ERROR = "<div class='alert alert-danger'> <b>You already have extended your Inventory !</b></div></br>"; } else { $ERROR = "<div class='alert alert-danger'> <b>You must maximize your inventory to 64 Slots first!</b></div></br>"; } } }
The problem is that DanXus want to change players bag when they create characters like when you create character your bag is already fully extended. From what I see this script is made to increase the bag of character that is already made. Correct me if I'm wrong
$Query = $mysqli->query("select * from `listrole` WHERE `level`=150 LIMIT 0, 1000");
while($Row = $Query->fetch_array())
{
if ($Row['roleid'] > 1024)
{
$role_data = $api->getRole( $Row['roleid'] );
$role_data['pocket']['icapacity'] == '128';
if ($api->putRole( $Row['roleid'], $role_data ))
{
$success++;
error_log(date('[Y-m-d H:i] ')."[OK] Reset: ".$Row['roleid']." ".PHP_EOL, 3, LOG_FILE);
}
else
{
$errors++;
$fail .= "Role ID : ".$Row['roleid']."Failed the skill reset </br>";
error_log(date('[Y-m-d H:i] ')."[FAIL] Reset: ".$Row['roleid']." ".PHP_EOL, 3, LOG_FILE);
}
sleep(2);
}
$count++;
}