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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The best way to function ISMOVE
Author Message
Wap
Journeyman
*

Posts: 138
Likes Given: 6
Likes Received: 7 in 6 posts
Joined: Mar 2012
Reputation: 3

UORPG.net

Post: #7
RE: The best way to function ISMOVE
(03-13-2013 04:07 PM)Monty Wrote:  To Wap:
I never used packet in sphere or uo can you give me some tips how use it?
Quote:28-01-05, Vjaka
- Added support for packets filterings. Please note, that you should understand
what are you doing. You can install your handler of a packet X specifying
PACKETx=functionname. This function will be called when the packet is going
to be processed by the server. It has the following arguments set:
ARGN1 = packet number (to allow using one function for different packets)
ARGS = source client ip address
LOCAL.0-LOCAL.9 - first 10 bytes of the packet for parsing contents
If you do return 1 in this function, the packet will NOT be processed

11-04-05, Vjaka
- Packet filtering support heavily expanded. Now you have these variables:
LOCAL.NUM (value) set to amount of data got from the packet
LOCAL.STR (string) all data threated as a string (aware of zero chars)
LOCAL.ACCOUNT (string) current active account if any is logged by the client
LOCAL.CHAR (uid) current active char if any is logged in from the client
and the all data is now given in LOCAL.x, not the only first 10 bytes.

So, write
Quote:PACKET2=ONPACKET_2
in sphere.ini

after it create a function in scripts
Quote:[FUNCTION ONPACKET_2]
UID.<LOCAL.CHAR>.SYSMESSAGE <LOCAL.0> <LOCAL.1> <LOCAL.2>
(This post was last modified: 03-13-2013 09:46 PM by Wap.)
03-13-2013 09:45 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
The best way to function ISMOVE - Monty - 03-13-2013, 07:21 AM
RE: The best way to function ISMOVE - Wap - 03-13-2013 09:45 PM
RE: The best way to function ISMOVE - Wap - 03-13-2013, 08:19 AM

Forum Jump:


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