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

Access help Please

Toast

New Member
Joined
Feb 28, 2008
Messages
150
Reaction score
0
Im trying to make it so a Tutor with a access of 1 can broadcast
But when I change xml file to
Code:
	<talkaction log="yes" access="1" words="/b" event="script" value="broadcast.lua"/>

Im getting this error
Lua Script Error:[TalkAction Interface]
Data/Talkactions/Scripts/BroadCast.Lua:eek:nSay
LuaDoPlayerBroadcastMessage<>.Bad spealClass Type.

And its not broadcasting. Is there anyway to change the access lvls in talkactions? Thanks for any help.

Im useing TFS 0.3.2
 
You mean like this?

In script file:
Code:
if getPlayerAccess(cid) ~= 0 then
<code goes here>
else
return LUA_ERROR
end

Don't mind about Lua error, it will only make the output as regular text if access is denied.
 
You mean like this?

In script file:
Code:
if getPlayerAccess(cid) ~= 0 then
<code goes here>
else
return LUA_ERROR
end

Don't mind about Lua error, it will only make the output as regular text if access is denied.

This is the lua file on broadcast theres no access on any of the LUA files, the access is set in XML. Im trying to change the access from 2 to 1.
Any Ideas?
function onSay(cid, words, param)
if(param == "") then
return TRUE
end

doPlayerBroadcastMessage(cid, param)
return TRUE
end

Doing this dont allow someone with a access of 1 to broadcast.
<!-- Tutors -->
<talkaction log="yes" words="/baninfo" access="1" event="function" value="showBanishmentInfo"/>
<talkaction log="yes" access="1" words="!pos" event="script" value="position.lua"/>
<talkaction log="yes" access="1" words="/b" event="script" value="broadcast.lua"/>
 
Well...

LuaDoPlayerBroadcastMessage<>.Bad spealClass Type.

That sounds like a very weird error... spealClass? Is that even a real function?
Looks more like an error in the actual .lua file.

However it might also be a problem with your group flags, since I do remember that there is a "Can broadcast" flag, perhaps that is what causes the problems.
 
Back
Top