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

GESIOR 2012 - Version 1.0.2 for OTServ 0.6.3 and older.

Pietia

Active Member
Joined
Jan 13, 2008
Messages
2,147
Reaction score
48
Location
Poland
Please use latest config.lua file from https://github.com/opentibia/server/blob/legacy/config.lua.dist

Changes from 1.0.0:

- Fixed PayPal script. Now it works. Instruction how to use is at end of that post.
- Fixed guild image in 'Top Guilds' on 'latest news' page. Now it shows logo of guild.
- Version for OTServ 0.6.3 all versions.

GESIOR 2012 for OTServ
Version 1.0.2

This is old version of Gesior acc. maker, but:
- POT replaced to my classes
- all bugs fixed (all possible XSS/SQL-injection attacks blocked), only account 1 (admin: page_access = 3 in table 'accounts' in database) can modify content of site [write news with HTML]
- ALL SQL queries rewritten
- works with MySQL and SQLite databases (you can also try PgSQL, but I did not test that version)
- forum integrated with news (only admin can create thread on forum on board 'News', threads content is visible on 'latestnews')
- it shows skull, flag and outfit of players
- it auto-detect flag by IP of player (doesn't have to select when create account/can't lie)
- installation script is available only to IP which is in file 'install.txt' - you can install it on dedic and players can't change password to account 1

- installed payments systems:
- - - ZayPay - international SMS and phone calls (my script uses 'ZayPay Payalogues', not like old 'zaypay' system available on otland, you must search in google how it works and how to config)
- - - PayPal - credit cards
- - - DotPay - polish sms and bank transfers
I will not write how to config it. If you don't understand, you don't deserve money!
Config of payment systems is in folder 'custom_scripts' and in file 'pages/buypoints.php'.
Remember to set folders in 'custom_scripts' writeable to make these systems work fine!
[ABOUT PAYPAL YOU CAN READ MORE AT END OF THAT POST]

To turn on/off installation create/remove file 'install.txt' in main folder (with your IP inside it).

Links:
Gesior ACC for OTserv 0.6.3 and older:
Download attachment at the bottom.

GitHub:
https://github.com/Pietia10/Gesior-for-OTServ

Additional Scripts:
(download all files in .zip, press ZIP at top of site)
https://github.com/gesior/Gesior2012_Additional_Scripts - some extra scripts which will let you host items/outfits/flags images on your own server, links to folders with outfits, items and flags images you set in config/config.php, by default acc. maker use by server ots.me

What is what in file config/config.php (for TFS 0.2.X versions you must ignore 'multiworld' things, use BRAIN to compare your config.php with examples):
http://otland.net/f479/configuration-gesior2012-config-php-file-description-172012/

How to install shop script on your TFS [for 0.3.6/0.4] and HOW TO ENABLE SHOP ON WEBSITE:
http://otland.net/f479/gesior2012-items-shop-installation-administration-170654/

If you host it on linux remember to set rights to acc. maker folder that allow PHP to write/delete files of account maker!

----------------------------------------------------------
Old scripts (from old 'gesior') are almost compatible with new version. One of changes are class names. In old it was (ex.): 'OTS_Account', now it's 'Account', so 'new OTS_Account()' must be 'new Account()' for new version.
----------------------------------------------------------
Old LAYOUTS are also compatible (~90% of them). Message me if your old layout doesn't work. I can fix it in one minute.
----------------------------------------------------------
'pages' from 0.3.6 and 0.4 branches are compatible. Versions 0.2.x have less pages [houses page not ready yet, top fraggers removed, top guilds in news removed etc.] and 'pages' are not compatible with other versions, because there is no 'multiworld' in TFS 0.2.
----------------------------------------------------------

Report bugs / problems with old not working scripts (and layouts) to me by OTland private message:
[OTLAND]SEND PRIVATE MESSAGE TO Pietia :cool:

