E
Evil Puncker
Guest
select a database firstok so i have not done this for a while and was wondering how i fix this please
SQL query:
DROP TRIGGER IF EXISTS `oncreate_players` ;
MySQL said:
#1046 - No database selected
select a database firstok so i have not done this for a while and was wondering how i fix this please
SQL query:
DROP TRIGGER IF EXISTS `oncreate_players` ;
MySQL said:
#1046 - No database selected
dofile("./config.lua")
if sqlType == "mysql" then
env = assert(luasql.mysql())
con = assert(env:connect(mysqlDatabase, mysqlUser, mysqlPass, mysqlHost, mysqlPort))
else -- sqlite
env = assert(luasql.sqlite3())
con = assert(env:connect(sqliteDatabase))
end
function getAccountPoints(cid)
local res = assert(con:execute('select `accounts`.`premium_points` from accounts where name = "..getPlayerAccount(cid).."'))
if(res:getID() == -1) then
return false
end
local ret = res:getDataInt("premium_points")
res:free()
return tonumber(ret)
end
function onSay(cid, words, param, channel)
if isPlayer(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your Account has " .. getAccountPoints(cid) .. " premium points.")
end
return TRUE
end
I found something weird, On my server using this version, when a player gets hit by someone, all players around(espectators) can see in their server log the information of the hit. Is it possible to remove this? I've tried but on the protocolgame.cpp I don't see any function to ONLY send the actual hit animation text (the ammount or hp or mana using the color of the element) without the text of the server log. What I don't like about this is that players in different floors can also see it, kind of spammy.
Thanks
Hello i see theese good comments and i downloaded the files, But how do i create an account i cant login to account maneger
Please reply
g++ -c -I"." -I"/usr/include/libxml2" -I"/usr/include/lua5.1" -I"/usr/include/mysql" -D_THREAD_SAFE -D_REENTRANT -D__NO_HOMEDIR_CONF__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -Wall -O2 -o obj/admin.o admin.cpp
In file included from /usr/include/boost/asio/detail/impl/throw_error.ipp:21,
from /usr/include/boost/asio/detail/throw_error.hpp:52,
from /usr/include/boost/asio/detail/impl/posix_mutex.ipp:23,
from /usr/include/boost/asio/detail/posix_mutex.hpp:73,
from /usr/include/boost/asio/detail/mutex.hpp:25,
from /usr/include/boost/asio/detail/service_registry.hpp:20,
from /usr/include/boost/asio/impl/io_service.hpp:18,
from /usr/include/boost/asio/io_service.hpp:684,
from /usr/include/boost/asio/basic_io_object.hpp:20,
from /usr/include/boost/asio/basic_socket.hpp:19,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /usr/include/boost/asio.hpp:20,
from connection.h:25,
from admin.cpp:24:
/usr/include/boost/system/system_error.hpp:22: error: expected initializer before â:â token
In file included from /usr/include/boost/asio/impl/io_service.hpp:18,
from /usr/include/boost/asio/io_service.hpp:684,
from /usr/include/boost/asio/basic_io_object.hpp:20,
from /usr/include/boost/asio/basic_socket.hpp:19,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /usr/include/boost/asio.hpp:20,
from connection.h:25,
from admin.cpp:24:
/usr/include/boost/asio/detail/service_registry.hpp:38: error: expected â}â before end of line
/usr/include/boost/asio/detail/service_registry.hpp:38: error: expected â}â before end of line
/usr/include/boost/asio/detail/service_registry.hpp:38: error: expected declaration before end of line
make: *** [obj/admin.o] Error 1
Hi I'm very new into hosting a OT. I started looking into it a few days ago. Currently I have the 9.1 version of 'The Forgotten Server' up and running.... except one major problem so far... No npcs. I have tried to search forums for an answer, also tried google. I'm afraid since I'm so new to this I may be asking the wrong questions.
So far i have set up two OT servers, a 8.7 and a 9.1 nether have npcs. atleast none on rookguard. can you help me figure out what im doing wrong?
How do you edit a character to become an Admin? because there's no account access value to change to 5 (being the Admin or God) only group_id which was changed to 3 in both the player and account although i cannot execute too many commands. What am i missing?
Hi i downloaded ur files but i cant login it says wrong password what should i do someone? :?
Anyone got an answer on the login issue yet....?
I follow the README instructions but when i try to compile the server i get this error:
What should i do about this?
Hi I'm very new into hosting a OT. I started looking into it a few days ago. Currently I have the 9.1 version of 'The Forgotten Server' up and running.... except one major problem so far... No npcs. I have tried to search forums for an answer, also tried google. I'm afraid since I'm so new to this I may be asking the wrong questions.
So far i have set up two OT servers, a 8.7 and a 9.1 nether have npcs. atleast none on rookguard. can you help me figure out what im doing wrong?
Debian 6.0Which Linux distribution are you running?
Debian 6.0
Apply this patch in monster.cpp: