• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[SOLVED] [Chatchannels] Only for Vocation, like Rook [1.0]

Eldin

Eldin Projects
Joined
Jun 12, 2008
Messages
1,334
Reaction score
615
Location
Sweden
ChatChannel Script!

I have searched for this script like I do with all scripts Im looking for, but without any results.
Im currently creating a a server with different Races, and I got the brilliant idea to make each Race have their OWN ChatChannel, exactly like Rook have their own advertising channel for vocation "NONE".

I tryed to use that and add "ELF" as for example without results, I did ofcourse remove myself as a GM account as they can open all channels.
I would like Vocation 1-4 to only be able to open one channel and 5-7 Another.
One example to make it work is fine, I'll make the rest. :)

This is the top of rook advertising, Im open to use ANYTHING that works.

Code:
function canJoin(cid)
return getPlayerVocation(cid) == VOCATION_NONE or getPlayerAccountType(cid) >= ACCOUNT_TYPE_SENIORTUTOR
end

Kind Regards,
Eldin.


PS: Advertising Channel is old Trade Channel, right? :)
 
Code:
function canJoin(cid)
    local player = Player(cid)
    if player == nil then
        return false
    end
    return isInArray({1, 2, 3, 4}, player:getVocation():getId()) or player:getAccountType() >= ACCOUNT_TYPE_SENIORTUTOR
end
 
Back
Top