• 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 to block OTC.. ideas?

xKrazyx

Old School
Joined
Oct 23, 2012
Messages
899
Solutions
6
Reaction score
677
Need to block OTC.. only allow my normal client.. any ideas?

besides changing RSA/classname/titlename/client number
 
Last edited:
can't check right now cause I don't have any server files n shit, but in 1.2 theres something in creatureevents with op code check for otclient I believe
maybe something to do with that?
Never used 1.2..
Any chance you code post the source/code segment? :)
 
This will kick the player if they are using OTClient.

In data/creaturescripts/scripts/login.lua replace:
Code:
function onLogin(player)
with:
Code:
function onLogin(player)
    if player.isUsingOtClient(self)
        player:remove()
    end
 
This will kick the player if they are using OTClient.

In data/creaturescripts/scripts/login.lua replace:
Code:
function onLogin(player)
with:
Code:
function onLogin(player)
    if player.isUsingOtClient(self)
        player:remove()
    end
Thanks! I dont use 1.2 however >.< I use 0.4
 
what do you mean ret false? can you show exact script i get error when using player:remove() on that line
Post automatically merged:

@xKrazyx
to block otc you have to remove theses lines from const.h
  1. CLIENTOS_OTCLIENT_LINUX = 0x0A,
  2. + CLIENTOS_OTCLIENT_WINDOWS = 0x0B,
  3. + CLIENTOS_OTCLIENT_MAC = 0x0C,
hope it helps you
i cannot find the line of code anywhere
tfs 1.4
 
player.isUsingOtClient() and checking for client os is useless, you can change one number inside otclient and it will send same info os info as regular client

you should not rely on that at all to check for players using otc
 
besides changing RSA/classname/titlename/client number

Well, that's all the ways to do it

player.isUsingOtClient() and checking for client os is useless, you can change one number inside otclient and it will send same info os info as regular client

you should not rely on that at all to check for players using otc

Can confirm this doesn't do shit. I tested it and The OTClient doesn't by default actually register itself as being OTClient and will just login normally as if using Windows client.
 
Back
Top