• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.
Resource icon

Colored loot based on drop chance

Sorky

Premium User
Premium User
Joined
Dec 17, 2024
Messages
206
Solutions
3
Reaction score
140
GitHub
Sorky96
Sorky submitted a new resource:

Colored loot based on drop chance - Add color based on item rarity on server/loot chat

View attachment 93061

When a monster dies, the player receives a single message like:

LUA:
Loot of a dragon: [#FF00FF]life crystal[/#], [#00FF00]dragon ham[/#], [#FFFF00]gold coin x68[/#]
  • These color tags are visible in the console, but a clean version without HTML is shown as a pop-up on screen.

    Features:
  • Works with onDropLoot hook in eventCallbacks.
  • Fully compatible with party loot sharing (or...

Read more about this resource...
 
Back
Top