• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua How to get fluid name by type.

Nothxbye

Banned User
Joined
Jan 22, 2012
Messages
1,124
Reaction score
174
Hello otlanders,

How to get fluid name by type for exampe i've got type = 1 it's water and i want to lua show name "water" instead of number, more example:
Something like getFluidNameByType(number) - not existed function it's just example

"Do you want to buy vial of "..getFluidNameByType(1).." for 10 gp?"
And in the result it should looks like:
"Do you want to buy vial of water for 10 gp?"

It's possible?
 
You have tried
LUA:
getFluidSourceType(type)
Don't know, if this is a newer function, but should work.
Tested with:
Code:
"Do you want to buy vial of "..getFluidSourceType(1).." for 10 gp?"
Result:
Code:
Do you want to buy vial of 0 for 10 gp?

This function is not that i want.
 
Back
Top