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:
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]
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]