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
PACKET 0x11 - STATUS
Author Message
deco
Apprentice
*

Posts: 10
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
PACKET 0x11 - STATUS
Hello ppl,

i was trying to send a packet 0x11. I want to show to client an irreal ARMOR value. I can't change the AR proprety of a char, so i wanna send this packet.

The problem is that when i send the packet, the only information that appear correct is the name (if i put 'False Nickname') it show a false nickname.

But str, int, dex, all items appears equal to zero.

My test packet... It would show str, int, dex = 10:

SENDPACKET 011 w58 d<dUID> <asc NickName> w0a w0a 0ff 01 01 w0a w0a w0a w0a w0a w0a w0a d0a w0a w0a w1000 00 01 w50 w50 w50 w50 w50 w50 w50 w50

Anyone has one idea?

Thanks

0x11 Packet
Last Modified on Friday, 19-May-2000
Stat window info (66 bytes)
• BYTE cmd
• BYTE[2] packet length (0x0042)
• BYTE[4] player id
• BYTE[30] playerName
• BYTE[2] currentHitpoints
• BYTE[2] maxHitpoints
• BYTE[1] name change flag (0xFF = allowed, 0 = not allowed)
• BYTE[1] flag (0x00 – Stats after this flag are invalid. 0x01 – Stats after this flag are valid)
• BYTE sex (0=male, 1=female)
• BYTE[2] str
• BYTE[2] dex
• BYTE[2] int
• BYTE[2] currentStamina
• BYTE[2] maxStamina
• BYTE[2] currentMana
• BYTE[2] maxMana
• BYTE[4] gold
• BYTE[2] armor class
• BYTE[2] weight
Note: Server Message
Note: For characters other than the player, currentHitpoints and maxHitpoints are not the actual values. MaxHitpoints is a fixed value, and currentHitpoints works like a percentage.
(This post was last modified: 02-06-2013 05:07 AM by deco.)
02-06-2013 05:04 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: PACKET 0x11 - STATUS
well i have that in past i try to send it too (name part is bytes because this is incomplete function):

[function sendstatus]
sendpacket 011 W042 D<uid> 046 069 072 06F 074 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 W<hits> W<maxhits> 00 01 <cinsiyet> W<STR> W<DEX> W<INT> W<STAM> W<MAXSTAM> W<MANA> W<MAXMANA> D<GOLD> W<AC> W<WEIGHT>

[function cinsiyet]
if (<obody> = c_woman)
return 1
endif
return 0
(This post was last modified: 02-06-2013 05:19 AM by Shaklaban.)
02-06-2013 05:18 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
deco
Apprentice
*

Posts: 10
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #3
RE: PACKET 0x11 - STATUS
what's <AC> after weight?

It works Shaklaban, thank ya! I think the problem is i'm using <ASC> to send the nick... I've tried with S, but this dont works
sNick or s"Nick"

= Undefinied Object "sNick"

i'll do some function to send nickname in bytes. =)
(This post was last modified: 02-06-2013 05:26 AM by deco.)
02-06-2013 05:22 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #4
RE: PACKET 0x11 - STATUS
hmm do you have nick function, it should be <name> if you not. AC is the armor. there is also ascpad function in latest releases:

18-1-2013, Ben
-Added: <ASCPAD size,text> Does the same as <ASC text>, but padds with 0s untill size is reached.
Will also truncate the text if longer then size.
(This post was last modified: 02-06-2013 05:52 AM by Shaklaban.)
02-06-2013 05:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
deco
Apprentice
*

Posts: 10
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #5
RE: PACKET 0x11 - STATUS
i will update my sphere to use it =) thankya
02-06-2013 05:58 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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