• 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 Slot System change format

beenii

Well-Known Member
Joined
Jul 26, 2010
Messages
586
Solutions
1
Reaction score
58
Hi friends, actuality my slot system

i modify this fuction:
Code:
function getSlotType(n) --By mock the bear
    if not n then
        return false
    end
    if n:match('%[(.+)]') then
        n = n:match('%[(.+)]')
        if n == '?' then
            return 0,n
        else
            return n:match('(.-)%.([+-])(%d+)')
        end
    else
        return false
    end

and read this description:
15:42 You see a demon shield (Def:35).
It weighs 26.00 oz.
[regeneration.+8] [dist.+4]

i want modify function getSlotType(n) for read this format:
15:42 You see a demon shield (Def:35).
It weighs 26.00 oz.
[regeneration: +8] [dist: +4]
 
Back
Top