About PayPal
1. Config of payments (amount of money, points, your paypal e-mail) is in:
custom_scripts/paypal/config.php
2.
There is:
Code:
$paypal_report_url = 'http://anderion.net/paypal_report.php';
Change anderion.net to your domain (+folder if acc. maker is in some folder) and leave /paypal_report.php, don't change to /pages/paypal_report.php
3.
Remember to make 'reported_ids' folder writeable to make acc. maker add points for payments (on linux: chmod -R 777 /var/www/custom_scripts [if acc. maker is in /var/www/):
custom_scripts/paypal/reported_id/
4. DO NOT EDIT/CONFIGURE ANYTHING ON PAYPAL.COM
, acc. maker 'tells' PayPal how to report payment. You can't turn on IPN on paypal.com - it blocks script. You just need registered account and good config of script in acc. maker to make PayPal donations work.




Gesior will probably soon release it on github when there will be no bugs reported.
 
Last edited by a moderator:
Due to how the files are distributed, its not possible for us Moderators to safely approve the files(since they can be changed), but I believe it to be safe

Either way, check them before using, as you should always
 
Due to how the files are distributed, its not possible for us Moderators to safely approve the files(since they can be changed), but I believe it to be safe

Either way, check them before using, as you should always

Ekhm and where is my link ?? I can upload it to otland attachment as well.
 
I have problems with your acc


ERROR: #C-1 : Class::ConfigLUA - Line 21 of LUA config file is not valid [key: paralyzeSlow]

File: C:\xampp\htdocs\classes/configlua.php Line: 59
File: C:\xampp\htdocs\classes/configlua.php Line: 20
File: C:\xampp\htdocs\classes/configlua.php Line: 12
File: C:\xampp\htdocs/install.php Line: 249
 
I have problems with your acc


ERROR: #C-1 : Class::ConfigLUA - Line 21 of LUA config file is not valid [key: paralyzeSlow]

File: C:\xampp\htdocs\classes/configlua.php Line: 59
File: C:\xampp\htdocs\classes/configlua.php Line: 20
File: C:\xampp\htdocs\classes/configlua.php Line: 12
File: C:\xampp\htdocs/install.php Line: 249

can you copy/paste the 21. line?
 
I have problems with your acc


ERROR: #C-1 : Class::ConfigLUA - Line 21 of LUA config file is not valid [key: paralyzeSlow]

File: C:\xampp\htdocs\classes/configlua.php Line: 59
File: C:\xampp\htdocs\classes/configlua.php Line: 20
File: C:\xampp\htdocs\classes/configlua.php Line: 12
File: C:\xampp\htdocs/install.php Line: 249
well otserv dont have even such line so you probably dont even use OTServ 0.6.3
 
STEP 1

Check server configuration
Error occured!

Error ID:
More info: ERROR: #C-1 : Class::ConfigLUA - Line 145 of LUA config file is not valid [key: banishment_length]

File: C:\xampp\htdocs\classes/configlua.php Line: 59
File: C:\xampp\htdocs\classes/configlua.php Line: 20
File: C:\xampp\htdocs\classes/configlua.php Line: 12
File: C:\xampp\htdocs/install.php Line: 249

Can you help me, please?

- - - Updated - - -

Line 59 - new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]');


Line 20 - $this->loadFromString($content);

Line 12 - $this->loadFromFile($path);

Line 249 $tmp_lua_config = new ConfigLUA($path . 'config.lua');

- - - Updated - - -

Never mind, I removed the "--" from config lua...

Now I have these problems

Error occured!

Error ID: #E-3
More info: There is no key sqlHost or mysqlHost in server config
Errors list:
INFO - use server config cache: false

File: C:\xampp\htdocs/install.php Line: 164 .__.
 
STEP 1

Check server configuration
Error occured!

Error ID:
More info: ERROR: #C-1 : Class::ConfigLUA - Line 145 of LUA config file is not valid [key: banishment_length]

File: C:\xampp\htdocs\classes/configlua.php Line: 59
File: C:\xampp\htdocs\classes/configlua.php Line: 20
File: C:\xampp\htdocs\classes/configlua.php Line: 12
File: C:\xampp\htdocs/install.php Line: 249

Can you help me, please?

- - - Updated - - -

Line 59 - new Error_Critic('', 'ERROR: <b>#C-1</b> : Class::ConfigLUA - Line <b>' . ($ln + 1) . '</b> of LUA config file is not valid [key: <b>' . $key . '</b>]');


Line 20 - $this->loadFromString($content);

Line 12 - $this->loadFromFile($path);

Line 249 $tmp_lua_config = new ConfigLUA($path . 'config.lua');

- - - Updated - - -

Never mind, I removed the "--" from config lua...

Now I have these problems

Error occured!

Error ID: #E-3
More info: There is no key sqlHost or mysqlHost in server config
Errors list:
INFO - use server config cache: false

File: C:\xampp\htdocs/install.php Line: 164 .__.
about config.lua yes just delete --
about second one replace in install.php in 143 line to this:


