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

Need Rates

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
How I add rates of my server in my new script?
--Need info rates:
PHP:
local mod = getWorldType()

function onSay(cid, words, param)
if mod == 1 then
world ='Non-pvp'
end
if mod == 2 then
world ='pvp'
end
if mod == 3 then
world ='pvp enforced'
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, 'Thiloon ATS:\nServer: '..world..',\n '..getWorldCreatures(0)..' players online,\n'..getWorldCreatures(1)..' monsters online,\nServer: '..getWorldUpTime()..' seconds online.')
return TRUE
end
My friend say: use the dofile('./config.lua'), but I don't know...
Help-me!
 
Either do:
Code:
expRate = getConfigInfo('rateExp')
doPlayerSendTextMessage(cid, 22, "The exp rate is "..expRate..".")

or add on the top of the script:
Code:
dofile('config.lua')
doPlayerSendTextMessage(cid, 22, "The exp rate us "..rateExp".."."(

Btw - I am not sure if it is rateExp in config.lua, just check ;p
 
Back
Top