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

okay, I want to learn to script!

cake

Banned User
Joined
Jul 24, 2010
Messages
838
Reaction score
58
Location
good or bad,
really ^_^
never thought I would, but I really want to make unique systems in me, collz' & hawars' upcoming server.

First of all, I know absolutely nothing about scripting.
Is there any tutorials explaining the basics?
Also I saw in tutorials something about C/C++, is that what Tibia-scripting uses?

Thanks!
 
get any o.3.6 , make db, change the ports (if you hostin another server), make a god character, and start testing :p

Any tutorial on doing these things? :p

Server only for you, normal server with ports that none else don't know and you are onlyone who could connect = Private server, got it? :D

How do I make that?
 
Hey there cake, well if you want a test server, just so you can test your scripts and so, just download a serv and use localhost.
Then you wont even need internet connection since you're entering by your own + no one can enter.

Oh and I found a really good Tutorial about scripting, is really nice, it was made by Evil Hero
http://otland.net/f481/scripting-guide-74030/


Hope I helped.
 
Hey there cake, well if you want a test server, just so you can test your scripts and so, just download a serv and use localhost.
Then you wont even need internet connection since you're entering by your own + no one can enter.
Hope I helped.

I've understand that, however I have no possible clue about what I should download or what localhost is. Right now I got my map, a lot of lua files in different folders (npcs, actions, monsters, spells etc.) & TheForgottenServer.exe, some s3db or something, & a config.lua. What should I do?

x.x
 
Okay, you got a serv already thats good.
You know acc/pass from god acc?

First:
Go into your LUA (config), search the connection config
-- Connection config
worldId = 0
ip = "xxx.xxx.xxx.xxx" ---- instead of this you just put "localhost"
bindOnlyConfiguredIpAddress = false
loginPort = 7171
gamePort = 7172

Then go to your .exe file and double click it.
After that you shoud just wait, then put in your ip changer : localhost
Then enter with your acc and pass and now you are in your own server, alone and ready to test!

Here you can get some other servs (so you can use them to test)
http://otland.net/f465/all-edited-distributions-list-8-40-8-42-8-50-8-52-8-54-a-63478/

Hope I helped :)
 
Okay, you got a serv already thats good.
You know acc/pass from god acc?

First:
Go into your LUA (config), search the connection config


Then go to your .exe file and double click it.
After that you shoud just wait, then put in your ip changer : localhost
Then enter with your acc and pass and now you are in your own server, alone and ready to test!

Here you can get some other servs (so you can use them to test)
http://otland.net/f465/all-edited-distributions-list-8-40-8-42-8-50-8-52-8-54-a-63478/

Hope I helped :)

Ah thanks, also how do I check god/admin account? :p
 
Well, In my case you just need the sqliteestudio.
I don't know if in your server.
Anyway most of the times the god accs are
2/2 , 2/god , god/god
Try that, if you can't get in just tell me I'll try to give you the sqlite :).
 
God char = in database set player group_id to 6.

Also read those basic OT tutorials :) How did you got that much of rep points when you don't know anything about servers or even what is localhost :D
 
Well, In my case you just need the sqliteestudio.
I don't know if in your server.
Anyway most of the times the god accs are
2/2 , 2/god , god/god
Try that, if you can't get in just tell me I'll try to give you the sqlite :).

uhm I get this error :p

Error: Unable to load config.lua!

God char = in database set player group_id to 6.

Also read those basic OT tutorials :) How did you got that much of rep points when you don't know anything about servers or even what is localhost :D

I don't know lol. I don't even ask for rep as it doesn't really mean anything to me.
 
Hum, cake, what does it say like V of the connection config where it says
--Database
................
...............

Send me what it says there.
 
-- Connection config
worldId = 0
ip = "localhost"
bindOnlyConfiguredIpAddress = false
loginPort = 7171
gamePort = 7172
loginTries = 10
retryTimeout = 5 * 1000
loginTimeout = 60 * 1000
maxPlayers = 800
motd = ""
displayOnOrOffAtCharlist = false
onePlayerOnlinePerAccount = true
allowClones = false
serverName = ""
loginMessage = ""



this?
 
No, but nvm xD
Got no clue why localhost isnt working :/
Try downloading 8.54 Naxed ot, and use it to test.
I work with that one and localhost works for me..
 
No, but nvm xD
Got no clue why localhost isnt working :/
Try downloading 8.54 Naxed ot, and use it to test.
I work with that one and localhost works for me..

i found it:

