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: 3 in 1 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
Atilla209
Apprentice
*

Posts: 10
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Oct 2018
Reputation: 0



Post: #12
RE: Forcing Orion Client
Oh you are a god!
thank you!Love
08-05-2022 02:16 AM
Find all posts by this user Like Post Quote this message in a reply
yeoldesphere
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2022
Reputation: 0



Post: #13
RE: Forcing Orion Client
reply number 2
08-28-2022 06:28 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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

This forum uses Lukasz Tkacz MyBB addons.