Master Frank
Banned User
- Joined
- Nov 26, 2020
- Messages
- 49
- Reaction score
- 4
Hello, I have an account manager 1/1. how working in Game?
Bumb
Bumb
Iam fix from Sourc Salt
1 problem how block 1/1 from website
public static function setAccount($value)
{
$_SESSION['account'] = ($value != (1)) ? $value : null;
}
public static function setPassword($value)
{
$_SESSION['password'] = ($value != (1)) ? $value : null;
}
OTX is based on TFS 0.3.7, depeding on what version you use, but all OTX are result from TFSI`m use otx NO`t TFS
all Code no work
accountManager = true
INSERT INTO `accounts`(`id`, `name`, `password`, `type`, `premdays`, `lastday`, `email`, `creation`) VALUES (1,1,1,5,100,0,'',0)
INSERT INTO `players`(`id`, `name`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `lastlogout`, `blessings`, `onlinetime`, `deletion`, `balance`, `offlinetraining_time`, `offlinetraining_skill`, `stamina`, `skill_fist`, `skill_fist_tries`, `skill_club`, `skill_club_tries`, `skill_sword`, `skill_sword_tries`, `skill_axe`, `skill_axe_tries`, `skill_dist`, `skill_dist_tries`, `skill_shielding`, `skill_shielding_tries`, `skill_fishing`, `skill_fishing_tries`) VALUES (1,'GOD',3,1,2,1,1000,1000,100,114,0,116,114,140,3,20,1000,1000,100,100,1,95,117,7,'',1000,0,0,0,1,0,0,0,0,0,0,0,43200,-1,2520,10,0,10,0,10,0,10,0,10,0,10,0,10,0)
'myaccount' => array(
'file' => 'myaccount.php',
'override' => true
),
'createcharacter' => array(
'file' => 'createcharacter.php',
'override' => true
),
'changepassword' => array(
'file' => 'changepassword.php',
'override' => true
),
myaccount.php
createcharacter.php
changepassword.php
index.php , line ~47:
change:PHP:$account_logged = $ots->createObject('Account'); $account_logged->find($login_account); if($account_logged->isLoaded()) { if($login_password == $account_logged->getPassword())
with:PHP:if($account_logged->isLoaded())
in array put your list of blocked accountsPHP:if($account_logged->isLoaded() && !in_array($account_logged->getId(), array(1,2,123))
array(1,2,123)