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-nmm6 (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-nmm6 (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-nmm6 (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
sendpacket 0bf
Author Message
caos
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #1
sendpacket 0bf
Hi ppl, i m newbie on this site and first congratulate you for site.

My problem is sendpacket 0bf with subcommand 01a or 019

Quote:Packet ID: 0xBF
Packet Name: General Information Packet
Packet Size: Variable
Sent By: Both
Submitted: MuadDib

Packet Breakdown
BYTE[1] cmd
BYTE[2] length
BYTE[2] subcmd
BYTE[length-5] submessage/commands

----------------------------------------------------------------

Subcommand: 0x19: Extended stats
BYTE[1] type // always 2 ? never seen other value
BYTE[4] serial
BYTE[1] unknown // always 0 ?
BYTE[1] lockBits // Bits: XXSS DDII (s=strength, d=dex, i=int), 0 = up, 1 = down, 2 = locked

Subcommand: 0x1a: Extended stats
BYTE[1] stat // 0: str, 1: dex, 2:int
BYTE[1] status // 0: up, 1:down, 2: locked

And i found an example use with 0bf like these

[FUNCTION aosmessage]
sendpacket 0bf W11 W022 01 D<uid> <args>

Now, i try 01a and 019 like this

src.sendpacket 0bf W11 W01a 01 01
src.sendpacket 0bf W05 W01a 01 01

src.sendpacket 0bf W11 W019 02 D<uid> 00 i0
src.sendpacket 0bf W05 W019 02 D<uid> 00 i0

But client is gone Sad Anyone help me?
I want to control stat.lock on status gump.
03-17-2012 01:45 AM
Find all posts by this user Like Post Quote this message in a reply
ShiryuX
Journeyman
*

Posts: 249
Likes Given: 1
Likes Received: 19 in 14 posts
Joined: Mar 2010
Reputation: 4



Post: #2
RE: sendpacket 0bf
You can control stat locks without using packets:
http://wiki.sphere.torfo.org/index.php/Characters
STATLOCK.stat_id (Gets or sets the lock state of the player's STR, DEX or INT.)
03-17-2012 07:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
caos
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #3
RE: sendpacket 0bf
i know that function already, but how can i control on status gump when player press buttons.
03-19-2012 03:16 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: sendpacket 0bf
When you press one of the arrow in the status menĂ¹, the statlock value related to that stat get changed(0 up arrow, 1 down arrow, 2 locked)
03-19-2012 07:10 PM
Find all posts by this user Like Post Quote this message in a reply
caos
Apprentice
*

Posts: 3
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 0



Post: #5
RE: sendpacket 0bf
Sorry my English. I think i cant tell my problem. So, i fix my problem another way.
Thanks your posts
04-09-2012 05:18 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)