Code:
		if(Website::getServerConfig()->isSetKey('sql_host'))
		{
			define('SERVERCONFIG_SQL_TYPE', 'sql_type');
			define('SERVERCONFIG_SQL_HOST', 'sql_host');
			define('SERVERCONFIG_SQL_PORT', 'sql_port');
			define('SERVERCONFIG_SQL_USER', 'sql_user');
			define('SERVERCONFIG_SQL_PASS', 'sql_pass');
			define('SERVERCONFIG_SQL_DATABASE', 'sql_db');
			define('SERVERCONFIG_SQLITE_FILE', 'sql_db');
		}

I have forgotten about this
 
I did this, but I cant get it to work? ._:

Error:
Error occured!

Error ID: #E-3
More info: There is no key sqlHost or mysqlHost in server config
Errors list:
INFO - use server config cache: false

File: C:\xampp\htdocs/install.php Line: 165

My config.lua

-------- config.lua --------
-- Config file for OTServ --
----------------------------

-- data directory location
datadir = "data/"

-- map location
map = "data/world/map.otbm"

-- Type of map storage,
-- 'relational' - Slower, but possible to run database queries to change all items to another id for example.
-- 'binary' - Faster, but you cannot run DB queries.
-- To switch, load server with the current type, change the type in config.lua
-- type /reload config and the save the server with /closeserver serversave
map_store_type = "binary"

-- mapkind
-- options: OTBM for binary map, XML for OTX map
mapkind = "OTBM"

-- server name
servername = "OTServ"

-- server location
location = "Germany"

-- server ip (the ip that server listens on)
ip = "127.0.0.1"

-- login server port
-- This should be the port used for connecting with IP changers etc.
login_port = "7171"

-- game server port
-- game server must be on it's own port (due to limits of the protocol)
game_port = "7172"

-- status port
-- Used by status protocol connections, should be same as login
-- to work correctly with server lists etc.
status_port = "7171"

-- admin port
-- Port used by the OTAdmin protocol
admin_port = "7171"

-- server url
url = "http://otfans.net"

-- server owner name
ownername = "Tliff"

-- server owner email
owneremail = "[email protected]"

-- world name
worldname = "OpenTibia"

-- world type
-- options: openpvp/pvp, optionalpvp/no-pvp, hardcorepvp/pvp-enforced
worldtype = "openpvp"

-- does player rate (from lua functions) count on experience gained from killings players on pvp-e worlds?
rates_for_player_killing = false

-- exhausted time in ms (1000 = 1 second) for "yell" speak type
exhausted = 30000

-- exhausted time in ms (1000 = 1 second) for aggressive spells/weapons
fightexhausted = 2000

-- exhausted time in ms (1000 = 1 second) for none-aggressive spells
healexhausted = 1000

-- exhausted time in ms (1000 = 1 second) for floor changing
stairhop_exhausted = 2000

-- how many ms to add if the player is already exhausted and tries to cast a spell/yells (1000 = 1 second)
exhaustedadd = 5000

-- how long does the player has to stay out of fight to get pz unlocked in ms (1000 = 1 second)
in_fight_duration = 60000

-- how long a field belongs to a player before it no longer causes PZ lock for the owner
field_ownership_duration = 5000

-- When a player dies, how many of the assisting players (ie. how many of those who made damage) should be stored in database?
death_assist_count = 19

-- Should only the player who did the last hit get the 15-minute pz lock?
last_hit_pzblock_only = true

-- enable (advanced, item based) hotkeys?
enablehotkeys = true

-- minimum amount of time between actions ('Use') (1000 = 1 second)
minactioninterval = 200

-- minimum amount of time between extended actions ('Use with...') (1000 = 1 second)
minactionexinterval = 1000

-- house rent period
-- options: daily, weekly, monthly
houserentperiod = "monthly"

-- whether or not to check for premium accounts when using beds
premonlybeds = true

-- Should the server use account balance system or depot system for paying houses?
use_balance_house_paying = true

-- How long time the red skull will last in seconds (default 30 days)
red_skull_duration = 30*24*60*60

-- How long time the black skull will last in seconds (default 45 days)
black_skull_duration = 45*24*60*60

-- White skull duration, how long a player will get pz locked/white skull
unjust_skull_duration = 15*60*1000

-- Enable this and players will get pzlocked regardless of being the aggressor or not (<8.5 this was set to true)
defensive_pz_lock = false

-- How many players you need to kill to gain a red skull per day/week/month
-- Set 0 to disable
kills_per_day_red_skull = 3
kills_per_week_red_skull = 5
kills_per_month_red_skull = 10

-- How many players you need to kill to gain a black skull per day/week/month
-- Set 0 to disable
kills_per_day_black_skull = 6
kills_per_week_black_skull = 10
kills_per_month_black_skull = 20

