PACKET 0x11 - STATUS - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: PACKET 0x11 - STATUS (/Thread-PACKET-0x11-STATUS) |
PACKET 0x11 - STATUS - deco - 02-06-2013 05:04 AM 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. RE: PACKET 0x11 - STATUS - Shaklaban - 02-06-2013 05:18 AM 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 RE: PACKET 0x11 - STATUS - deco - 02-06-2013 05:22 AM 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. =) RE: PACKET 0x11 - STATUS - Shaklaban - 02-06-2013 05:48 AM 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. RE: PACKET 0x11 - STATUS - deco - 02-06-2013 05:58 AM i will update my sphere to use it =) thankya |