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

PLz NEed a talkactions to show serverinfo

killer hemoz

DOTA PRO PLAYER
Joined
Mar 16, 2009
Messages
53
Reaction score
0
Location
UNknown
as in title i need a talkaction to show serverinfo coz the
!serverinfo is not workin i think it is not hard to make but am not a much of scripter need it offer Repp
 
from tfs distro

in data/talkactions/talkactions.xml
PHP:
<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>

in data/talkactions/scripts/serverinfo.lua
PHP:
local config = {
	rateExperience = getConfigInfo('rateExperience'),
	rateSkill = getConfigInfo('rateSkill'),
	rateLoot = getConfigInfo('rateLoot'),
	rateMagic = getConfigInfo('rateMagic'),
	rateSpawn = getConfigInfo('rateSpawn'),
	protectionLevel = getConfigInfo('protectionLevel')
}

function onSay (cid, words, param)
	doPlayerPopupFYI(cid, "Server Information:\n\nExperience rate: x" .. config.rateExperience .. "\nSkills rate: x" .. config.rateSkill .. "\nLoot rate: x" .. config.rateLoot .. "\nMagic rate: x" .. config.rateMagic .. "\nSpawns rate: x" .. config.rateSpawn .. "\nProtection level: " .. config.protectionLevel)
	return TRUE
end
 
Back
Top