rajmek126p
Active Member
- Joined
- Nov 13, 2020
- Messages
- 13
- Reaction score
- 30
Rare Items Report — Zanera Server (fun facts from a full source-code deep dive)
After combing through Zanera’s scripts + map reward rooms, here’s a neat “this exists, but nobody actually has it” snapshot.
Never obtained by any player
Item ID Status
Blessed Shield 3423 Quest room only
Magic Longsword 3278 Quest room only
Warlord Sword 3296 Quest room only
Thunder Hammer 3309 Quest room only
Golden Helmet 3365 On ground only
Winged Helmet 3368 Quest room only
Horned Helmet 3390 Quest room only
Found in player possession
Bunnyslippers (3553) — 2 total confirmed on the entire server:
Savage Saint (Lv152 EK) — house: Wood Avenue 11
Xadow Kitad (Lv46 MS) — house: The Tibianic
Weird bug / fun anomaly: negative skill progress
The skill bug concerned a problem with floating-point precision in the game engine.
What was the bug?
The Tibia 7.7 server calculates skill progress (e.g., shielding, axe, sword) using the following formula:
For 52 players, the current_exp value was 1 point less than last_threshold, resulting in a negative percentage:
The server logged this as an error:
Why this happened?
When a player advances to a new skill level, the server calculates the XP threshold using a formula with a multiplier (e.g., 1.2x or 1.4x). When converting from float to int, rounding occurs—the server stores current_exp = 109, but then calculates last_threshold = 110 (one more). This is a float precision error.
I scanned 64,512 .usr files and found 52 characters with this bug.
After combing through Zanera’s scripts + map reward rooms, here’s a neat “this exists, but nobody actually has it” snapshot.
Never obtained by any player
Item ID Status
Blessed Shield 3423 Quest room only
Magic Longsword 3278 Quest room only
Warlord Sword 3296 Quest room only
Thunder Hammer 3309 Quest room only
Golden Helmet 3365 On ground only
Winged Helmet 3368 Quest room only
Horned Helmet 3390 Quest room only
Found in player possession
Bunnyslippers (3553) — 2 total confirmed on the entire server:
Savage Saint (Lv152 EK) — house: Wood Avenue 11
Xadow Kitad (Lv46 MS) — house: The Tibianic
Weird bug / fun anomaly: negative skill progress
The skill bug concerned a problem with floating-point precision in the game engine.
What was the bug?
The Tibia 7.7 server calculates skill progress (e.g., shielding, axe, sword) using the following formula:
Code:
progress = (current_exp - last_threshold) / (next_threshold - last_threshold) * 100%
For 52 players, the current_exp value was 1 point less than last_threshold, resulting in a negative percentage:
Code:
Exp 109, Last 110, Next 181 → (109-110)/(181-110) = -1%
The server logged this as an error:
Code:
TSkill::GetProgress: Berechnungsfehler Exp 109, Last 110, Next 181, Prozent -1.
# Spieler Amrel - Skill 9
Why this happened?
When a player advances to a new skill level, the server calculates the XP threshold using a formula with a multiplier (e.g., 1.2x or 1.4x). When converting from float to int, rounding occurs—the server stores current_exp = 109, but then calculates last_threshold = 110 (one more). This is a float precision error.
I scanned 64,512 .usr files and found 52 characters with this bug.
Last edited: