• 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.41/42] The Forgotten Server 0.3.4PL2 (Crying Damson)

Status
Not open for further replies.
What Should I upgrade?
the scheme would. exe version 0.3.3 and I get a message that there is an update
which is what I do?
download this new server and copy it. exe 0.3.4?
or hurts
 
Now I dunno what to do. I have forwarded ports 7171 and 7172 on my router and only I can log in. But when I am launching TFS 0.3.2 it's all goes back to normal :f
 
bug with function and script

PHP:
function comparePos(pos1,pos2)
    return pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z
end

for this script

PHP:
-- Script 100% by Colandus (Except for the exhaustion system).
-- If you edit this script, make sure to leave the credits to me, Colandus.

-- >>CONFIG<< --
local REMOVE_CHARGES = true -- true/false shall it remove charges?
local MIN_MANA = 300 -- How much mana minium will you get?
local MAX_MANA = 370 -- How much mana max will you get?
local USE_STATS = false -- Shall given mana be affected by player level and magic level?
local STORE_VALUE = 3567 -- Value where exhaust is saved.
local EXHAUST_TIME = 1 -- Exhaust time in seconds.
local ANIMATION_COLOR = 190 -- The color of the "animation".
-- >>CONFIG<< --

local vocMultiply = {0.35, 0.35, 0.85, 1.05, 0, 0, 0.65, 1.05} -- Remove and/or comment it out if you wish not to use it.
local removeMana = 0

