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

[8.4] The Forgotten Server v0.3 beta 3

Status
Not open for further replies.
I have some questions..
-What does mean a BETA version?.. thats mean like a trial version?
-Why The Forgotten Server v0.3 is a beta version? why cant be like tfs v0.2 that isnt a beta version, just have patchs..?

Because its testing version..................... first are alpha versions next beta and finally official release. They can't check and test all by themselfs that's why they are realaing all this "tests" versions, as u can see many members are raporting errors ;)
 
Maybe you have put yalahar map to map not converted to 8.4?
 
I have one knight level 285 if I go drink one ultimate health potion I get the message "only knight of level 130 or more..."

Knight:
Level: 285
Vocation: 4
Promotion: 2


If I look I see this character that he is an epic elite knight and suggested the Elf I upgraded everything in fact I swapped all the files just left my database and my map but still not working

This is the lasted script of potions in TFS
local MIN = 700
local MAX = 800
local EMPTY_POTION = 7635

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end

if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end

if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only knights of level 130 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end

if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end

doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end
 
Take this one.

PHP:
local MIN = 700
local MAX = 800
local EMPTY_POTION = 7635

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end

if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end

if((not(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) >= 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only knights of level 130 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end

if doCreatureAddHealth(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end

doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
return TRUE
end

Lol you used < instead of >= also if you was lower than 130 then you can use it..
but now fixed.
 
Both are 8.4 -.- im not stupid and try import 8.31 map to 8.4

ye
i tried both make 8.31 and 8.40 this suxs ffs ... also i dont get any answer's like figaro :S


Server running when i remove yalahar :S
 
Yo am here again. Could anyone tell me what's wrong in here?

PHP:
[22/01/2009 18:54:28] Lua Script Error: [MoveEvents Interface] 
[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:onStepIn

[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:11: attempt to perform arithmetic on global 'Total_Damage' (a nil value)
[22/01/2009 18:54:28] stack traceback:
[22/01/2009 18:54:28] 	data/movements/scripts/FerumbrasEntrance1.lua:11: in function <data/movements/scripts/FerumbrasEntrance1.lua:1>

my FerumbrasEntrance1.lua
Code:
function onStepIn(cid, item, pos)
	APPLE_ID = 2674
	ACTION_ID = 10101 -- Actionid of the tile that teleport you if you have an apple
	if (item.actionid == 10101) then
		Dmg_Random = math.random(100,500)
		if (getPlayerItemCount(cid, 2674) ~= 0) then
			doTeleportThing(cid, {x=1052, y=749, z=7})
			doPlayerRemoveItem(cid, 2674 ,0)
		else
			doTeleportThing(cid, {x=1052, y=745, z=7})
			doCreatureAddHealth(cid, -Total_Damage)
			doSendAnimatedText(pos, Total_Damage, 186)
		end
		if getCreatureHealth(cid) < Dmg_Random then
			Total_Damage = getPlayerHealth(cid)
		else
			Total_Damage = Dmg_Random
		end
	end
end


PHP:
[22/01/2009 18:46:05] Lua Script Error: [MoveEvents Interface] 
[22/01/2009 18:46:05] data/movements/scripts/swimming/west.lua:onStepIn

[22/01/2009 18:46:05] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value)
[22/01/2009 18:46:05] stack traceback:
[22/01/2009 18:46:05] 	data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10>
[22/01/2009 18:46:05] 	(tail call): ?

[22/01/2009 18:46:10] Lua Script Error: [MoveEvents Interface] 
[22/01/2009 18:46:10] data/movements/scripts/swimming/south.lua:onStepIn

[22/01/2009 18:46:10] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value)
[22/01/2009 18:46:10] stack traceback:
[22/01/2009 18:46:10] 	data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10>
[22/01/2009 18:46:10] 	(tail call): ?

my west.lua
Code:
dofile('data/movements/scripts/swimming/swimlib.lua')

function onStepIn(cid, item, pos)
	return checkSwim(cid, WEST, EAST)
end

my south.lua
Code:
dofile('data/movements/scripts/swimming/swimlib.lua')

function onStepIn(cid, item, pos)
	return checkSwim(cid, SOUTH, NORTH)
end

my swimlib.lua
Code:
local conditions =
{
	CONDITION_POISON, CONDITION_FIRE, CONDITION_ENERGY,
	CONDITION_PARALYZE, CONDITION_DRUNK, CONDITION_DROWN,
	CONDITION_FREEZING, CONDITION_DAZZLED, CONDITION_CURSED
}

local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

function checkSwim(cid, swimDir, backDir)
	local posNow = getThingPos(cid)

	if(hasCondition(cid, CONDITION_OUTFIT) == TRUE and getCreatureOutfit(cid).lookType == outfit.lookType) then
		doMoveCreature(cid, backDir)
		doRemoveCondition(cid, CONDITION_OUTFIT)
	else
		if(queryTileAddThing(cid, getPosByDir(posNow, swimDir), 4) ~= RETURNVALUE_NOERROR) then
			return FALSE
		end

		-- Remove all bad conditions before swimming
		for i, v in ipairs(conditions) do
			if(hasCondition(cid, v) == TRUE) then
				doRemoveCondition(cid, v)
			end
		end

		doMoveCreature(cid, swimDir)
		doSetCreatureOutfit(cid, outfit, -1)
		doSendMagicEffect(getThingPos(cid), CONST_ME_WATERSPLASH)
	end
	return TRUE
end
 
Yo am here again. Could anyone tell me what's wrong in here?

PHP:
[22/01/2009 18:54:28] Lua Script Error: [MoveEvents Interface] 
[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:onStepIn

[22/01/2009 18:54:28] data/movements/scripts/FerumbrasEntrance1.lua:11: attempt to perform arithmetic on global 'Total_Damage' (a nil value)
[22/01/2009 18:54:28] stack traceback:
[22/01/2009 18:54:28] 	data/movements/scripts/FerumbrasEntrance1.lua:11: in function <data/movements/scripts/FerumbrasEntrance1.lua:1>

my FerumbrasEntrance1.lua
Code:
function onStepIn(cid, item, pos)
	APPLE_ID = 2674
	ACTION_ID = 10101 -- Actionid of the tile that teleport you if you have an apple
	if (item.actionid == 10101) then
		Dmg_Random = math.random(100,500)
		if (getPlayerItemCount(cid, 2674) ~= 0) then
			doTeleportThing(cid, {x=1052, y=749, z=7})
			doPlayerRemoveItem(cid, 2674 ,0)
		else
			doTeleportThing(cid, {x=1052, y=745, z=7})
			doCreatureAddHealth(cid, -Total_Damage)
			doSendAnimatedText(pos, Total_Damage, 186)
		end
		if getCreatureHealth(cid) < Dmg_Random then
			Total_Damage = getPlayerHealth(cid)
		else
			Total_Damage = Dmg_Random
		end
	end
end


PHP:
[22/01/2009 18:46:05] Lua Script Error: [MoveEvents Interface] 
[22/01/2009 18:46:05] data/movements/scripts/swimming/west.lua:onStepIn

[22/01/2009 18:46:05] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value)
[22/01/2009 18:46:05] stack traceback:
[22/01/2009 18:46:05] 	data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10>
[22/01/2009 18:46:05] 	(tail call): ?

[22/01/2009 18:46:10] Lua Script Error: [MoveEvents Interface] 
[22/01/2009 18:46:10] data/movements/scripts/swimming/south.lua:onStepIn

[22/01/2009 18:46:10] data/movements/scripts/swimming/swimlib.lua:17: attempt to call global 'queryTileAddThing' (a nil value)
[22/01/2009 18:46:10] stack traceback:
[22/01/2009 18:46:10] 	data/movements/scripts/swimming/swimlib.lua:17: in function <data/movements/scripts/swimming/swimlib.lua:10>
[22/01/2009 18:46:10] 	(tail call): ?

my west.lua
Code:
dofile('data/movements/scripts/swimming/swimlib.lua')

function onStepIn(cid, item, pos)
	return checkSwim(cid, WEST, EAST)
end

my south.lua
Code:
dofile('data/movements/scripts/swimming/swimlib.lua')

function onStepIn(cid, item, pos)
	return checkSwim(cid, SOUTH, NORTH)
end

my swimlib.lua
Code:
local conditions =
{
	CONDITION_POISON, CONDITION_FIRE, CONDITION_ENERGY,
	CONDITION_PARALYZE, CONDITION_DRUNK, CONDITION_DROWN,
	CONDITION_FREEZING, CONDITION_DAZZLED, CONDITION_CURSED
}

local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

function checkSwim(cid, swimDir, backDir)
	local posNow = getThingPos(cid)

	if(hasCondition(cid, CONDITION_OUTFIT) == TRUE and getCreatureOutfit(cid).lookType == outfit.lookType) then
		doMoveCreature(cid, backDir)
		doRemoveCondition(cid, CONDITION_OUTFIT)
	else
		if(queryTileAddThing(cid, getPosByDir(posNow, swimDir), 4) ~= RETURNVALUE_NOERROR) then
			return FALSE
		end

		-- Remove all bad conditions before swimming
		for i, v in ipairs(conditions) do
			if(hasCondition(cid, v) == TRUE) then
				doRemoveCondition(cid, v)
			end
		end

		doMoveCreature(cid, swimDir)
		doSetCreatureOutfit(cid, outfit, -1)
		doSendMagicEffect(getThingPos(cid), CONST_ME_WATERSPLASH)
	end
	return TRUE
end
In the ferumbras entrance script, the error is because you didn't declared TOTAL_DAMAGE.

To fix the swimming script, at this to data\lib\compat.lua
Code:
queryTileAddThing = doTileQueryAdd
 
whowwww, nice, i rly love tfs ^^
Best server for me :D
<3
 
Anyone one can tell me if there are spells balanced like in rl? for example sd for palladin? or its still big dmg, same with healing of pall?
 
I think the Elf simplified the code, but for me and some people do not works. Then change the code and so far no crashes.

If you are using, please make a backup!


 

Attachments

Status
Not open for further replies.
Back
Top