The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Forcing Orion Client
Author Message
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #11
RE: Forcing Orion Client
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

https://www.uocryptonite.com/
08-05-2022 01:36 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Forcing Orion Client - Fronz - 05-19-2020, 11:38 AM
RE: Forcing Orion Client - Coruja - 05-24-2020, 09:06 AM
RE: Forcing Orion Client - Fronz - 06-02-2020, 12:21 PM
RE: Forcing Orion Client - Jhobean - 06-11-2020, 01:54 PM
RE: Forcing Orion Client - Coruja - 06-11-2020, 02:59 PM
RE: Forcing Orion Client - Jhobean - 06-11-2020, 09:39 PM
RE: Forcing Orion Client - Coruja - 06-12-2020, 05:21 AM
RE: Forcing Orion Client - Jhobean - 06-12-2020, 05:31 AM
RE: Forcing Orion Client - Fronz - 06-15-2020, 12:53 AM
RE: Forcing Orion Client - cele_35 - 01-24-2021, 05:25 AM
RE: Forcing Orion Client - Jhobean - 08-05-2022 01:36 AM
RE: Forcing Orion Client - Atilla209 - 08-05-2022, 02:16 AM
RE: Forcing Orion Client - yeoldesphere - 08-28-2022, 06:28 AM
RE: Forcing Orion Client - Extreme - 06-09-2024, 11:57 AM
RE: Forcing Orion Client - Cellerium - 12-27-2024, 03:19 AM
RE: Forcing Orion Client - Stern - 02-10-2025, 02:02 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)