• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows Sha1 Problem _._

Blez

eh..
Joined
Dec 21, 2010
Messages
3,045
Reaction score
739
Location
Hell, Caymen Islands
I currently opened my mysql database and changed the sha1 hashed password to 356a192b7913b04c54574d18c28d46e6395428ab
and now when I login to the account manager, I can walk around, how do I fix this?
 
Didnt test this, but anyway.

Go to data/creaturescripts/login.lua

add this:
Code:
if getPlayerName(cid) == "Account Manager" then
        doCreatureSetNoMove(cid, true)
end
 
Last edited:
http://3.ii.gl/N7gyWCnh.png
Here is the script
function onLogin(cid)
local player = Player(cid)

local loginStr = 'Welcome to ' .. configManager.getString(configKeys.SERVER_NAME) .. '!'
if player:getLastLoginSaved() <= 0 then
loginStr = loginStr .. ' Please choose your outfit.'
player:sendTutorial(1)
else
if loginStr ~= '' then
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
end

loginStr = string.format('Your last visit was on %s.', os.date('%a %b %d %X %Y', player:getLastLoginSaved()))
end
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)

for i = 1, #events do
player:registerEvent(events)
end

return true
if getPlayerName(cid) == "Account Manager" then
doCreatureSetNoMove(cid, true)
end
 
tfs 1.0 doesn't have the function doCreatureSetNoMove
I assume you added the account manager on your own (as 1.0 doesn't have that either)
You have to decline movements in a few functions
Code:
void Creature::startAutoWalk(const std::list<Direction>& listDir)
Code:
void Game::playerMoveCreature(uint32_t playerId, uint32_t movingCreatureId, const Position& movingCreatureOrigPos, const Position& toPos)
Code:
void Game::playerMove(uint32_t playerId, Direction direction)
those have to be edited in order that the account manager cannot move.
 
Yeah, which sucks, :( is there a decent tutorial for setting up a website, because im afraid thats what im going to have to do .. _._

The best alternative is probably to use DevAAC or use queries to get yourself an account & character :p
 
I got this, http://1.ii.gl/M9A2Oo0K.png
But this is http://4.ii.gl/HJp0fpH8.png
same with this http://1.ii.gl/xurBWOMf.png
and when i get to website, i cant find where to register accounts, zone aac

Fixed the problem above, but im missing some tables, so that im able to make accounts ect.

string(100) "SELECT `ip`, `created`, `points`, `cooldown` FROM `znote_accounts` WHERE `account_id` = 448 LIMIT 1;"
(query - SQL error)
Type: select_single (select single row from database)

Table 'server.znote_accounts' doesn't exist
 
Last edited by a moderator:
Code:
CREATE TABLE IF NOT EXISTS `znote_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`ip` int(10) NOT NULL,
`created` int(10) NOT NULL,
`points` int(10) DEFAULT 0,
`cooldown` int(10) DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;

INSERT INTO `znote_accounts` (`account_id`, `ip`, `created`) VALUES
('1', '0', '$time');

http://otland.net/threads/mysql-how-to-run-a-query.177833/

Other Znote tables
https://github.com/Znote/ZnoteAAC/blob/master/engine/database/connect.php
 
if you don't have the newest version from github, then you have to go in config.lua and change
Code:
maxPlayers = 0
to
Code:
maxPlayers = 50
or w/e number you want.
it has been patched at github a few days / weeks ago.
 
Back
Top