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

The Forgotten Server v0.2 (Mystic Spirit)

Status
Not open for further replies.
@thiagoserv
You will get a Debug if you connect with Client 8.22
The newest version of TFS 0.2 is for Client 8.3(1)
 
Like, people are shooting through walls.

Looks like there will be a 19th patch then, I've also addressed an issue where you would lose item charges everytime you got hit, even if the item didn't absorb any damage.
 
I don't know since when it's like that - but lately players report that when they're kicked out of the game they just can't log in back. It says "You are already logged in" and it wasn't a single report. They have to wait until they're automatically kicked after idle time has passed.
 
Im have got a question about update 18, there work a buying in container,in npc window?

well u can do it by yourself go to ur global.lua replace ur function doPlayerBuyItemContainer and script by this script
Code:
function doPlayerBuyItemContainer(cid, container, itemid, count, cost, charges)
	if doPlayerRemoveMoney(cid, cost) == TRUE then
		for i = 1, count do
			local containerItem = doCreateItemEx(container, 1)
			for x = 1, getContainerCap(containerItem) do
				doAddContainerItem(containerItem, itemid, charges)
			end
			doPlayerAddItemEx(cid, containerItem, 1)
		end
		return LUA_NO_ERROR
	end
	return LUA_ERROR
end
 
well u can do it by yourself go to ur global.lua replace ur function doPlayerBuyItemContainer and script by this script
Code:
function doPlayerBuyItemContainer(cid, container, itemid, count, cost, charges)
	if doPlayerRemoveMoney(cid, cost) == TRUE then
		for i = 1, count do
			local containerItem = doCreateItemEx(container, 1)
			for x = 1, getContainerCap(containerItem) do
				doAddContainerItem(containerItem, itemid, charges)
			end
			doPlayerAddItemEx(cid, containerItem, 1)
		end
		return LUA_NO_ERROR
	end
	return LUA_ERROR
end

Are you sure that getContainerCap returns a proper value when container is virtually created?
 
Talaturen what about this:
More than 100 listen errors.

Or can you add this code that elf post:

Open server.cpp and replace at line 98:
Code:
			if(m_listenErrors < 100)
				openListenSocket();
			else
				std::cout << "Error: [Server::onAccept] More than 100 listen errors." << std::endl;
with:
Code:
			#ifndef __IGNORE_LISTEN_ERROR__
			if(m_listenErrors < 100)
			#endif
				openListenSocket();
			#ifndef __IGNORE_LISTEN_ERROR__
			else
				std::cout << "Error: [Server::onAccept] More than 100 listen errors." << std::endl;
			#else
			std::cout << "Warning: [Server::onAccept] More than 100 listen errors." << std::endl;
			#endif
Save and close.

Recompile the server with -D__IGNORE_LISTEN_ERROR__ compiler flag.
 
I don't know since when it's like that - but lately players report that when they're kicked out of the game they just can't log in back. It says "You are already logged in" and it wasn't a single report. They have to wait until they're automatically kicked after idle time has passed.

You have reason too. It is another bug.
 
hi there great server you have, i have a problem every time someone logs out of the server they get debug. i hope you can solve this problem.

nerver mind already solved it.
 
Last edited:
bug in the arena , using the mapeditor pra to place pvp zone, when player dies and is teleported to temple, if it to leave and will be died for a monster, char killed it to in the arena catches injust
 
;//

tibia client 8.22 dbug and my npcs don't work

example:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg)
-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
if(npcHandler.focus ~= cid) then
return false
end

addon_need_premium = 'Sorry, you need a premium account to get addons.'
addon_have_already = 'Sorry, you already have this addon.'
addon_have_not_items = 'Sorry, you don\'t have these items.'
addon_give = 'Here you are.'
player_gold = getPlayerItemCount(cid,2148)
player_plat = getPlayerItemCount(cid,2152)*100
player_crys = getPlayerItemCount(cid,2160)*10000
player_money = player_gold + player_plat + player_crys

if msgcontains(msg, 'addons') then
selfSay('I can give you Citizen, Hunter, Knight, Mage, Nobleman, Summoner, Warrior, Barbarian, Druid, Wizard, Oriental, Pirate, Assassin, Beggar, Shaman, Norseman, Nighmare, Jester and Brotherhood addons.')
elseif msgcontains(msg, 'help') then
selfSay('To buy the first addon say \'first NAME addon\', for the second addon say \'second NAME addon\'.')
------------------------------------------------ addon ------------------------------------------------
elseif msgcontains(msg, 'first citizen addon') then
if isPremium(cid) then
if getPlayerItemCount(cid,5878) >= 100 then
selfSay('Did you bring me 100 minotaur leathers?')
talk_state = 1
else
selfSay('I need 100 minotaur leather, to give you the first citizen addon. Come back when you have them.')
talk_state = 0
end
else
selfSay(addon_need_premium)
talk_state = 0
end
.
.
.
.
.

;/
 
Status
Not open for further replies.
Back
Top