-- Broadcast violation window banishments
broadcast_banishments = "no"

-- Violation window config
max_violation_comment_size = 255
notations_to_banishment = 3
warnings_to_final_banishment = 4
warnings_to_deletion = 5
banishment_length = 7*86400
final_banishment_length = 30*86400
ip_banishment_length = 86400

Extra experience % per player when sharing experience
party_exp_mul = 5

-- Anti-MageBomb system
-- This system works as in Tibia, time in milliseconds
login_attack_delay = 10*1000

-- AFK Configuration (in milliseconds, but use values for minutes)
-- Maximum time a player can stay away from keyboard before being kicked
max_idle_time = 16*60*1000
-- Player will be warned about being kicked at this time
max_idle_time_warning = 15*60*1000

-- Should just premium players be able to use addons?
addons_only_for_premium = true

-- Exp Stages configuration is in /data/exp_stages.lua
experience_stages = false

-- rates (experience, skill, magic level, loot and spawn)
rate_exp = 1
rate_exp_pvp = 0
rate_skill = 1
rate_mag = 1
rate_loot = 1
rate_spawn = 1

--Displays the skill advanced to when advancing in skills (melee) [default: "no"]
--Example: "You advanced to sword fighting 17. "
show_new_skill_level = false

--Displays amount of health healed.
--Similar to the way damage is shown, except in green numbers (Example: +17) [default: "no"]
show_healing = false

--Use orange text for spells rather than traditional text [default: "no"]
--NOTE: The orange text will not be displayed on the default channel
orange_spell_text = false

-- Configuration for death messages
-- Should the client show the popup window after a death? [default: "yes"]
show_death_window = true
-- What message should be sent for the player, after its own death? Use "" to disable.
death_msg = "You are dead."


--how many floors away of a player should a monster be to become idle?
--WARNING: setting this as any number bigger than 3 may increase CPU usage and
--setting this to any value smaller than 2 will make nearly impossible to rope monsters from a hole
height_minimum_for_idle = 3

-- Stamina Configuration
-- Gain stamina rate - 1 second offline = X milliseconds of stamina
rate_stamina_gain = 334
-- Slow gain stamina rate. This is used if you are gaining stamina that gives extra experience
-- 1 second offline = X milliseconds of stamina
slow_rate_stamina_gain = 100
-- Loss stamina rate - works as other rates
rate_stamina_loss = 1
-- For how many milliseconds (from 42 hours) you get extra experience from monsters
stamina_extra_experience_duration = 2 * 60 * 60 * 1000
-- How much extra XP you get 0.5 is 50% extra
stamina_extra_experience_rate = 0.5
-- If true, only premium players gain extra experience
stamina_extra_experience_onlyprem = true
-- For how many milliseconds after killing a monster stamina will keep being removed
hunting_kill_duration = pzlocked

-- Remove ammunition
-- If false, ammunition will not be removed when using distance weapons
-- (or other weapons that use ammunition)
remove_ammunition = true

-- Remove rune charges
-- This only applies to runes done using the default functions.
-- Custom runes made using actions will not be affected.
remove_rune_charges = true

-- Remove weapon charges
-- Set to false to disable charges disappearing from weapons on use
remove_weapon_charges = true

-- Distance weapon configuration
-- Should exhaustion and action time be checked for using a distance weapon?
distance_weapon_interrupt_swing = true

-- Wands configuration exhaustion
-- Should exhaustion and action time be checked for using wands?
wands_interrupt_swing = true

-- How many items can be stacked in a single tile (all type of tiles)(client side)? DO NOT CHANGE IT UNLESS THAT YOU KNOW WHAT YOU ARE DOING
max_stack_size = 1000

-- How many items can be stacked in a normal tile ? (0 = max_stack_size)
tile_limit = 0

-- How many items can be stacked in a protection zone tile ? (0 = max_stack_size)
protection_tile_limit = 0

-- How many items can be stacked in a house zone tile ? (0 = max_stack_size)
house_tile_limit = 0


-- fist fighting configuration
-- How strong should be the attack using bare hands (fist fighting)?
fist_strength = 7

-- Guild War Fee
-- The addition 'war charge' to start a guild war (default: 1000)
-- To disable set to 0
guild_war_fee = 1000

-- Allow gamemaster multiclient login to everybody?
allow_gamemaster_multiclient = false

-- despawn configs
-- how many floors can a monster go from his spawn before despawning
despawnrange = 2
-- how many square metters can a monster be far from his spawn before despawning
despawnradius = 50

