Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Negotiate Features - AssistUO/Razor
Author Message
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #25
RE: Negotiate Features - AssistUO/Razor
Extreme, You should change the F_HANDLER_EXTENDEDPROTOCOL function to this to prevent interference with other packets that uses 0xF0 ( SA Movement uses this one Smile )
Plus there is no need to use REF1 here since ARGO is the char that sent the packet. Also there is no need for d if doing math in an IF statement.

PHP Code:
[FUNCTION F_HANDLER_EXTENDEDPROTOCOL]
IF (<
local.num> <= 8//I think Razors packet is 8 bytes...  need confirmation
  
IF (<ARGN1> != 240)
    RETURN 
1
  
ELSEIF ((<LOCAL.3> == 255) && <ARGO.dTAG.NEGOTIATEFEATURES>)
    
ARGO.F_NEGOTIATE_FEATURES_3
  
ELSEIF ((<LOCAL.3> == 0) && <DEF.MAPUO_PARTY_ENABLED>)
    
ARGO.F_MAPUO_HANDLE_PARTY
  
ELSEIF ((<LOCAL.3> == 1) && <DEF.MAPUO_GUILD_ENABLED>)
    
ARGO.F_MAPUO_HANDLE_GUILD <dLOCAL.4>
  ENDIF
  RETURN 
1
ENDIF 

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
09-22-2013 12:04 AM
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
RE: Negotiate Features - AssistUO/Razor - Ben - 09-22-2013 12:04 AM

Forum Jump:


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