• 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!

Znote AAC 1.4 - [TFS 0.2.13+] & [TFS 0.3.6+/0.4]

When i change to rev 1.4 in latest news i have this error:
SQL:
string(43) "SELECT `name` FROM `players` WHERE `id` = ;" 
(query - SQL error) 
Type: select_single (select single row from database)

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
this happens when you access the page?
or when you try to post a news?

____-------------------_____________________--------------------------____________________----------------------______________--------

Works 100% for me. XP
 
Last edited:
this happens when you access the page?
or when you try to post a news?

____-------------------_____________________--------------------------____________________----------------------______________--------

Works 100% for me. XP

However, this mistake was corrected by deleting the old news that I had on my site in the DB, the problem is that now I can not create new news, when I do not show, I think it's because the news system previously used is this:
http://otland.net/f118/znote-aac-more-advanced-news-sytem-168081/

Maybe I do not have the corresponding tables.
 
unziped in www folder, when I access 127.0.0.1
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
 
nvm fixed

There is a bug having to much admin access to go into the forum, fixed it by making him a normal player. Similar error to TYPE: select_single (SELECT single ROW FROM DATABASE)
Looks like i must have one acc for forum and one for ingame.
 
Last edited:
i have 1 problem
i have Znote Acc 1.4 And Template Tibia.com and have problem in Latest News y Forum
string(53) "SELECT `type` FROM `accounts` WHERE `id`='3' LIMIT 1;"
(query - SQL error)
Type: select_single (select single row from database)

Unknown column 'type' in 'field list'

and not have query of !shop command

more expliqued : Conectarse
 
i have 1 problem
i have Znote Acc 1.4 And Template Tibia.com and have problem in Latest News y Forum
string(53) "SELECT `type` FROM `accounts` WHERE `id`='3' LIMIT 1;"
(query - SQL error)
Type: select_single (select single row from database)

Unknown column 'type' in 'field list'

and not have query of !shop command

more expliqued : Conectarse

ALTER TABLE `accounts` ADD `type` BIGINT( 255 ) NOT NULL DEFAULT '0'

znoteshop.lua

Code:
-- Znote Shop v1.0 for Znote AAC on TFS 0.2.13+ Mystic Spirit.
function onSay(cid, words, param)
	local storage = 54073 -- Make sure to select non-used storage. This is used to prevent SQL load attacks.
	local cooldown = 15 -- in seconds.
	
	if getPlayerStorageValue(cid, storage) <= os.time() then
		setPlayerStorageValue(cid, storage, os.time() + cooldown)
		local accid = getAccountNumberByPlayerName(getCreatureName(cid))
		
		-- Create the query
		local orderQuery = db.storeQuery("SELECT `id`, `type`, `itemid`, `count` FROM `znote_shop_orders` WHERE `account_id` = " .. accid .. " LIMIT 1;")
		
		-- Detect if we got any results
		if orderQuery ~= false then
			-- Fetch order values
			local q_id = result.getDataInt(orderQuery, "id")
			local q_type = result.getDataInt(orderQuery, "type")
			local q_itemid = result.getDataInt(orderQuery, "itemid")
			local q_count = result.getDataInt(orderQuery, "count")
			result.free(orderQuery)
			
			-- ORDER TYPE 1 (Regular item shop products)
			if q_type == 1 then
				-- Get wheight
				local playerCap = getPlayerFreeCap(cid)
				local itemweight = getItemWeight(q_itemid, q_count)
					if playerCap >= itemweight then
						db.query("DELETE FROM `znote_shop_orders` WHERE `id` = " .. q_id .. ";")
						doPlayerAddItem(cid, q_itemid, q_count)
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations! You have recieved ".. q_count .." "..getItemName(q_itemid).."(s)!")
					else
						doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Need more CAP!")
					end
			end
			-- Add custom order types here
			-- Type 2 is reserved for premium days and is handled on website, not needed here.
			-- Type 3 is reserved for character gender(sex) change and is handled on website as well.
			-- So use type 4+ for custom stuff, like etc packages.
			-- if q_type == 4 then
			-- end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You have no orders.")
		end
		
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Can only be executed once every "..cooldown.." seconds. Remaining cooldown: ".. getPlayerStorageValue(cid, storage) - os.time())
	end
	return false
