• 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.3 alpha 4

Status
Not open for further replies.
when you lohout also you get debug when this will be repair?;/
 
Fixed
frags.lua(talkactions/scripts)
Code:
local config = {
	fragTime = getConfigInfo('timeToDecreaseFrags'),
	fragToBan = getConfigInfo('killsToBan')
}


function onSay(cid, words, param)
	maxfrag = config.fragToBan
	local amount = getPlayerRedSkullTicks(cid)
	if(amount > 0 and config.fragTime > 0) then
		local frags = (amount / config.fragTime);
		frags = math.ceil(frags)
		local remainingTime = amount
		local hours = ((remainingTime / 1000) / 60) / 60;
		hours = math.floor(hours)
		local minutes = ((remainingTime / 1000) / 60) - (hours * 60);
		minutes = math.floor(minutes)
		text = ""
		if(frags == maxfrag-1) then
		 text = "Warning!!! You have " ..frags.. " unjustified frag" .. (frags > 2 and "s" or "") .. ". If you have "..maxfrag.." frags you been banned."
		 else
		 text = "You have " .. frags .. " unjustified frag" .. (frags > 2 and "s" or "") .. "."
		 end
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ""..text.." The amount of unjustified frags will decrease after: " .. hours .. "h and " .. minutes .. "m.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified frag.")	
	end
	return TRUE
end
 
MC Check does not seem to be working via talkactions.

Error Message:

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/multicheck.lua:eek:nSay

data/talkactions/scripts/multicheck.lua:7: attempt to call global 'getIPByName'
(a nil value)
stack traceback:
data/talkactions/scripts/multicheck.lua:7: in function <data/talkactions/scripts/multicheck.lua:1>
 
Fix for shutdown.lua(talkactions/scripts)

Code:
function onSay(cid, words, param)
	if(param ~= "") then
		if(isNumber(param) == TRUE) then
			prepareShutdown(tonumber(param))
		else
			doPlayerSendCancel(cid, "Command requires numeric param.")
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
	end
	return TRUE
end

function prepareShutdown(minutes)
	if(minutes == 0) then
		shutdown()
	else
		if(minutes == 1) then
			doBroadcastMessage("Server is going down in " .. minutes .. " minute, please log out now!")
		elseif(minutes <= 3) then
			doBroadcastMessage("Server is going down in " .. minutes .. " minutes, please log out.")
		else
			doBroadcastMessage("Server is going down in " .. minutes .. " minutes.")
		end
		addEvent(prepareShutdown, 60000, minutes - 1)
	end
end
ex. use : /shutdown 5 (Shutdown server after 5minuts)


Fix for clean.lua(talkactions/scripts)

Code:
function onSay(cid, words, param)
	if(param ~= "") then
		if(isNumber(param) == TRUE) then
			prepareClean(tonumber(param), cid)
		else
			doPlayerSendCancel(cid, "Command requires numeric param.")
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Collected " .. cleanMap() .. " items.")
	end
	return TRUE
end

function prepareClean(minutes, cid)
	if(minutes == 0) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cleaned " .. cleanMap() .. " items.")
		doBroadcastMessage("Game map cleaned.")
	elseif(minutes > 0) then
		if minutes == 1 then
			doBroadcastMessage("Game map cleaning in " .. minutes .. " minute, please pick up all your items.")
		else
			doBroadcastMessage("Game map cleaning in " .. minutes .. " minutes.")
		end
		addEvent(prepareClean, 60000, minutes - 1, cid)
	end
end

ex. use : /clean 5 (Clean items from server after 5minuts)


MC Check does not seem to be working via talkactions.

Error Message:

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/multicheck.lua:eek:nSay

data/talkactions/scripts/multicheck.lua:7: attempt to call global 'getIPByName'
(a nil value)
stack traceback:
data/talkactions/scripts/multicheck.lua:7: in function <data/talkactions/scripts/multicheck.lua:1>

You use tfs 0.3 Alpha 4? Its works for me...
 
Thnx
The Forgotten Server v0.3 alpha 4
when server save
i can't save the houses

OTS_SQLITE3_PREPARE(): SQLITE ERROR: table houses has no column named name
OTS_SQLITE3_PREPARE(): SQLITE ERROR: table houses has no column named name
OTS_SQLITE3_PREPARE(): SQLITE ERROR: table houses has no column named name

I need to fix that.
 
Elf at firs thanks for this great update/realase!



but why everything like this


The forgotten server config and still goes >

before config it goes down!


I hope you understand!

I mean like this example:


-- The Forgotten Server Config

-- Account manager
accountManager = "no"
na
 
Open this file with Windows Word Pad. Save it, then you got the normal config.lua
 
hey
I put skull="red" or 4 at the rat.xml file and notthing happen
bugged ?
edit---
sry...
IT's flag ;p
obs: perfect ots ^^ ty
 
Last edited:
this is not a great issue but the energy, ice, death damage color. The ones you get when using those element spells are wrong.

in const.h you should add example:
TEXTCOLOR_ENERGY = 155,
TEXTCOLOR_DEATH = 108,
TEXTCOLOR_ICE = 179,

in game.cpp ypu should search for (TEXTCOLOR_PURPLE) and change it for (TEXTCOLOR_ENERGY) then search for (TEXTCOLOR_LIGHTBLUE) in ice damage combat and change it for (TEXTCOLOR_ICE) and then search for (TEXTCOLOR_DARKRED) and change it for (TEXTCOLOR_DEATH).

those are the correct colors for the elemets energy, death and ice.
 
Thanks. Going to test this one.

Also, thanks for new DLLs, because I think that's what my error was with 0.3's...corrupt DLLs. Hopefully this one works out xD

i get an error when i try to open the server :( :(

Same. I thought it was just a bug with my PC, but seems others have it too xD
 
Last edited by a moderator:
ok i got /mc to work i think, i replaced the function in functions.lua in the data directory but when i use the command and theres 2 players on the same ip it only shows 1 of them... is that how its soppose to work?
 
Status
Not open for further replies.
Back
Top