Hello, i have a problem with key number look msg, I have this script here, to respawn a key on map...
the problem is the number of key... the correct is 0021, but now appear only 21.
is there any way to tidy up? insert the 00 before. :/
Lua:
function onStartup()
local chance = math.random(1, 100)
if chance <= 50 then
Game.createItem(2969, 0021, Position(2832, 12384, 10))
end
end
the problem is the number of key... the correct is 0021, but now appear only 21.
is there any way to tidy up? insert the 00 before. :/