end

<talkaction words="!shop" script="znoteshop.lua"/>
 
i have this bug in 1.4 + TibiaCOM layout:
As you can see in the picture ingame you can see the players who killed the player "Borito" but on the website does not appear in latest deaths correct the information.
As you can see it appears that he was killed by Morgaroth.
In other players listed who were killed by: Deleted Player, Dragon, Dragon Lord or other monster.
And also as you can see in the section Latest Kills nothing appears.
What can be the bug and how to fix it?



Uploaded with ImageShack.us
 
I get the problem "Failed to recognize your IP address. (Not a valid IPv4 address)."
can somebody help me?
 
$config['validate_IP'] = false; // Only allow legal IP addresses to register and create character.
$config['salt'] = false; // Some noob 0.3.6 servers don't support salt.
validate_Ip should be false
 
The items bought cames in separate orders, say for example you buy two items at the shop site. You then have to use !shop two times to get both items, could you make it possible to get all items ordered in one time?

- - - Updated - - -

Also noticed that the java only works good from index.php/home destination, the other destinations makes the java buggy.

- - - Updated - - -

Javascript failure stopped, not really sure why though.
 
When I create a guild it says success! But it doesn't show the guild nor can I edit or add people.

It shows it in my database, but not on website or ingame!
 
Last edited:
News: I probably won't have time to work on Znote AAC 1.5 for quite a while since im busy working irl. :( (Maybe I get some time at end of summer, but cant promise).

================

i have 1 problem
i have Znote Acc 1.4 And Template Tibia.com and have problem in Latest News y Forum
string(53) "SELECT `type` FROM `accounts` WHERE `id`='3' LIMIT 1;"
(query - SQL error)
Type: select_single (select single row from database)

Unknown column 'type' in 'field list'

and not have query of !shop command

more expliqued : Conectarse

It appears you have configured wrong TFS version in znote AAC config.php file.

i have this bug in 1.4 + TibiaCOM layout:
As you can see in the picture ingame you can see the players who killed the player "Borito" but on the website does not appear in latest deaths correct the information.
As you can see it appears that he was killed by Morgaroth.
In other players listed who were killed by: Deleted Player, Dragon, Dragon Lord or other monster.
And also as you can see in the section Latest Kills nothing appears.
What can be the bug and how to fix it?



Uploaded with ImageShack.us

Which TFS version? I'm pretty sure it should work out fine if you have configured TFS version to be TFS_02 (for Mystic Spirit) or TFS_03 (For crying damson or 0.4/0.3.7).

The items bought cames in separate orders, say for example you buy two items at the shop site. You then have to use !shop two times to get both items, could you make it possible to get all items ordered in one time?

- - - Updated - - -

Also noticed that the java only works good from index.php/home destination, the other destinations makes the java buggy.

- - - Updated - - -

Javascript failure stopped, not really sure why though.

Which TFS version? I might have to look into a way to loop it through so its fixed in next version of Znote AAC. It would be great if I could get some help from a LUA coder with this, as I am quite busy at this moment.
 
Ty for the release!!

How to delete the "Search by town" in the main page?
 
Warning: mysql_connect(): Access denied for user 'sqlusername'@'localhost' (using password: YES) in C:\xampp\htdocs\engine\database\connect.php on line 197
 
Did you configure the MySQL settings in config.php?
PHP:
// phpmyadmin username for OT server: (DONT USE "root" if ur hosting to public.).
    $config['sqlUser'] = 'sqlusername';
    
    // phpmyadmin password for OT server:
    $config['sqlPassword'] = 'sqlpassword';
    
    // The database name to connect to. (This is usually same as username).
    $config['sqlDatabase'] = 'sqldatabase';
 
ok thanks i create account
and must login to create character
website work top player create account and more
login to account ( Username and password combination is wrong. )
 
ok thanks i create account
and must login to create character
website work top player create account and more
login to account ( Username and password combination is wrong. )

In config.php you also need to:
1: Configure either TFS_02 or TFS_03
2: Configure salt to either true or false
 
Back
Top