SphereCommunity
sendpacket 0bf - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: sendpacket 0bf (/Thread-sendpacket-0bf)



sendpacket 0bf - caos - 03-17-2012 01:45 AM

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.


RE: sendpacket 0bf - ShiryuX - 03-17-2012 07:09 AM

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.)


RE: sendpacket 0bf - caos - 03-19-2012 03:16 AM

i know that function already, but how can i control on status gump when player press buttons.


RE: sendpacket 0bf - darksun84 - 03-19-2012 07:10 PM

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)


RE: sendpacket 0bf - caos - 04-09-2012 05:18 AM

Sorry my English. I think i cant tell my problem. So, i fix my problem another way.
Thanks your posts