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

Commands

alekito

Archlord - Retired
Joined
Oct 21, 2008
Messages
150
Reaction score
29
Location
Sweden
I cant get my /reload items to work ..:(

all other reloads i try to command works just fine

/reload monsters
/reload talkactions
/reload movements
etc....

this is my data/talkactions/talkactions.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
	<!-- Gods -->
	<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
	<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
	<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
	<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
	<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
	<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
	<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
	<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

	<!-- Community Managers -->
	<talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
	<talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
	<talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
	<talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
	<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
	<talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>
	<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
	<talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
	<talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
	<talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
	<talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
	<talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
	<talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
	<talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>
	<talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
	<talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

	<!-- Gamemasters -->
	<talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
	<talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
	<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
	<talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
	<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
	<talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
	<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
	<talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
	<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
	<talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
	<talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
	<talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
	<talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
	<talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
	<talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
	<talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
	<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
	<talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

	<!-- Senior Tutors -->
	<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
	<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
	<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
	<talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

	<!-- Tutors -->
	<talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>
	<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>

	<!-- Players -->
	<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
	<talkaction words="!online" event="script" value="online.lua"/>
	<talkaction words="!commands;/commands" event="script" value="commands.lua"/>

	<!-- Guilds -->
	<talkaction words="!createguild" event="function" value="guildCreate"/>
	<talkaction words="!joinguild" event="function" value="guildJoin"/>

	<!-- Houses -->
	<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
	<talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/>
	<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
	<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
	<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
	<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
	<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>

	<!-- (Deprecated) Redirect old '/' to '!' -->
	<talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>
	<talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/>
	<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
	<talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>
</talkactions>

and my data/talkactions/scripts/reload.lua

Code:
local reloadInfo = {
	{RELOAD_ACTIONS, "actions", "action"},
	{RELOAD_CHAT, "chat", "channels"},
	{RELOAD_CONFIG, "config", "configuration"},
	{RELOAD_CREATUREEVENTS, "creatureevents", "creature events", "creaturescripts", "creature scripts", "creatureevent", "creature event", "creature script", "creaturescript"},
	{RELOAD_GAMESERVERS, "gameservers", "game servers", "servers"},
	{RELOAD_GLOBALEVENTS, "globalevents", "global events", "globalevent", "global event"},
	{RELOAD_GROUPS, "groups", "playergroups", "group"},
	{RELOAD_HIGHSCORES, "highscores", "scores", "highscore", "score"},
	{RELOAD_HOUSEPRICES, "houseprices", "house prices", "prices"},
	{RELOAD_ITEMS, "items", "item"},
	{RELOAD_MONSTERS, "monsters", "monster"},
	{RELOAD_MOVEEVENTS, "moveevents", "move events", "movements", "move", "movement"},
	{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", "talkaction", "talk action"},
	{RELOAD_VOCATIONS, "vocations", "vocation"},
	{RELOAD_WEAPONS, "weapons", "weapon"},
	{RELOAD_MODS, "mods", "modifications"},
	{RELOAD_ALL, "all", "everything"}
}
 
function onSay(cid, words, param, channel)
	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
 
Tried to restart the ot and my pc aswell several times. this is what the error shows in console when i try /reload items

[26/08/2012 01:09:23] [Notice - Game::reloadInfo] Reload type does not work.
 
Some reload types doesn't work, like vocations, items, weapons, etc..
You need to restart your server to make effect of the changes that u maded to ur items.
 
but this reload type worked for me like 2h ago ... ive been using it for some days now. Kind of waste of time to just restart the server manually when i can simply reload the items .
 
Back
Top