• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Feature Rook system.

I cannot find
Code:
IPBANISHMENT_LENGTH,
in configmanager.h. When I add it after WHITE_SKULL_TIME in enum integer_config_t it will be working?
 
Code:
g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -D__USE_SQLITE__ -Werror -O1 -c configmanager.cpp
configmanager.cpp: In member function `bool ConfigManager::loadFile(const std::string&),:
configmanager.cpp:138: b\u0142\u0105d: `m_confNumber, was not declared in this scope
make: *** [configmanager.o] Błąd 1
configmanager.cpp:138:
Code:
m_confNumber[LEVEL_TO_ROOK] = getGlobalNumber(L, "levelToRook", 5);
How to fix that?
 
Yea, of course you can done all LUA :( But for what? c++ is faster then LUA ;<

[UPDATED]
* More readable ! (reformatted ;o!)
* Players from mainland wont be able send parcels to rookgaard if there you have depots.
* Skull is removed !
 
Yea, of course you can done all LUA :( But for what? c++ is faster then LUA ;<

[UPDATED]
* More readable ! (reformatted ;o!)
* Players from mainland wont be able send parcels to rookgaard if there you have depots.
* Skull is removed !

I guess lua is faster o,o...
Also, the skull stays in tibia :S
 
slawkens on configmanager.h
cannot find IPBANISHMENT_LENGTH,
Well i use TAGS SVN, we can be this
IP,
or
BROADCAST_BANISHMENTS,?

Thanks :p
 
slawkens on configmanager.h
cannot find IPBANISHMENT_LENGTH,
Well i use TAGS SVN, we can be this
IP,
or
BROADCAST_BANISHMENTS,?

Thanks :p

Under "IP," yes, but under BROADCAST_BANISHMENT no, since its string :)
 
Code:
m_confNumber[LEVEL_TO_ROOK] = getGlobalNumber(L, "levelToRook", 5);
m_confNumber[ROOK_TEMPLE_ID] = getGlobalNumber(L, "rookTempleId", 10);
change to
Code:
m_conf[COLOR=Red]Integer[/COLOR][LEVEL_TO_ROOK] = getGlobalNumber(L, "levelToRook", 5);
m_conf[COLOR=Red]Integer[/COLOR][ROOK_TEMPLE_ID] = getGlobalNumber(L, "rookTempleId", 10);

maybe work ;p

Edit: Players don't lose exp using this code. ( tags Rev 1074 )
 
Last edited:
Have you never seen Red Skulls in rook? When players get back to Rookgard, they don't loose RED SKULL, just WHITE SKULL. You'd better verify if player's skull is WHITE. If it is, so, you remove the his/her skull, if not, you shouldn't do anything.

Yours,
Rafael Hamdan;
 
Ok tnx :)
Its working perfectly on newest tfs, and i have only one bug :p When someone is roked, then in console are errors with playerdeath.lua (lines 7 and 20).
 
Can't compile using Rev 1078 Tags...
C++ compiler:
Code:
-D__USE_MYSQL__
-D__USE_SQLITE__
Linker:
Code:
-O1
-lboost_system
-lgmp
-lluasql_mysql
-lluasql_sqlite
-llua5.1
-lmysql
-lboost_regex
-lboost_thread
-lsqlite3
-lwsock32
-lxml2
-lmysql
-lws2_32
-s
Error:
Code:
  [Linker error] undefined reference to `_CreateFontIndirectA@4' 
  [Linker error] undefined reference to `_CreateFontIndirectA@4'  
  [Linker error] undefined reference to `_DeleteObject@4' 
 E:\XXXX\Otserver\RookSystemTest\Makefile.win [Build Error]  [RookSystemTest.exe] Error 1
 
What i put in rookTempleId = X ???

I Know, is a id of Town City ^^

Thank you slawkens.
 
Last edited:
Back
Top