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

REPORT ALL 0.2 BUGS HERE (latest 0.2 svn)!

Status
Not open for further replies.
Fast attack does not work anymore with TFS 697 Tags. I compiled with no server protection and console... it works fine just cant do fast attack no matter what i put attack speed in XML vocations file at.

ANy help?
 
error in forgottenserver.sql

Error

consulta SQL:

DELIMITER | CREATE TRIGGER `ondelete_accounts` BEFORE DELETE ON `accounts` FOR EACH ROW BEGIN DELETE FROM `bans` WHERE `account` = OLD.`id` ;

MySQL ha dicho: Documentación
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER |

CREATE TRIGGER `ondelete_accounts`
BEFORE DELETE
ON `accounts`
' at line 1
 
#Up
Are you using Webserv? If YES than change WebServ to XAMPP ;).

nope, i'm using XAMPP =(
help plz


EDIT:
lol, i was have xampp version 1.5.5 of 2006 =P
now i'm dowloading the lasted version thx

PD:sorry for my english
 
Last edited:
The server save is on hours change it to minutes and a bug.. when i close a door i cant open it.. and when i attack with ammonation its come onuseammo - Ammo: 4
 
I using rev. 693.
Now, Server doesn't start if lastMotd.txt have a text.
I see your modification in source(693):
In line 4275, game.cpp
Code:
fscanf(file, "%d\n%s", &lastMotdNum, lastMotdText.c_str());
but server still doesn't start if lastMotd.txt have a text.

@EDIT:
version 0.2.10rc working fine.

I cannot reproduce it:
Code:
talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt
51733
Welcome to the Forgotten Server!
talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$ ./TheForgottenServer
The Forgotten Server - Version 0.2rc11 (Mystic Spirit).
A server developed by Talaturen, Kiper, Kornholijo, Jonern, Lithium & slawkens.
Visit our forum for updates, support and resources: http://otland.net/.

>> Loading config
>> Loading RSA key
>> Testing SQL connection... MySQL.
>> Loading bans
>> Loading vocations
>> Loading commands
>> Loading items
>> Loading script systems
>> Loading monsters
>> Loading quests
>> Loading outfits
>> Loading admin protocol config
>> Loading experience stages
>> Using SHA1 passwords
>> Checking world type... PVP
>> Loading map
> Map size: 30000x30000.
> Map loading time: 0.016 seconds.
>> Loading raids
>> All modules has been loaded, server starting up...
>> Forgotten Server Online!


talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt
51733
Welcome to the Forgotten Server!
talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$

My previous try that you can see above was with Debian Etch (4.0) x86_64 (amd64 arch) and linux kernel: 2.6.18-6-amd64, it didn't crash.

My new attempt with Ubuntu Hardy Heron (8.04) x86 (i686 arch) and linux kernel: 2.6.24-15-generic:
Code:
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt 
1
Welcome to the Forgotten Server!
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$ ./TheForgottenServer 
The Forgotten Server - Version 0.2rc11 (Mystic Spirit).
A server developed by Talaturen, Kiper, Kornholijo, Jonern, Lithium & slawkens.
Visit our forum for updates, support and resources: http://otland.net/.

>> Loading config
>> Loading RSA key
>> Testing SQL connection... SqLite.
>> Loading bans
>> Loading vocations
>> Loading commands
>> Loading items
>> Loading script systems
>> Loading monsters
>> Loading quests
>> Loading outfits
>> Loading admin protocol config
>> Loading experience stages
>> Checking world type... PVP
>> Loading map
> Map size: 1000x1000.
> Map loading time: 0.828 seconds.
>> Loading raids
>> All modules has been loaded, server starting up...
>> Forgotten Server Online!


talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt 
1
Welcome to the Forgotten Server!
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$

This was tested with the latest subversion revision.
 
where the new version will be released? need to change to 8.11 protocol now too..
 
It has to be used like this:
local text = "hello"
local array = {"hi", "hello", "greetings"}
if isInArray(array, text) == TRUE then
-- code here.
end
 
So why isSorcerer/isKnight/isPaladin/isDruid/door system don't working? I think it accept only first value from array ;/
 
Last edited:
@up

Post here a part of the script, so we can see if you are doing anything wrong.

@topic

Deletion (when the player reach 4 warnings) ins't working, the player is unbanned after the ban period.

I know that auto-deletion isn't very good, but you can make it a permanently ban.

Also the permanently ban option (on the gui) crash the server :S
 
Last edited:
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[itemEx.itemid] ~= nil then
					doTransformItem(itemEx.uid, doors[itemEx.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 doorCreature.itemid ~= 0 then
			if getTilePzInfo(doorPosition) == TRUE and getTilePzInfo(newPosition) == FALSE and doorCreature.uid ~= cid then
				doPlayerSendCancel(cid, "Sorry, not possible.")
				return TRUE
			else
				doTeleportThing(doorCreature.uid, newPosition, TRUE)
			end
		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 doorCreature.itemid ~= 0 then
			if getTilePzInfo(doorPosition) == TRUE and getTilePzInfo(newPosition) == FALSE and doorCreature.uid ~= cid then
				doPlayerSendCancel(cid, "Sorry, not possible.")
				return TRUE
			else
				doTeleportThing(doorCreature.uid, newPosition, TRUE)
			end
		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
that's doors.lua
Also
Code:
function isKnight(cid)
	if(isPlayer(cid) == FALSE) then
		debugPrint("isKnight: Player not found.")
		return false
	end

	return (isInArray({4,8}, getPlayerVocation(cid)) == TRUE)
end
return true only for vocation no.4 etc.
 
Last edited:
Maybe:
Code:
return (isInArray({4,8}, getPlayerVocation(cid)) == TRUE)
to
Code:
return (isInArray({4,8}, getPlayerVocation(cid)))
 
There is a bug when a player log using a ring.

[12/04/2008 23:13:41] Failed to unserialize attr_type: 16 for item: 2168
[12/04/2008 23:13:41] WARNING: Serialize error in IOLoginData::loadItems

The id "2168" is the id of a life ring, all rings have this bug
 
Got this crash report any ideas what may have caused it?

#0 0x0814a9a4 in ProtocolGame::sendCreatureInvisible ()
#1 0x080aa7f9 in Game::internalCreatureChangeVisible ()
#2 0x08085b9f in ConditionInvisible::startCondition ()
#3 0x08062017 in Creature::addCondition ()
#4 0x0806208b in Creature::addCombatCondition ()
#5 0x080762e2 in Combat::CombatConditionFunc ()
#6 0x08076326 in Combat::CombatNullFunc ()
#7 0x08078367 in Combat::doCombatDefault ()
#8 0x080787c8 in Combat::doCombat ()
#9 0x08178807 in CombatSpell::castSpell ()
#10 0x081141c7 in Monster::eek:nThinkDefense ()
#11 0x081144ac in Monster::eek:nThink ()
#12 0x080a69cd in Game::checkCreature ()
#13 0x08065c24 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf1<void, Game, unsigned int>, boost::_bi::list2<boost::_bi::value<Game*>, boost::_bi::value<unsigned int> > >, void>::invoke ()
#14 0x0817dad6 in boost::function0<void, std::allocator<void> >::eek:perator() ()
#15 0x0817d84d in Dispatcher::dispatcherThread ()
#16 0xb7dfd240 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#17 0xb792049e in clone () from /lib/tls/i686/cmov/libc.so.6
 
Last edited:
Status
Not open for further replies.
Back
Top