Modify

Ticket #5955 (new defect)

Opened 4 months ago

Negative XP earned

Reported by: afk5min Owned by:
Priority: minor Milestone: T2.6 Gracia High_Five
Keywords: system message, xp, number Cc:
DP Revision: 8656 L2J Revision: 5165
Geodata: Disabled

Description

When earning large amounts of experience (via admin_set_level, for example), the system message shows that you earned negative XP.

After investigating, it looks like the XP amount is cast to int to fit in the TYPE_1 field in the SystemMessage?. However, in High Five, TYPE_1 is used for SP, but TYPE_6 is used for XP.

2011-09-06
62 BB 0C 00 00 04 00 00 00 06 00 00 00 C1 5F 00 00 00 00 00 00 06 00 00 00 39 46 00 00 00 00 00 00 01 00 00 00 F9 09 00 00 01 00 00 00 50 07 00 00
62 BB 0C 00 00 04 00 00 00 06 00 00 00 1B 5C 00 00 00 00 00 00 06 00 00 00 8C 43 00 00 00 00 00 00 01 00 00 00 58 09 00 00 01 00 00 00 DA 06 00 00

Attachments

pcstat.txt (1.2 KB) - added by afk5min 4 months ago.
Patch TYPE_1 -> TYPE_6 for XP earned

Download all attachments as: .zip

Change History

Changed 4 months ago by afk5min

Patch TYPE_1 -> TYPE_6 for XP earned

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from (none). Next status will be 'new'
The owner will be changed from (none) to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.