SphereCommunity
Forcing Orion Client - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Forcing Orion Client (/Thread-Forcing-Orion-Client)

Pages: 1 2


RE: Forcing Orion Client - Jhobean - 08-05-2022 01:36 AM

Ok here an update:
1- on ini you add
Code:
PACKET191=f_orion_exclusif
2- on @login you add
Code:
SENDPACKET B0BF W0007 W0FACE W0034 //Ask version Orion
if (<ACCOUNT.PLEVEL> > 3)
elif ( !(STRCMP(<src.account>,nameofexceptionaccount)) )
else    
    timerf 5,F_DISCONNECT_BADCLIENT
endif

3- You add these function on your script
Code:
[FUNCTION f_orion_exclusif]  //Function déclenché a la réception du packet
ref1=<LOCAL.CHAR> //(uid)
// <LOCAL.ACCOUNT> //(string) current active account if any is logged by the client
// on recois ça: 0 11 250 206 0 52 1 0 0 0 (B0BF W000B W0FACE W0034 D0V1V2V3V4) Where V1 V2 V3 V4 - version bytes
//<dlocal.7><dlocal.8><dlocal.9><dlocal.10> if version id 1.0.17.0 it show 10170
IF <local.2> ==11 //Packet de version orion
    IF (<dlocal.7><dlocal.8><dlocal.9><dlocal.10> >= 10170) //Check if the orion version is more than 1.0.17.0
          ref1.ctag.clientconforme=1
    ENDIF
ENDIF

Code:
[FUNCTION F_DISCONNECT_BADCLIENT]
if (!<ctag0.clientconforme>)
    sysmessageua 089 0 0 eng  This server requiere last ORION version
    sysmessageua 089 0 0 eng You will be disconnected....  
   SERV.LOG DECONNECTION of <ACCOUNT> <NAME> not good client
   serv.NEWITEM i_disconnect_now
   new.EQUIP
endif

[FUNCTION DISCONNECT_NOW]
serv.NEWITEM i_disconnect_now
new.EQUIP

Code:
[ITEMDEF i_disconnect_now]
ID    = i_memory
TYPE    = t_eq_script

ON = @Create
   TIMER    = 1

ON = @Timer
   CONT.SYSMESSAGE Disconnection...
   CONT.UPDATE
   CONT.DISCONNECT
   REMOVE
   return 1



RE: Forcing Orion Client - Atilla209 - 08-05-2022 02:16 AM

Oh you are a god!
thank you!Love


RE: Forcing Orion Client - yeoldesphere - 08-28-2022 06:28 AM

reply number 2


RE: Forcing Orion Client - Extreme - 06-09-2024 11:57 AM

Here is the Jhobean's updated code.

[attachment=502]


RE: Forcing Orion Client - Cellerium - 12-27-2024 03:19 AM

thanks for that! very good


RE: Forcing Orion Client - Stern - 02-10-2025 02:02 AM

thanks for that!