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

/reload

freaked1

Active Member
Joined
Jan 30, 2008
Messages
486
Solutions
5
Reaction score
30
Location
Sweden
Hi, my /reload command doesn't work. Can someone please help me? I have been searching arround but havn't found it yet.

TFS 0.3.1 (crying damson)
 
Last edited:
Put this as your reload.lua
PHP:
local reloadInfo = {
	{RELOAD_ACTIONS, "actions", "action"},
	{RELOAD_CONFIG, "config", "configuration"},
	{RELOAD_CREATUREEVENTS, "creatureevents", "creature events", "creaturescripts", "creature scripts"},
	{RELOAD_GAMESERVERS, "gameservers", "game servers", "servers"},
	{RELOAD_GLOBALEVENTS, "globalevents", "global events"},
	{RELOAD_HIGHSCORES, "highscores", "scores"},
	{RELOAD_HOUSEPRICES, "houseprices", "house prices", "prices"},
	{RELOAD_ITEMS, "items", "item"},
	{RELOAD_MONSTERS, "monsters", "monster"},
	{RELOAD_MOVEEVENTS, "moveevents", "move events", "movements"},
	{RELOAD_NPCS, "npcs", "npc"},
	{RELOAD_OUTFITS, "outfits", "outfit"},
	{RELOAD_QUESTS, "quests", "quest"},
	{RELOAD_RAIDS, "raids", "raid"},
	{RELOAD_SPELLS, "spells", "spell"},
	{RELOAD_STAGES, "stages", "experience"},
	{RELOAD_TALKACTIONS, "talkactions", "talk actions", "talk", "commands"},
	{RELOAD_VOCATIONS, "vocations", "vocation"},
	{RELOAD_WEAPONS, "weapons", "weapon"},
	{RELOAD_ALL, "all", "everything"}
}

function onSay(cid, words, param)
	param = param:lower()
	local str = "Reload type not found."
	for _, v in ipairs(reloadInfo) do
		if(table.isStrIn(param, v)) then
			doReloadInfo(v[1], cid)
			str = "Reloading " .. v[2] .. "..."
			break
		end
	end

	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str)
	return TRUE
end
 
GUI?

Well, if your using that, go into the .exe (GUI), go to server, and click on reload, and it will have the list of things that you can reload.
 
Back
Top