• 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!

Lua String format

Il Knight

Veteran OT User
Joined
Dec 1, 2014
Messages
676
Solutions
7
Reaction score
350
Location
Spain
tfs 1.2

hello how i can use string format correctly?

Code:
local desc1 = string.format("You see a %s.", Name)
    local desc2 = string.format("%s It weighs %d oz.", desc1, Weight)
  
    self:sendTextMessage(MESSAGE_INFO_DESCR, desc2)

and it display this =

22:32 You see a sword. It weighs 5 oz. << all in the same line(i want each stuff in a line)

but i need to display the name like tibia =

22:32 You see a letter. / one thing per line
It weighs 0.50 oz. /
Item ID: 110 /
Position: 969, 926, 7 /
thanks in advance
 
Back
Top