function onUse(cid, item, frompos, item2, topos)
    if isPlayer(item2.uid) == 1 then
        local maxMana = getPlayerMaxMana(item2.uid)
        if vocMultiply and getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 8 then
            removeMana = vocMultiply[getPlayerVocation(cid)]
        end
        local newMana = math.random(MIN_MANA, MAX_MANA)
        if USE_STATS then
            newMana = math.ceil(newMana + getPlayerLevel(cid) + getPlayerMagLevel(cid) - (newMana * removeMana))
        end
        if (maxMana - newMana) < 0 then
            newMana = maxMana - getPlayerMana(cid)
        end
	if((not(isSorcerer(item2.uid) or isDruid(item2.uid)) or getPlayerLevel(item2.uid) < 80) and getPlayerCustomFlagValue(item2.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(item2.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1)
		return TRUE
	end
        if getPlayerMana(item2.uid) < maxMana then
            if exhaust(cid, STORE_VALUE, EXHAUST_TIME) > 0 then
                if REMOVE_CHARGES then
                    if item.type > 1 then
                        doChangeTypeItem(item.uid, item.type - 1)
                    else
                        doRemoveItem(item.uid, 1)
                    end
                end
                if comparePos(getPlayerPosition(cid), getPlayerPosition(item2.uid)) then
                    doSendMagicEffect(getPlayerPosition(cid), 12)
                    doPlayerSendTextMessage(cid, 23, "You received " .. newMana .. " mana.")
                else
                    doSendMagicEffect(getPlayerPosition(cid), 14)
                    doSendMagicEffect(getPlayerPosition(item2.uid), 12)
                    doPlayerSendTextMessage(item2.uid, 23, "You received " ..  newMana .. " mana from " .. getPlayerName(cid) .. ".")
                    doPlayerSendTextMessage(cid, 23, "You gave " .. getPlayerName(item2.uid) .. " " .. newMana .. " mana.")
                end
                doPlayerAddMana(item2.uid, newMana)
                doSendAnimatedText(getPlayerPosition(item2.uid), newMana, ANIMATION_COLOR)
            else
                doPlayerSendCancel(cid, "You are exhausted.")
            end
        else
            if comparePos(getPlayerPosition(cid), getPlayerPosition(item2.uid)) then
                doPlayerSendCancel(item2.uid, "Your mana is already full.")
            else
                doPlayerSendCancel(cid, getPlayerName(item2.uid) .. " mana is already full.")
            end
            doSendMagicEffect(getPlayerPosition(cid), 2)
        end
    else
        doPlayerSendCancel(cid, "You can only use this fluid on players.")
        doSendMagicEffect(getPlayerPosition(cid), 2)
    end
    return 1
end

It was working perfect on tfs 0.3.3 but on tfs 0.3.4 is keep saying
You can only use this fluid on players.
 
Last edited:
The gui version crashes with mr before it starts loading data.
 
Now I dunno what to do. I have forwarded ports 7171 and 7172 on my router and only I can log in. But when I am launching TFS 0.3.2 it's all goes back to normal :f

Same prob here but Its not prob with router, its something with configuration of tfs for sure.... Just can't get whats wrong
 
bug :s

17:39 Using one of 928 mana potions...
17:39 Using one of 927 mana potions...
17:39 Using one of 927 mana potions...
17:39 Using one of 927 mana potions...
17:39 Using one of 926 mana potions...
 
bug with function and script

PHP:
function comparePos(pos1,pos2)
    return pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z
end

script

PHP:
-- Script 100% by Colandus (Except for the exhaustion system).
-- If you edit this script, make sure to leave the credits to me, Colandus.

-- >>CONFIG<< --
local REMOVE_CHARGES = true -- true/false shall it remove charges?
local MIN_MANA = 300 -- How much mana minium will you get?
local MAX_MANA = 370 -- How much mana max will you get?
local USE_STATS = false -- Shall given mana be affected by player level and magic level?
local STORE_VALUE = 3567 -- Value where exhaust is saved.
local EXHAUST_TIME = 1 -- Exhaust time in seconds.
local ANIMATION_COLOR = 190 -- The color of the "animation".
-- >>CONFIG<< --

local vocMultiply = {0.35, 0.35, 0.85, 1.05, 0, 0, 0.65, 1.05} -- Remove and/or comment it out if you wish not to use it.
local removeMana = 0

function onUse(cid, item, frompos, item2, topos)
    if isPlayer(item2.uid) == 1 then
        local maxMana = getPlayerMaxMana(item2.uid)
        if vocMultiply and getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 8 then
            removeMana = vocMultiply[getPlayerVocation(cid)]
        end
        local newMana = math.random(MIN_MANA, MAX_MANA)
        if USE_STATS then
            newMana = math.ceil(newMana + getPlayerLevel(cid) + getPlayerMagLevel(cid) - (newMana * removeMana))
        end
        if (maxMana - newMana) < 0 then
            newMana = maxMana - getPlayerMana(cid)
        end
	if((not(isSorcerer(item2.uid) or isDruid(item2.uid)) or getPlayerLevel(item2.uid) < 80) and getPlayerCustomFlagValue(item2.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(item2.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1)
		return TRUE
	end
        if getPlayerMana(item2.uid) < maxMana then
            if exhaust(cid, STORE_VALUE, EXHAUST_TIME) > 0 then
                if REMOVE_CHARGES then
                    if item.type > 1 then
                        doChangeTypeItem(item.uid, item.type - 1)
                    else
                        doRemoveItem(item.uid, 1)
                    end
                end
                if comparePos(getPlayerPosition(cid), getPlayerPosition(item2.uid)) then
                    doSendMagicEffect(getPlayerPosition(cid), 12)
                    doPlayerSendTextMessage(cid, 23, "You received " .. newMana .. " mana.")
                else
                    doSendMagicEffect(getPlayerPosition(cid), 14)
                    doSendMagicEffect(getPlayerPosition(item2.uid), 12)
                    doPlayerSendTextMessage(item2.uid, 23, "You received " ..  newMana .. " mana from " .. getPlayerName(cid) .. ".")
                    doPlayerSendTextMessage(cid, 23, "You gave " .. getPlayerName(item2.uid) .. " " .. newMana .. " mana.")
                end
                doPlayerAddMana(item2.uid, newMana)
                doSendAnimatedText(getPlayerPosition(item2.uid), newMana, ANIMATION_COLOR)
            else
                doPlayerSendCancel(cid, "You are exhausted.")
            end
        else
            if comparePos(getPlayerPosition(cid), getPlayerPosition(item2.uid)) then
                doPlayerSendCancel(item2.uid, "Your mana is already full.")
            else
                doPlayerSendCancel(cid, getPlayerName(item2.uid) .. " mana is already full.")
            end
            doSendMagicEffect(getPlayerPosition(cid), 2)
        end
    else
        doPlayerSendCancel(cid, "You can only use this fluid on players.")
        doSendMagicEffect(getPlayerPosition(cid), 2)
    end
    return 1
end

It was working perfect on tfs 0.3.3 but on tfs 0.3.4 is keep saying
You can only use this fluid on players.
 
bug with function and script

PHP:
function comparePos(pos1,pos2)
    return pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z
end

script

PHP:
-- Script 100% by Colandus (Except for the exhaustion system).
-- If you edit this script, make sure to leave the credits to me, Colandus.

-- >>CONFIG<< --
local REMOVE_CHARGES = true -- true/false shall it remove charges?
local MIN_MANA = 300 -- How much mana minium will you get?
local MAX_MANA = 370 -- How much mana max will you get?
local USE_STATS = false -- Shall given mana be affected by player level and magic level?
local STORE_VALUE = 3567 -- Value where exhaust is saved.
local EXHAUST_TIME = 1 -- Exhaust time in seconds.
local ANIMATION_COLOR = 190 -- The color of the "animation".
-- >>CONFIG<< --

local vocMultiply = {0.35, 0.35, 0.85, 1.05, 0, 0, 0.65, 1.05} -- Remove and/or comment it out if you wish not to use it.
local removeMana = 0

function onUse(cid, item, frompos, item2, topos)
    if isPlayer(item2.uid) == 1 then
        local maxMana = getPlayerMaxMana(item2.uid)
        if vocMultiply and getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 8 then
            removeMana = vocMultiply[getPlayerVocation(cid)]
        end
        local newMana = math.random(MIN_MANA, MAX_MANA)
        if USE_STATS then
            newMana = math.ceil(newMana + getPlayerLevel(cid) + getPlayerMagLevel(cid) - (newMana * removeMana))
        end
        if (maxMana - newMana) < 0 then
            newMana = maxMana - getPlayerMana(cid)
        end
	if((not(isSorcerer(item2.uid) or isDruid(item2.uid)) or getPlayerLevel(item2.uid) < 80) and getPlayerCustomFlagValue(item2.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
		doCreatureSay(item2.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1)
		return TRUE
	end
        if getPlayerMana(item2.uid) < maxMana then
            if exhaust(cid, STORE_VALUE, EXHAUST_TIME) > 0 then
                if REMOVE_CHARGES then
                    if item.type > 1 then
                        doChangeTypeItem(item.uid, item.type - 1)
                    else
                        doRemoveItem(item.uid, 1)
                    end
                end
                if comparePos(getPlayerPosition(cid), getPlayerPosition(item2.uid)) then
                    doSendMagicEffect(getPlayerPosition(cid), 12)
                    doPlayerSendTextMessage(cid, 23, "You received " .. newMana .. " mana.")
                else
                    doSendMagicEffect(getPlayerPosition(cid), 14)
                    doSendMagicEffect(getPlayerPosition(item2.uid), 12)
                    doPlayerSendTextMessage(item2.uid, 23, "You received " ..  newMana .. " mana from " .. getPlayerName(cid) .. ".")
                    doPlayerSendTextMessage(cid, 23, "You gave " .. getPlayerName(item2.uid) .. " " .. newMana .. " mana.")
                end
                doPlayerAddMana(item2.uid, newMana)
                doSendAnimatedText(getPlayerPosition(item2.uid), newMana, ANIMATION_COLOR)
            else
                doPlayerSendCancel(cid, "You are exhausted.")
            end
        else
            if comparePos(getPlayerPosition(cid), getPlayerPosition(item2.uid)) then
                doPlayerSendCancel(item2.uid, "Your mana is already full.")
            else
                doPlayerSendCancel(cid, getPlayerName(item2.uid) .. " mana is already full.")
            end
            doSendMagicEffect(getPlayerPosition(cid), 2)
        end
    else
        doPlayerSendCancel(cid, "You can only use this fluid on players.")
        doSendMagicEffect(getPlayerPosition(cid), 2)
    end
    return 1
end

It was working perfect on tfs 0.3.3 but on tfs 0.3.4 is keep saying

All LUA functions are returning now booleans (true/false)

So all bad written scripts (These which are not using TRUE/FALSE/LUA_ERROR/LUA_NO_ERROR) will not work.

The reason why your script is not working is probably there:
Code:
if isPlayer(item2.uid) == 1 then

Change it to:
Code:
if isPlayer(item2.uid) == TRUE then
 
Do bug be with postage (harbor) in this version in (to) 0.3.3 so as?:wub:
 
Do bug be with postage (harbor) in this version in (to) 0.3.3 so as? czy w tej wersji jest bug z portem tak jak w 0.3.3 ?
 
thanks elf and tfs team for your great and hard work. waiting for a better version and bug fixes, waiting for next update :)
 
Code:
Compiler: Default compiler
Building Makefile: "C:\Users\Adrian\Desktop\0.3.4\dev-cpp\Makefile.win"
Executing  make...
make.exe -f "C:\Users\Adrian\Desktop\0.3.4\dev-cpp\Makefile.win" all
g++.exe -c ../exception.cpp -o obj-console-debug//exception.o  -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__CONSOLE__ -D__EXCEPTION_TRACER__   -fexpensive-optimizations -O1

In file included from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:50,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/winsock2.h:22,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/detail/socket_types.hpp:79,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/detail/win_iocp_io_service_fwd.hpp:24,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/io_service.hpp:37,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/basic_io_object.hpp:20,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/basic_socket.hpp:24,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio/basic_datagram_socket.hpp:25,
                 from D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/boost/asio.hpp:20,
                 from ../otsystem.h:35,
                 from ../luascript.h:24,
                 from ../configmanager.h:25,
                 from ../exception.cpp:29:
D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1130: error: `PVECTORED_EXCEPTION_HANDLER' has not been declared

D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1634: error: `HEAP_INFORMATION_CLASS' has not been declared

D:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbase.h:1638: error: `HEAP_INFORMATION_CLASS' has not been declared

make.exe: *** [obj-console-debug//exception.o] Error 1

Execution terminated

I got this error when I try to compile TFS console debug.
 
Status
Not open for further replies.
Back
Top