Code:
- Database
	sqlType = "mysql"
	sqlHost = "localhost"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = ""
	sqlDatabase = "theforgottenserver"
	sqlFile = "theforgottenserver.s3db"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	mysqlWriteTimeout = 10
	encryptionType = "plain"

	-- Deathlist
	deathListEnabled = true
	deathListRequiredTime = 1 * 60 * 1000
	deathAssistCount = 19
	maxDeathRecords = 5

	-- Guilds
	ingameGuildManagement = false
	levelToFormGuild = 8
	premiumDaysToFormGuild = 0
	guildNameMinLength = 3
	guildNameMaxLength = 18

	-- Highscores
	highscoreDisplayPlayers = 15
	updateHighscoresAfterMinutes = 60

	-- Houses
	buyableAndSellableHouses = true
	houseNeedPremium = true
	bedsRequirePremium = true
	levelToBuyHouse = 8
	housesPerAccount = 1
	houseRentAsPrice = false
	housePriceAsRent = true
	housePriceEachSquare = 1000
	houseRentPeriod = "monthly"
	houseCleanOld = 0
	guildHalls = false

	-- Item usage
	timeBetweenActions = 200
	timeBetweenExActions = 1000
	hotkeyAimbotEnabled = true

	-- Map
	mapName = ""
	mapAuthor = ""
	randomizeTiles = true
	storeTrash = true
	cleanProtectedZones = true
	mailboxDisabledTowns = ""

	-- Process
	defaultPriority = "high"
	niceLevel = 5
	coresUsed = "-1"

	-- Startup
	startupDatabaseOptimization = true
	updatePremiumStateAtStartup = true
	confirmOutdatedVersion = false

	-- Spells
	formulaLevel = 5.0
	formulaMagic = 1.0
	bufferMutedOnSpellFailure = false
	spellNameInsteadOfWords = false
	emoteSpells = false

	-- Outfits
	allowChangeOutfit = true
	allowChangeColors = true
	allowChangeAddons = true
	disableOutfitsForPrivilegedPlayers = false
	addonsOnlyPremium = true

	-- Miscellaneous
	dataDirectory = "data/"
	bankSystem = true
	displaySkillLevelOnAdvance = false
	promptExceptionTracerErrorBox = true
	maximumDoorLevel = 500
	maxMessageBuffer = 4

	-- VIP list
	separateVipListPerCharacter = false
	vipListDefaultLimit = 20
	vipListDefaultPremiumLimit = 100

	-- Saving-related
	saveGlobalStorage = false
	useHouseDataStorage = false
	storePlayerDirection = false

	-- Loot
	checkCorpseOwner = true
	monsterLootMessage = 3
	monsterLootMessageType = 25

	-- Ghost mode
	ghostModeInvisibleEffect = false
	ghostModeSpellEffects = true

	-- Limits
	idleWarningTime = 14 * 60 * 1000
	idleKickTime = 15 * 60 * 1000
	reportsExpirationAfterReads = 1
	playerQueryDeepness = 2
	maxItemsPerPZTile = 0
	maxItemsPerHouseTile = 0

	-- Premium-related
	freePremium = true
	premiumForPromotion = true

	-- Blessings
	blessings = true
	blessingOnlyPremium = true
	blessingReductionBase = 30
	blessingReductionDecrement = 5
	eachBlessReduction = 8

	-- Rates
	experienceStages = true
	rateExperience = 100.0
	rateExperienceFromPlayers = 0
	rateSkill = 10.0
	rateMagic = 5.0
	rateLoot = 2.0
	rateSpawn = 1

	-- Monster rates
	rateMonsterHealth = 1.0
	rateMonsterMana = 1.0
	rateMonsterAttack = 1.0
	rateMonsterDefense = 1.0

	-- Experience from players
	minLevelThresholdForKilledPlayer = 0.9
	maxLevelThresholdForKilledPlayer = 1.1

	-- Stamina
	rateStaminaLoss = 1
	rateStaminaGain = 3
	rateStaminaThresholdGain = 12
	staminaRatingLimitTop = 40 * 60
	staminaRatingLimitBottom = 14 * 60
	staminaLootLimit = 14 * 60
	rateStaminaAboveNormal = 1.5
	rateStaminaUnderNormal = 0.5
	staminaThresholdOnlyPremium = true

	-- Party
	experienceShareRadiusX = 30
	experienceShareRadiusY = 30
	experienceShareRadiusZ = 1
	experienceShareLevelDifference = 2 / 3
	extraPartyExperienceLimit = 20
	extraPartyExperiencePercent = 5
	experienceShareActivity = 2 * 60 * 1000

	-- Global save
	globalSaveEnabled = true
	globalSaveHour = 1
	globalSaveMinute = 0
	shutdownAtGlobalSave = true
	cleanMapAtGlobalSave = false

	-- Spawns
	deSpawnRange = 2
	deSpawnRadius = 50

	-- Summons
	maxPlayerSummons = 2
	teleportAllSummons = false
	teleportPlayerSummons = false

	-- Status
	statusPort = 7171
	ownerName = ""
	ownerEmail = "@otland.net"
	url = "http://otland.net/"
	location = "Germany"
	displayGamemastersWithOnlineCommand = false

	-- Logs
	displayPlayersLogging = false
	prefixChannelLogs = ""
	runFile = ""
	outputLog = ""
	truncateLogsOnStartup = false

	-- Manager
	managerPort = 7171
	managerLogs = true
	managerPassword = ""
	managerLocalhostOnly = true
	managerConnectionsLimit = 1

	-- Admin
	adminPort = 7171
	adminLogs = true
	adminPassword = ""
	adminLocalhostOnly = true
	adminConnectionsLimit = 1
	adminRequireLogin = true
	adminEncryption = ""
	adminEncryptionData = ""
 
Couldnt find an error out there, sorry.
Well try doing what I said, It shud of work since I do it.
 
Back
Top