--should players be able to hit invisible creatures using not AOE runes? (default: false)
can_attack_invisible = false

--should players be able to pass through each other if they can't attack each other (non-pvp servers/tiles or levels too low for PvP)?
--this option also controls if they can pass through magic wall/wild growth casted by players with those restrictions
can_pass_through = true

--should magic walls (and wild growth) disappear when a player walks upon it? (non-pvp servers/tiles or casted by chars who are too low)?
magic_wall_disappear_on_walk = true

--players with a level smaller than this number can't be attacked by other players. Set it to to 0 to disable
min_pvp_level = 0

--how much % of the total damage players actually receive when attacked by other players?
pvp_damage = 50

--how much % of the total damage black skulled players actually receive when attacked by other players?
pvp_damage_at_black_skulls = 100

--should pvp restrictions apply to summons too?
-- (experimental code - requires otserv to be compiled with flag __MIN_PVP_LEVEL_APPLIES_TO_SUMMONS__)
min_pvp_level_applies_to_summons = true

-- How many milliseconds (1 sec = 1000) we should wait until the player will be pushed by another player.
push_interval = 2000

-- How many milliseconds a player should wait until he can move another item after moving one (0 disables it)
move_item_interval = 500

-- max number of messages a player can say before getting muted (default 4), set to 0 to disable muting
maxmessagebuffer = 4

-- max amount of none stackable items that a NPC will sell to a player at the same time
npc_max_nonestackable_sell_amount = 100

-- if you doesn't wish to see errors like this: "Error: Expected an integer/boolean parameter"
--(it means that you are missing an return somewhere but this is not so important and is just spamming your console on a production server) then set this to false
lua_excepted_type_errors_enabled = true

-- motd (the message box that you sometimes get before you choose characters)
motd = "Welcome to OTServ 0.6.3!"
motdnum = "1"

-- login message
loginmsg = "Welcome to OTServ 0.6.3. For help visit http://otfans.net."

-- how many logins attempts until ip is temporary disabled
-- set to 0 to disable
logintries = 5

-- how long the retry timeout until a new login can be made (without disabling the ip)
retrytimeout = 5000

-- how long the player need to wait until the ip is allowed again
logintimeout = 60 * 1000

-- how deep queryDestination should look for free slots (default -1, infinite)
player_querydestination_deepness = -1

-- allow clones (multiple logins of the same char)
allowclones = false

-- only one player online per account
checkaccounts = true

-- max number of players allowed
maxplayers = "900"

-- save client debug assertion reports
-- to use this option you have to create file called client_assertions.txt and make sure after client crash to change IP to otserv one then click "send".
saveclientdebug = true

-- Set the max query interval for retrieving status information
-- default: 5 minutes / IP
-- set to 0 to disable
statustimeout = 30 * 1000

-- accounts password type
-- options: plain, md5, sha1
passwordtype = "sha1"

-- Password salt
-- Offers better security against rainbow table attacks etc.
passwordsalt = ""

-- House configuration (game_class)
-- House tile price
house_tile_price = 100
-- Only premium players can buy houses?
house_only_premium = true
-- Level to buy houses
house_level = 1
-- Show house price and its rent price when looking at its door?
-- PS: This info is going to be shown just if house has no owner
show_house_prices = false

-- SQL type
-- options: mysql, sqlite, odbc or pgsql
sql_type = "mysql"


-- SQL connection part
sql_db = "db.s3db"
-- sql_db = "forgotten" -- use this for MySQL/PgSQL
-- sql_db = "Your Source" -- ODBC

-- Additional connection settings for mysql, pgsql and odbc
sql_host = "127.0.0.1"
sql_port = 3306
--- sql_port = 5432 -- use this for PgSQL
sql_user = "forgotten"
sql_pass = "97pG9EAsDXMweWbw"

?? Can you help me :X
 
XKxXoro.png
 
STEP 2
Check database connection
If you don't see any errors press link to STEP 3 - Add tables and columns to DB. If you see some errors it mean server has wrong configuration. Check FAQ or ask author of acc. maker.
Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: could not find driver

File: C:\xampp\htdocs\classes/database_mysql.php Line: 22
File: C:\xampp\htdocs/install.php Line: 271
 
Mam zrobione jak napisałeś wyżej i nic dalej ten sam błąd co niżej.


Error occured!

Error ID: #E-3
More info: There is no key sqlHost or mysqlHost in server config
Errors list:
INFO - use server config cache: true

File: C:\xampp\htdocs/install.php Line: 164 .__.
 
Back
Top