• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Improved Server Information [0.2 + 0.3]

local config = {
rateExperience = getConfigInfo('rateExperience'),
rateSkill = getConfigInfo('rateSkill'),
rateLoot = getConfigInfo('rateLoot'),
rateMagic = getConfigInfo('rateMagic'),
rateSpawn = getConfigInfo('rateSpawn'),
protectionLevel = getConfigInfo('protectionLevel'),
stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid, words, param, channel)
local exp = config.rateExperience
if(config.stages == TRUE) then
exp = getExperienceStage(getPlayerLevel(cid))
end
guild = "None"
news = "We just changed the website layout!"
name = getPlayerName(cid)
level = getPlayerLevel(cid)
access = getPlayerAccess(cid)
version = "1.0"
motto = "We keep the gaming feeling alive."
local hours = math.ceil(getWorldUpTime() / 3600) - 1
local minutes = math.ceil((getWorldUpTime() - (3600 * hours)) / 60)
if minutes == 60 then
minutes = 0
hours = hours + 1
end
doPlayerPopupFYI(cid, "Welcome to Florensia \nServer Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel .. "\nNews:\n " .. news .." \n \n\n You are Logged in as:\n Name: " .. name .."\n Level: " .. level .."\n Access: " .. access .."\n\n Server Version: " .. version .." \n Uptime: ".. hours .." hours and " .. minutes .." minutes.")
return TRUE
end
 
Bump ;)

Edited it a bit:
Lua:
local config = {
	rateExperience = getConfigInfo('rateExperience'),
	rateSkill = getConfigInfo('rateSkill'),
	rateLoot = getConfigInfo('rateLoot'),
	rateMagic = getConfigInfo('rateMagic'),
	rateSpawn = getConfigInfo('rateSpawn'),
	protectionLevel = getConfigInfo('protectionLevel'),
	news = getConfigInfo('motd'),
	serverName = getConfigInfo('serverName'),
	owner = getConfigInfo('ownerName'),
	location = getConfigInfo('location'),
	worldType = = getConfigInfo('worldType'),
	stages = getBooleanFromString(getConfigInfo('experienceStages'))
}
function onSay(cid, words, param, channel)
	local exp = config.rateExperience
	if(config.stages == TRUE) then
		exp = getExperienceStage(getPlayerLevel(cid))
	end
	guild = getPlayerGuildName(name)
		name = getPlayerName(cid)
	    level = getPlayerLevel(cid)
	    access = getPlayerAccess(cid)
		local hours = math.ceil(getWorldUpTime() / 3600) - 1
	local minutes = math.ceil((getWorldUpTime() - (3600 * hours)) / 60)
	if minutes == 60 then
		minutes = 0
		hours = hours + 1
	end
	doPlayerPopupFYI(cid, "Welcome to " .. config.serverName .. " ( " .. config.worldType .. " ) \nServer Information:\n\nExperience rate: x" .. exp .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel .. "\nNews:\n " .. config.news .." \n \n\n You are Logged in as:\n Name: " .. name .."\n Level: " .. level .."\n Access: " .. access .."\n\n Server made by: " .. config.owner .." ( " .. config.location .." )\n Uptime:  ".. hours .."  hours and " .. minutes .." minutes.")
	return TRUE
end
 
Back
Top