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

TheForgottenServer v0.2rc7 (Moon Princess)

Status
Not open for further replies.
0.2.8 will be released sooner than you think it will (bug-fix release), but can you try this door script if it works?

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isInArray(questDoors, item.itemid) == TRUE then
		if getPlayerStorageValue(cid, item.actionid) ~= -1 then
			doTransformItem(item.uid, item.itemid + 1)
			doTeleportThing(cid, toPosition, TRUE)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.")
		end
		return TRUE
	elseif isInArray(levelDoors, item.itemid) == TRUE then
		if item.actionid > 0 and getPlayerLevel(cid) >= item.actionid - 1000 then
			doTransformItem(item.uid, item.itemid + 1)
			doTeleportThing(cid, toPosition, TRUE)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.")
		end
		return TRUE
	elseif isInArray(keys, item.itemid) == TRUE then
		if itemEx.actionid > 0 then
			if item.actionid == itemEx.actionid then
				if doors[item.itemd] ~= nil then
					doTransformItem(itemEx.uid, doors[item.itemid])
					return TRUE
				end
			end
			doPlayerSendCancel(cid, "The key does not match.")
			return TRUE
		end
		return FALSE
	elseif isInArray(horizontalOpenDoors, item.itemid) == TRUE then
		local newPosition = toPosition
		newPosition.y = newPosition.y + 1
		local doorPosition = fromPosition
		doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
		local doorCreature = getThingfromPos(doorPosition)
		if getTilePzInfo(doorPosition) == FALSE or getTilePzInfo(newPosition) == TRUE then
			if doorCreature.itemid ~= 0 then
				doTeleportThing(doorCreature.uid, newPosition, TRUE)
			end
		else
			doPlayerSendCancel(cid, "Sorry, not possible.")
		end
		doTransformItem(item.uid, item.itemid - 1)
		return TRUE
	elseif isInArray(verticalOpenDoors, item.itemid) == TRUE then
		local newPosition = toPosition
		newPosition.x = newPosition.x + 1
		local doorPosition = fromPosition
		doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
		local doorCreature = getThingfromPos(doorPosition)
		if getTilePzInfo(doorPosition) == FALSE or getTilePzInfo(newPosition) == TRUE then
			if doorCreature.itemid > 0 then
				doTeleportThing(doorCreature.uid, newPosition, TRUE)
			end
		else
			doPlayerSendCancel(cid, "Sorry, not possible.")
		end
		doTransformItem(item.uid, item.itemid - 1)
		return TRUE
	elseif doors[item.itemid] ~= nil then
		if item.actionid == 0 then
			doTransformItem(item.uid, doors[item.itemid])
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.")
		end
		return TRUE
	end
	return FALSE
end

The chat channel issue has already been fixed.

I testing it and it work properly.
 
It's users choice, if one was better than the other I would only upload one, but some prefer gui over console and others the opposite. Try both and I'm sure you'll see the difference.
 
other question

for update 0.26 to 0.27 i don't need change any in database structure?

sorry bad English ;(
 
I quess you don't need any changes in database, becouse nothink changed in saving ;) Only support to 8.1 and some bugs fixed.
 
Give more details so people know whats the problem ¬¬

Don't worry, his computer seems to **** everything up. Like in the 0.2.5, all his vocations could learn all spells.
 
No No, My Computer are Okay my Hoster^^

What can i do i not want ever the Warnings
 
Awesome, but what kind of bugs we do have if we conect in version 8.1
 
I can't help, if you don't respond.

I'm asking last time, have you copied map from another to your? (with house tiles)

Becouse it shows name "OTserv headquarter" - its basic name, used when are setted only house tiles- without house name, doors id etc.
 
I'm testing it now and what I found and I think that wasnt metioned is that there's level bug at 352. Although the fact that in database and in "Skills" window in game experience is rising, players cannot reach higher level as long as I dont give them level by addskill command (it's soulution just for 'one log in'. If player relog, I will have to add him next level to make him able to gain them by himself.)
 
On this update my bless npcs stop to work, he told that I already are blessed, but its not. What is wrong?
 
On this update my bless npcs stop to work, he told that I already are blessed, but its not. What is wrong?

Wait until 0.2.8 is released and try, hopefully today.
 
I know about it already, another issue that's being taken care of in 0.2.8.

EDIT:
Fixed

18:34 You advanced from Level 873 to Level 874.
18:34 You advanced from Level 874 to Level 875.
18:34 You advanced from Level 875 to Level 876.
18:34 You advanced from Level 876 to Level 877.
18:34 You advanced from Level 877 to Level 878.
18:34 You advanced from Level 878 to Level 879.
18:34 You advanced from Level 879 to Level 880.
18:34 You advanced from Level 880 to Level 881.
18:34 You advanced from Level 881 to Level 882.
18:34 You advanced from Level 882 to Level 883.
18:34 You advanced from Level 883 to Level 884.
18:34 You advanced from Level 884 to Level 885.
 
I am not compiling in Debian 4.0,

Error.:

g++ -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -D__NO_HOMEDIR_CONF__ -D__USE_MYSQL__ -Werror -O1 -c admin.cpp
In file included from admin.cpp:24:
connection.h:25:26: error: boost/asio.hpp: Arquivo ou diretório não encontrado
connection.h:59: error: expected â;â before â(â token

directori /boots ?? exists? no? fixeD!
 
Tala - It will be great if you could upload all of the source files together (ie. packed with RAR). I dunno if there is any possibility to download all of them at once from http://forgottenserver.svn.sourceforge.net/viewvc/forgottenserver/ so that why I'm asking.

Great job although bugs and respect for REALLY FAST fixes :) Keep doing, for sure, one of the best or even the best distro ;)
 
Status
Not open for further replies.
Back
Top