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

[REQUEST] Server Info

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a scripter, this way the low

Code:
Welcome to Server Name
Server Information:

Experience rate: x...
Skills rate: x...
Loot rate: x...
Magic rate: x...
Spanws rate: x...
Proctetion level: x...
News:
 Have fun in Server Name

You are Logged is as
Name: ...
Level: ...
Access: ...

Uptime: X.hours and X.minutes.

rep+
 
would you do this part:
You are Logged is the
Name: ...
Level: ...
Access: ...
Uptime: X.hours and X.minutes.
 
Lua:
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)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end

	local pid = getPlayerByNameWildcard(param)
	if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
		return true
	end

	local tmp = {accountId = getPlayerAccountId(pid), ip = getPlayerIp(pid)}
	local pos = getCreaturePosition(pid)
		if(config.stages) then
      exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
  end
  
	doPlayerPopupFYI(cid, "Information" ..

    "\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 ..
		"\nName: " .. getCreatureName(pid) ..
		"\nAccess: " .. getPlayerAccess(pid) ..
		"\nLevel - " .. getPlayerLevel(pid) .. " ")
		
	return true
end
 
Back
Top Bottom