123
This commit is contained in:
1 parent
1bb038816b
commit
57ba58f0ca
8 files changed
+180
-164
No files matched your search
+45
-41
@@ -115,20 +115,20 @@ end
|
|||||||
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
||||||
function Config.CanCastFrom(world, pos, humanoid)
|
function Config.CanCastFrom(world, pos, humanoid)
|
||||||
if not world then
|
if not world then
|
||||||
return "Здесь нет рыбы — иди в один из миров 🌍"
|
return "🌍 Тут нет рыбы"
|
||||||
end
|
end
|
||||||
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
||||||
if humanoid then
|
if humanoid then
|
||||||
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
||||||
end
|
end
|
||||||
if inWater then
|
if inWater then
|
||||||
return "Из воды закидывать нельзя — выйди на берег или на причал"
|
return "🏊 Выйди из воды"
|
||||||
end
|
end
|
||||||
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
||||||
return "Встань на землю, чтобы закинуть удочку"
|
return "Встань на землю"
|
||||||
end
|
end
|
||||||
if Config.WaterGap(world, pos) > Config.CastReach then
|
if Config.WaterGap(world, pos) > Config.CastReach then
|
||||||
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
|
return "🌊 Подойди к воде"
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@@ -2691,10 +2691,10 @@ local function addXp(player, data, amount)
|
|||||||
leveled = true
|
leveled = true
|
||||||
end
|
end
|
||||||
if leveled then
|
if leveled then
|
||||||
notify(player, "⭐ Новый уровень: " .. data.level .. "! Удача +" .. math.floor(Config.LuckPerPlayerLevel * 100) .. "%", GOLD)
|
notify(player, "⭐ Уровень " .. data.level .. "!", GOLD)
|
||||||
for _, w in ipairs(Config.Worlds) do
|
for _, w in ipairs(Config.Worlds) do
|
||||||
if w.level == data.level and not w.soon then
|
if w.level == data.level and not w.soon then
|
||||||
notify(player, "🌍 Открыт новый мир: " .. w.icon .. " " .. w.name .. "!", w.color)
|
notify(player, "🌍 Открыт: " .. w.icon .. " " .. w.name, w.color)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2750,7 +2750,7 @@ local function questProgress(player, kind, amount)
|
|||||||
q.progress = math.min(q.goal, q.progress + amount)
|
q.progress = math.min(q.goal, q.progress + amount)
|
||||||
changed = true
|
changed = true
|
||||||
if q.progress >= q.goal then
|
if q.progress >= q.goal then
|
||||||
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
|
notify(player, "📜 Задание готово! (Q)", GOLD)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2787,7 +2787,7 @@ local function claimDaily(player)
|
|||||||
end
|
end
|
||||||
local t = today()
|
local t = today()
|
||||||
if data.daily.last >= t then
|
if data.daily.last >= t then
|
||||||
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
||||||
@@ -2823,7 +2823,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
for _, f in ipairs(zone.fish) do
|
for _, f in ipairs(zone.fish) do
|
||||||
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
||||||
notify(player, "Сначала поймай всех рыб этой группы!", RED)
|
notify(player, "Сначала поймай всех", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2831,7 +2831,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
notify(player, ("🏆 Мир «%s» собран! +%d 💰 и +%d%% удачи навсегда"):format(world.name, coins, math.floor(Config.MasteryLuck * 100 + 0.5)), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -2839,7 +2839,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
notify(player, ("📖 Коллекция «%s»: +%d 💰 +%d XP"):format(Config.Rarities[rarity].name, r.coins * world.mult, r.xp * world.mult), GREEN)
|
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -3246,12 +3246,12 @@ local function onCast(player, power)
|
|||||||
local target, dist = findWater(hrp, world, power)
|
local target, dist = findWater(hrp, world, power)
|
||||||
if not target then
|
if not target then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if #data.items >= bagCapacity(player, data) then
|
if #data.items >= bagCapacity(player, data) then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
|
notify(player, "🎒 Сумка полна!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -3324,7 +3324,7 @@ local function onCast(player, power)
|
|||||||
if fishing[player] == s and s.stage == "bite" then
|
if fishing[player] == s and s.stage == "bite" then
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба ушла… не успел вытащить.", RED)
|
notify(player, "🐟 Рыба ушла", RED)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@@ -3352,7 +3352,7 @@ local function onCatch(player, success, misses)
|
|||||||
if failed then
|
if failed then
|
||||||
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба сорвалась!", RED)
|
notify(player, "🐟 Сорвалась!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
||||||
@@ -3445,7 +3445,7 @@ local function sellItems(player, filterUid)
|
|||||||
end
|
end
|
||||||
if count == 0 then
|
if count == 0 then
|
||||||
if filterUid == nil then
|
if filterUid == nil then
|
||||||
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -3471,12 +3471,12 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local lvl = rodLevel(data, id)
|
local lvl = rodLevel(data, id)
|
||||||
if lvl >= Config.RodUpgrade.maxLevel then
|
if lvl >= Config.RodUpgrade.maxLevel then
|
||||||
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
|
notify(player, "★★★★★ Максимум", GOLD)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local cost = Config.UpgradeCost(rod, lvl)
|
local cost = Config.UpgradeCost(rod, lvl)
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
|
notify(player, "Нужно " .. cost .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -3495,17 +3495,17 @@ local function buy(player, kind, id)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if potion.level and data.level < potion.level then
|
if potion.level and data.level < potion.level then
|
||||||
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < potion.price then
|
if data.coins < potion.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
|
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= potion.price
|
data.coins -= potion.price
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
notify(player, ("🍀 %s: удача +%d%% на %d мин"):format(potion.name, potion.bonus * 100, potion.duration / 60), GREEN)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local list, owned
|
local list, owned
|
||||||
@@ -3522,16 +3522,16 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
if not owned[id] then
|
if not owned[id] then
|
||||||
if data.level < item.level then
|
if data.level < item.level then
|
||||||
notify(player, "Нужен уровень " .. item.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < item.price then
|
if data.coins < item.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
|
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= item.price
|
data.coins -= item.price
|
||||||
owned[id] = true
|
owned[id] = true
|
||||||
notify(player, "Куплено: " .. item.name .. "!", GREEN)
|
notify(player, "✅ " .. item.name, GREEN)
|
||||||
end
|
end
|
||||||
if kind == "Rod" then
|
if kind == "Rod" then
|
||||||
data.rod = id
|
data.rod = id
|
||||||
@@ -3561,11 +3561,11 @@ local function teleportTo(player, worldId)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if world.soon then
|
if world.soon then
|
||||||
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
|
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s откроется на %d уровне"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -3652,13 +3652,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -3684,7 +3684,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
|
|||||||
if gp.id == passId then
|
if gp.id == passId then
|
||||||
passes[player] = passes[player] or {}
|
passes[player] = passes[player] or {}
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
|
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
||||||
if gp.key == "VIP" then
|
if gp.key == "VIP" then
|
||||||
vipTag(player)
|
vipTag(player)
|
||||||
end
|
end
|
||||||
@@ -3720,7 +3720,7 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
end
|
end
|
||||||
if product.boost then
|
if product.boost then
|
||||||
applyPotion(data, product.boost, product.duration)
|
applyPotion(data, product.boost, product.duration)
|
||||||
notify(player, ("Спасибо! Удача +%d%% на %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
||||||
end
|
end
|
||||||
table.insert(data.receipts, info.PurchaseId)
|
table.insert(data.receipts, info.PurchaseId)
|
||||||
if #data.receipts > 50 then
|
if #data.receipts > 50 then
|
||||||
@@ -3740,7 +3740,7 @@ task.spawn(function()
|
|||||||
workspace:SetAttribute("Event", currentEvent.id)
|
workspace:SetAttribute("Event", currentEvent.id)
|
||||||
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
||||||
for _, p in ipairs(Players:GetPlayers()) do
|
for _, p in ipairs(Players:GetPlayers()) do
|
||||||
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
|
notify(p, "🎉 " .. currentEvent.name, GOLD)
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
task.wait(currentEvent.duration)
|
task.wait(currentEvent.duration)
|
||||||
@@ -4059,6 +4059,8 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
|
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
@@ -4067,11 +4069,13 @@ local function softPlate(props, textProps)
|
|||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
||||||
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
||||||
for k, v in pairs(textProps) do
|
for k, v in pairs(textProps) do
|
||||||
d[k] = v
|
d[k] = v
|
||||||
end
|
end
|
||||||
return plate, text(d)
|
local label = text(d)
|
||||||
|
label.FontFace = HINT_FONT
|
||||||
|
return plate, label
|
||||||
end
|
end
|
||||||
local function popIn(obj, from)
|
local function popIn(obj, from)
|
||||||
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
||||||
@@ -4195,7 +4199,7 @@ end
|
|||||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||||
local statusLabel = softPlate(
|
local statusLabel = softPlate(
|
||||||
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
||||||
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
local mgFrame = new("Frame", {
|
local mgFrame = new("Frame", {
|
||||||
@@ -4805,7 +4809,7 @@ robuxWin.render = function(tab)
|
|||||||
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
||||||
onClick = function()
|
onClick = function()
|
||||||
if not it.id or it.id == 0 then
|
if not it.id or it.id == 0 then
|
||||||
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
if tab == "passes" then
|
||||||
@@ -5467,7 +5471,7 @@ local function advanceTutorial(step)
|
|||||||
guideStep = step
|
guideStep = step
|
||||||
remote:FireServer("Tutorial", step)
|
remote:FireServer("Tutorial", step)
|
||||||
if step >= Config.TutorialDone then
|
if step >= Config.TutorialDone then
|
||||||
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
|
notify("🎓 Обучение пройдено!", C.gold)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -5599,11 +5603,11 @@ end
|
|||||||
local function guideRoute(step, pos, world)
|
local function guideRoute(step, pos, world)
|
||||||
local inW1 = world and world.id == "World1"
|
local inW1 = world and world.id == "World1"
|
||||||
if step == 0 and not world then
|
if step == 0 and not world then
|
||||||
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
|
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
|
||||||
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
||||||
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
|
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
|
||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
local route = {}
|
local route = {}
|
||||||
local rel = pos - W1
|
local rel = pos - W1
|
||||||
@@ -5611,7 +5615,7 @@ local function guideRoute(step, pos, world)
|
|||||||
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
||||||
end
|
end
|
||||||
table.insert(route, guideMarker("GuideSell"))
|
table.insert(route, guideMarker("GuideSell"))
|
||||||
return route, "💰 Продай рыбу в скупке", "Sell"
|
return route, "💰 Продай рыбу", "Sell"
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -5755,7 +5759,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
|
|||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
||||||
notify(("Продано рыб: %d → +%s 💰"):format(b, fmt(a)), Color3.fromRGB(120, 255, 140))
|
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||||
elseif action == "Inventory" then
|
elseif action == "Inventory" then
|
||||||
inventory = a or {}
|
inventory = a or {}
|
||||||
discovered = b or {}
|
discovered = b or {}
|
||||||
|
|||||||
@@ -114,20 +114,20 @@ end
|
|||||||
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
||||||
function Config.CanCastFrom(world, pos, humanoid)
|
function Config.CanCastFrom(world, pos, humanoid)
|
||||||
if not world then
|
if not world then
|
||||||
return "Здесь нет рыбы — иди в один из миров 🌍"
|
return "🌍 Тут нет рыбы"
|
||||||
end
|
end
|
||||||
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
||||||
if humanoid then
|
if humanoid then
|
||||||
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
||||||
end
|
end
|
||||||
if inWater then
|
if inWater then
|
||||||
return "Из воды закидывать нельзя — выйди на берег или на причал"
|
return "🏊 Выйди из воды"
|
||||||
end
|
end
|
||||||
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
||||||
return "Встань на землю, чтобы закинуть удочку"
|
return "Встань на землю"
|
||||||
end
|
end
|
||||||
if Config.WaterGap(world, pos) > Config.CastReach then
|
if Config.WaterGap(world, pos) > Config.CastReach then
|
||||||
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
|
return "🌊 Подойди к воде"
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -242,10 +242,10 @@ local function addXp(player, data, amount)
|
|||||||
leveled = true
|
leveled = true
|
||||||
end
|
end
|
||||||
if leveled then
|
if leveled then
|
||||||
notify(player, "⭐ Новый уровень: " .. data.level .. "! Удача +" .. math.floor(Config.LuckPerPlayerLevel * 100) .. "%", GOLD)
|
notify(player, "⭐ Уровень " .. data.level .. "!", GOLD)
|
||||||
for _, w in ipairs(Config.Worlds) do
|
for _, w in ipairs(Config.Worlds) do
|
||||||
if w.level == data.level and not w.soon then
|
if w.level == data.level and not w.soon then
|
||||||
notify(player, "🌍 Открыт новый мир: " .. w.icon .. " " .. w.name .. "!", w.color)
|
notify(player, "🌍 Открыт: " .. w.icon .. " " .. w.name, w.color)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -301,7 +301,7 @@ local function questProgress(player, kind, amount)
|
|||||||
q.progress = math.min(q.goal, q.progress + amount)
|
q.progress = math.min(q.goal, q.progress + amount)
|
||||||
changed = true
|
changed = true
|
||||||
if q.progress >= q.goal then
|
if q.progress >= q.goal then
|
||||||
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
|
notify(player, "📜 Задание готово! (Q)", GOLD)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -338,7 +338,7 @@ local function claimDaily(player)
|
|||||||
end
|
end
|
||||||
local t = today()
|
local t = today()
|
||||||
if data.daily.last >= t then
|
if data.daily.last >= t then
|
||||||
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
||||||
@@ -374,7 +374,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
for _, f in ipairs(zone.fish) do
|
for _, f in ipairs(zone.fish) do
|
||||||
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
||||||
notify(player, "Сначала поймай всех рыб этой группы!", RED)
|
notify(player, "Сначала поймай всех", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -382,7 +382,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
notify(player, ("🏆 Мир «%s» собран! +%d 💰 и +%d%% удачи навсегда"):format(world.name, coins, math.floor(Config.MasteryLuck * 100 + 0.5)), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -390,7 +390,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
notify(player, ("📖 Коллекция «%s»: +%d 💰 +%d XP"):format(Config.Rarities[rarity].name, r.coins * world.mult, r.xp * world.mult), GREEN)
|
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -797,12 +797,12 @@ local function onCast(player, power)
|
|||||||
local target, dist = findWater(hrp, world, power)
|
local target, dist = findWater(hrp, world, power)
|
||||||
if not target then
|
if not target then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if #data.items >= bagCapacity(player, data) then
|
if #data.items >= bagCapacity(player, data) then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
|
notify(player, "🎒 Сумка полна!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -875,7 +875,7 @@ local function onCast(player, power)
|
|||||||
if fishing[player] == s and s.stage == "bite" then
|
if fishing[player] == s and s.stage == "bite" then
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба ушла… не успел вытащить.", RED)
|
notify(player, "🐟 Рыба ушла", RED)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@@ -903,7 +903,7 @@ local function onCatch(player, success, misses)
|
|||||||
if failed then
|
if failed then
|
||||||
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба сорвалась!", RED)
|
notify(player, "🐟 Сорвалась!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
||||||
@@ -996,7 +996,7 @@ local function sellItems(player, filterUid)
|
|||||||
end
|
end
|
||||||
if count == 0 then
|
if count == 0 then
|
||||||
if filterUid == nil then
|
if filterUid == nil then
|
||||||
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -1022,12 +1022,12 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local lvl = rodLevel(data, id)
|
local lvl = rodLevel(data, id)
|
||||||
if lvl >= Config.RodUpgrade.maxLevel then
|
if lvl >= Config.RodUpgrade.maxLevel then
|
||||||
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
|
notify(player, "★★★★★ Максимум", GOLD)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local cost = Config.UpgradeCost(rod, lvl)
|
local cost = Config.UpgradeCost(rod, lvl)
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
|
notify(player, "Нужно " .. cost .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -1046,17 +1046,17 @@ local function buy(player, kind, id)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if potion.level and data.level < potion.level then
|
if potion.level and data.level < potion.level then
|
||||||
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < potion.price then
|
if data.coins < potion.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
|
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= potion.price
|
data.coins -= potion.price
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
notify(player, ("🍀 %s: удача +%d%% на %d мин"):format(potion.name, potion.bonus * 100, potion.duration / 60), GREEN)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local list, owned
|
local list, owned
|
||||||
@@ -1073,16 +1073,16 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
if not owned[id] then
|
if not owned[id] then
|
||||||
if data.level < item.level then
|
if data.level < item.level then
|
||||||
notify(player, "Нужен уровень " .. item.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < item.price then
|
if data.coins < item.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
|
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= item.price
|
data.coins -= item.price
|
||||||
owned[id] = true
|
owned[id] = true
|
||||||
notify(player, "Куплено: " .. item.name .. "!", GREEN)
|
notify(player, "✅ " .. item.name, GREEN)
|
||||||
end
|
end
|
||||||
if kind == "Rod" then
|
if kind == "Rod" then
|
||||||
data.rod = id
|
data.rod = id
|
||||||
@@ -1112,11 +1112,11 @@ local function teleportTo(player, worldId)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if world.soon then
|
if world.soon then
|
||||||
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
|
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s откроется на %d уровне"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -1203,13 +1203,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -1235,7 +1235,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
|
|||||||
if gp.id == passId then
|
if gp.id == passId then
|
||||||
passes[player] = passes[player] or {}
|
passes[player] = passes[player] or {}
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
|
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
||||||
if gp.key == "VIP" then
|
if gp.key == "VIP" then
|
||||||
vipTag(player)
|
vipTag(player)
|
||||||
end
|
end
|
||||||
@@ -1271,7 +1271,7 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
end
|
end
|
||||||
if product.boost then
|
if product.boost then
|
||||||
applyPotion(data, product.boost, product.duration)
|
applyPotion(data, product.boost, product.duration)
|
||||||
notify(player, ("Спасибо! Удача +%d%% на %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
||||||
end
|
end
|
||||||
table.insert(data.receipts, info.PurchaseId)
|
table.insert(data.receipts, info.PurchaseId)
|
||||||
if #data.receipts > 50 then
|
if #data.receipts > 50 then
|
||||||
@@ -1291,7 +1291,7 @@ task.spawn(function()
|
|||||||
workspace:SetAttribute("Event", currentEvent.id)
|
workspace:SetAttribute("Event", currentEvent.id)
|
||||||
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
||||||
for _, p in ipairs(Players:GetPlayers()) do
|
for _, p in ipairs(Players:GetPlayers()) do
|
||||||
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
|
notify(p, "🎉 " .. currentEvent.name, GOLD)
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
task.wait(currentEvent.duration)
|
task.wait(currentEvent.duration)
|
||||||
|
|||||||
@@ -226,6 +226,8 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
|
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
@@ -234,11 +236,13 @@ local function softPlate(props, textProps)
|
|||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
||||||
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
||||||
for k, v in pairs(textProps) do
|
for k, v in pairs(textProps) do
|
||||||
d[k] = v
|
d[k] = v
|
||||||
end
|
end
|
||||||
return plate, text(d)
|
local label = text(d)
|
||||||
|
label.FontFace = HINT_FONT
|
||||||
|
return plate, label
|
||||||
end
|
end
|
||||||
local function popIn(obj, from)
|
local function popIn(obj, from)
|
||||||
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
||||||
@@ -362,7 +366,7 @@ end
|
|||||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||||
local statusLabel = softPlate(
|
local statusLabel = softPlate(
|
||||||
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
||||||
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
local mgFrame = new("Frame", {
|
local mgFrame = new("Frame", {
|
||||||
@@ -972,7 +976,7 @@ robuxWin.render = function(tab)
|
|||||||
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
||||||
onClick = function()
|
onClick = function()
|
||||||
if not it.id or it.id == 0 then
|
if not it.id or it.id == 0 then
|
||||||
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
if tab == "passes" then
|
||||||
@@ -1634,7 +1638,7 @@ local function advanceTutorial(step)
|
|||||||
guideStep = step
|
guideStep = step
|
||||||
remote:FireServer("Tutorial", step)
|
remote:FireServer("Tutorial", step)
|
||||||
if step >= Config.TutorialDone then
|
if step >= Config.TutorialDone then
|
||||||
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
|
notify("🎓 Обучение пройдено!", C.gold)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1766,11 +1770,11 @@ end
|
|||||||
local function guideRoute(step, pos, world)
|
local function guideRoute(step, pos, world)
|
||||||
local inW1 = world and world.id == "World1"
|
local inW1 = world and world.id == "World1"
|
||||||
if step == 0 and not world then
|
if step == 0 and not world then
|
||||||
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
|
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
|
||||||
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
||||||
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
|
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
|
||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
local route = {}
|
local route = {}
|
||||||
local rel = pos - W1
|
local rel = pos - W1
|
||||||
@@ -1778,7 +1782,7 @@ local function guideRoute(step, pos, world)
|
|||||||
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
||||||
end
|
end
|
||||||
table.insert(route, guideMarker("GuideSell"))
|
table.insert(route, guideMarker("GuideSell"))
|
||||||
return route, "💰 Продай рыбу в скупке", "Sell"
|
return route, "💰 Продай рыбу", "Sell"
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -1922,7 +1926,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
|
|||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
||||||
notify(("Продано рыб: %d → +%s 💰"):format(b, fmt(a)), Color3.fromRGB(120, 255, 140))
|
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||||
elseif action == "Inventory" then
|
elseif action == "Inventory" then
|
||||||
inventory = a or {}
|
inventory = a or {}
|
||||||
discovered = b or {}
|
discovered = b or {}
|
||||||
|
|||||||
+45
-41
@@ -123,20 +123,20 @@ end
|
|||||||
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
||||||
function Config.CanCastFrom(world, pos, humanoid)
|
function Config.CanCastFrom(world, pos, humanoid)
|
||||||
if not world then
|
if not world then
|
||||||
return "Здесь нет рыбы — иди в один из миров 🌍"
|
return "🌍 Тут нет рыбы"
|
||||||
end
|
end
|
||||||
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
||||||
if humanoid then
|
if humanoid then
|
||||||
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
||||||
end
|
end
|
||||||
if inWater then
|
if inWater then
|
||||||
return "Из воды закидывать нельзя — выйди на берег или на причал"
|
return "🏊 Выйди из воды"
|
||||||
end
|
end
|
||||||
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
||||||
return "Встань на землю, чтобы закинуть удочку"
|
return "Встань на землю"
|
||||||
end
|
end
|
||||||
if Config.WaterGap(world, pos) > Config.CastReach then
|
if Config.WaterGap(world, pos) > Config.CastReach then
|
||||||
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
|
return "🌊 Подойди к воде"
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@@ -2697,10 +2697,10 @@ local function addXp(player, data, amount)
|
|||||||
leveled = true
|
leveled = true
|
||||||
end
|
end
|
||||||
if leveled then
|
if leveled then
|
||||||
notify(player, "⭐ Новый уровень: " .. data.level .. "! Удача +" .. math.floor(Config.LuckPerPlayerLevel * 100) .. "%", GOLD)
|
notify(player, "⭐ Уровень " .. data.level .. "!", GOLD)
|
||||||
for _, w in ipairs(Config.Worlds) do
|
for _, w in ipairs(Config.Worlds) do
|
||||||
if w.level == data.level and not w.soon then
|
if w.level == data.level and not w.soon then
|
||||||
notify(player, "🌍 Открыт новый мир: " .. w.icon .. " " .. w.name .. "!", w.color)
|
notify(player, "🌍 Открыт: " .. w.icon .. " " .. w.name, w.color)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2756,7 +2756,7 @@ local function questProgress(player, kind, amount)
|
|||||||
q.progress = math.min(q.goal, q.progress + amount)
|
q.progress = math.min(q.goal, q.progress + amount)
|
||||||
changed = true
|
changed = true
|
||||||
if q.progress >= q.goal then
|
if q.progress >= q.goal then
|
||||||
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
|
notify(player, "📜 Задание готово! (Q)", GOLD)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2793,7 +2793,7 @@ local function claimDaily(player)
|
|||||||
end
|
end
|
||||||
local t = today()
|
local t = today()
|
||||||
if data.daily.last >= t then
|
if data.daily.last >= t then
|
||||||
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
||||||
@@ -2829,7 +2829,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
for _, f in ipairs(zone.fish) do
|
for _, f in ipairs(zone.fish) do
|
||||||
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
||||||
notify(player, "Сначала поймай всех рыб этой группы!", RED)
|
notify(player, "Сначала поймай всех", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -2837,7 +2837,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
notify(player, ("🏆 Мир «%s» собран! +%d 💰 и +%d%% удачи навсегда"):format(world.name, coins, math.floor(Config.MasteryLuck * 100 + 0.5)), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -2845,7 +2845,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
notify(player, ("📖 Коллекция «%s»: +%d 💰 +%d XP"):format(Config.Rarities[rarity].name, r.coins * world.mult, r.xp * world.mult), GREEN)
|
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -3252,12 +3252,12 @@ local function onCast(player, power)
|
|||||||
local target, dist = findWater(hrp, world, power)
|
local target, dist = findWater(hrp, world, power)
|
||||||
if not target then
|
if not target then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if #data.items >= bagCapacity(player, data) then
|
if #data.items >= bagCapacity(player, data) then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
|
notify(player, "🎒 Сумка полна!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -3330,7 +3330,7 @@ local function onCast(player, power)
|
|||||||
if fishing[player] == s and s.stage == "bite" then
|
if fishing[player] == s and s.stage == "bite" then
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба ушла… не успел вытащить.", RED)
|
notify(player, "🐟 Рыба ушла", RED)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@@ -3358,7 +3358,7 @@ local function onCatch(player, success, misses)
|
|||||||
if failed then
|
if failed then
|
||||||
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба сорвалась!", RED)
|
notify(player, "🐟 Сорвалась!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
||||||
@@ -3451,7 +3451,7 @@ local function sellItems(player, filterUid)
|
|||||||
end
|
end
|
||||||
if count == 0 then
|
if count == 0 then
|
||||||
if filterUid == nil then
|
if filterUid == nil then
|
||||||
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -3477,12 +3477,12 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local lvl = rodLevel(data, id)
|
local lvl = rodLevel(data, id)
|
||||||
if lvl >= Config.RodUpgrade.maxLevel then
|
if lvl >= Config.RodUpgrade.maxLevel then
|
||||||
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
|
notify(player, "★★★★★ Максимум", GOLD)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local cost = Config.UpgradeCost(rod, lvl)
|
local cost = Config.UpgradeCost(rod, lvl)
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
|
notify(player, "Нужно " .. cost .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -3501,17 +3501,17 @@ local function buy(player, kind, id)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if potion.level and data.level < potion.level then
|
if potion.level and data.level < potion.level then
|
||||||
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < potion.price then
|
if data.coins < potion.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
|
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= potion.price
|
data.coins -= potion.price
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
notify(player, ("🍀 %s: удача +%d%% на %d мин"):format(potion.name, potion.bonus * 100, potion.duration / 60), GREEN)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local list, owned
|
local list, owned
|
||||||
@@ -3528,16 +3528,16 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
if not owned[id] then
|
if not owned[id] then
|
||||||
if data.level < item.level then
|
if data.level < item.level then
|
||||||
notify(player, "Нужен уровень " .. item.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < item.price then
|
if data.coins < item.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
|
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= item.price
|
data.coins -= item.price
|
||||||
owned[id] = true
|
owned[id] = true
|
||||||
notify(player, "Куплено: " .. item.name .. "!", GREEN)
|
notify(player, "✅ " .. item.name, GREEN)
|
||||||
end
|
end
|
||||||
if kind == "Rod" then
|
if kind == "Rod" then
|
||||||
data.rod = id
|
data.rod = id
|
||||||
@@ -3567,11 +3567,11 @@ local function teleportTo(player, worldId)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if world.soon then
|
if world.soon then
|
||||||
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
|
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s откроется на %d уровне"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -3658,13 +3658,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -3690,7 +3690,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
|
|||||||
if gp.id == passId then
|
if gp.id == passId then
|
||||||
passes[player] = passes[player] or {}
|
passes[player] = passes[player] or {}
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
|
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
||||||
if gp.key == "VIP" then
|
if gp.key == "VIP" then
|
||||||
vipTag(player)
|
vipTag(player)
|
||||||
end
|
end
|
||||||
@@ -3726,7 +3726,7 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
end
|
end
|
||||||
if product.boost then
|
if product.boost then
|
||||||
applyPotion(data, product.boost, product.duration)
|
applyPotion(data, product.boost, product.duration)
|
||||||
notify(player, ("Спасибо! Удача +%d%% на %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
||||||
end
|
end
|
||||||
table.insert(data.receipts, info.PurchaseId)
|
table.insert(data.receipts, info.PurchaseId)
|
||||||
if #data.receipts > 50 then
|
if #data.receipts > 50 then
|
||||||
@@ -3746,7 +3746,7 @@ task.spawn(function()
|
|||||||
workspace:SetAttribute("Event", currentEvent.id)
|
workspace:SetAttribute("Event", currentEvent.id)
|
||||||
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
||||||
for _, p in ipairs(Players:GetPlayers()) do
|
for _, p in ipairs(Players:GetPlayers()) do
|
||||||
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
|
notify(p, "🎉 " .. currentEvent.name, GOLD)
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
task.wait(currentEvent.duration)
|
task.wait(currentEvent.duration)
|
||||||
@@ -4062,6 +4062,8 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
|
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
@@ -4070,11 +4072,13 @@ local function softPlate(props, textProps)
|
|||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
||||||
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
||||||
for k, v in pairs(textProps) do
|
for k, v in pairs(textProps) do
|
||||||
d[k] = v
|
d[k] = v
|
||||||
end
|
end
|
||||||
return plate, text(d)
|
local label = text(d)
|
||||||
|
label.FontFace = HINT_FONT
|
||||||
|
return plate, label
|
||||||
end
|
end
|
||||||
local function popIn(obj, from)
|
local function popIn(obj, from)
|
||||||
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
||||||
@@ -4198,7 +4202,7 @@ end
|
|||||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||||
local statusLabel = softPlate(
|
local statusLabel = softPlate(
|
||||||
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
||||||
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
local mgFrame = new("Frame", {
|
local mgFrame = new("Frame", {
|
||||||
@@ -4808,7 +4812,7 @@ robuxWin.render = function(tab)
|
|||||||
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
||||||
onClick = function()
|
onClick = function()
|
||||||
if not it.id or it.id == 0 then
|
if not it.id or it.id == 0 then
|
||||||
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
if tab == "passes" then
|
||||||
@@ -5470,7 +5474,7 @@ local function advanceTutorial(step)
|
|||||||
guideStep = step
|
guideStep = step
|
||||||
remote:FireServer("Tutorial", step)
|
remote:FireServer("Tutorial", step)
|
||||||
if step >= Config.TutorialDone then
|
if step >= Config.TutorialDone then
|
||||||
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
|
notify("🎓 Обучение пройдено!", C.gold)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -5602,11 +5606,11 @@ end
|
|||||||
local function guideRoute(step, pos, world)
|
local function guideRoute(step, pos, world)
|
||||||
local inW1 = world and world.id == "World1"
|
local inW1 = world and world.id == "World1"
|
||||||
if step == 0 and not world then
|
if step == 0 and not world then
|
||||||
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
|
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
|
||||||
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
||||||
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
|
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
|
||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
local route = {}
|
local route = {}
|
||||||
local rel = pos - W1
|
local rel = pos - W1
|
||||||
@@ -5614,7 +5618,7 @@ local function guideRoute(step, pos, world)
|
|||||||
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
||||||
end
|
end
|
||||||
table.insert(route, guideMarker("GuideSell"))
|
table.insert(route, guideMarker("GuideSell"))
|
||||||
return route, "💰 Продай рыбу в скупке", "Sell"
|
return route, "💰 Продай рыбу", "Sell"
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -5758,7 +5762,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
|
|||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
||||||
notify(("Продано рыб: %d → +%s 💰"):format(b, fmt(a)), Color3.fromRGB(120, 255, 140))
|
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||||
elseif action == "Inventory" then
|
elseif action == "Inventory" then
|
||||||
inventory = a or {}
|
inventory = a or {}
|
||||||
discovered = b or {}
|
discovered = b or {}
|
||||||
|
|||||||
@@ -113,20 +113,20 @@ end
|
|||||||
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
|
||||||
function Config.CanCastFrom(world, pos, humanoid)
|
function Config.CanCastFrom(world, pos, humanoid)
|
||||||
if not world then
|
if not world then
|
||||||
return "Здесь нет рыбы — иди в один из миров 🌍"
|
return "🌍 Тут нет рыбы"
|
||||||
end
|
end
|
||||||
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
|
||||||
if humanoid then
|
if humanoid then
|
||||||
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
|
||||||
end
|
end
|
||||||
if inWater then
|
if inWater then
|
||||||
return "Из воды закидывать нельзя — выйди на берег или на причал"
|
return "🏊 Выйди из воды"
|
||||||
end
|
end
|
||||||
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
|
||||||
return "Встань на землю, чтобы закинуть удочку"
|
return "Встань на землю"
|
||||||
end
|
end
|
||||||
if Config.WaterGap(world, pos) > Config.CastReach then
|
if Config.WaterGap(world, pos) > Config.CastReach then
|
||||||
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
|
return "🌊 Подойди к воде"
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -241,10 +241,10 @@ local function addXp(player, data, amount)
|
|||||||
leveled = true
|
leveled = true
|
||||||
end
|
end
|
||||||
if leveled then
|
if leveled then
|
||||||
notify(player, "⭐ Новый уровень: " .. data.level .. "! Удача +" .. math.floor(Config.LuckPerPlayerLevel * 100) .. "%", GOLD)
|
notify(player, "⭐ Уровень " .. data.level .. "!", GOLD)
|
||||||
for _, w in ipairs(Config.Worlds) do
|
for _, w in ipairs(Config.Worlds) do
|
||||||
if w.level == data.level and not w.soon then
|
if w.level == data.level and not w.soon then
|
||||||
notify(player, "🌍 Открыт новый мир: " .. w.icon .. " " .. w.name .. "!", w.color)
|
notify(player, "🌍 Открыт: " .. w.icon .. " " .. w.name, w.color)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -300,7 +300,7 @@ local function questProgress(player, kind, amount)
|
|||||||
q.progress = math.min(q.goal, q.progress + amount)
|
q.progress = math.min(q.goal, q.progress + amount)
|
||||||
changed = true
|
changed = true
|
||||||
if q.progress >= q.goal then
|
if q.progress >= q.goal then
|
||||||
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
|
notify(player, "📜 Задание готово! (Q)", GOLD)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -337,7 +337,7 @@ local function claimDaily(player)
|
|||||||
end
|
end
|
||||||
local t = today()
|
local t = today()
|
||||||
if data.daily.last >= t then
|
if data.daily.last >= t then
|
||||||
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
local streak = (data.daily.last == t - 1) and (data.daily.streak % 7 + 1) or 1
|
||||||
@@ -373,7 +373,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
for _, f in ipairs(zone.fish) do
|
for _, f in ipairs(zone.fish) do
|
||||||
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
|
||||||
notify(player, "Сначала поймай всех рыб этой группы!", RED)
|
notify(player, "Сначала поймай всех", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -381,7 +381,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
notify(player, ("🏆 Мир «%s» собран! +%d 💰 и +%d%% удачи навсегда"):format(world.name, coins, math.floor(Config.MasteryLuck * 100 + 0.5)), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -389,7 +389,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
notify(player, ("📖 Коллекция «%s»: +%d 💰 +%d XP"):format(Config.Rarities[rarity].name, r.coins * world.mult, r.xp * world.mult), GREEN)
|
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -796,12 +796,12 @@ local function onCast(player, power)
|
|||||||
local target, dist = findWater(hrp, world, power)
|
local target, dist = findWater(hrp, world, power)
|
||||||
if not target then
|
if not target then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if #data.items >= bagCapacity(player, data) then
|
if #data.items >= bagCapacity(player, data) then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
|
notify(player, "🎒 Сумка полна!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -874,7 +874,7 @@ local function onCast(player, power)
|
|||||||
if fishing[player] == s and s.stage == "bite" then
|
if fishing[player] == s and s.stage == "bite" then
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба ушла… не успел вытащить.", RED)
|
notify(player, "🐟 Рыба ушла", RED)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
@@ -902,7 +902,7 @@ local function onCatch(player, success, misses)
|
|||||||
if failed then
|
if failed then
|
||||||
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
gripSequence(tool, { { REST_ANGLE, 0.3 } })
|
||||||
remote:FireClient(player, "Escaped")
|
remote:FireClient(player, "Escaped")
|
||||||
notify(player, "Рыба сорвалась!", RED)
|
notify(player, "🐟 Сорвалась!", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
|
||||||
@@ -995,7 +995,7 @@ local function sellItems(player, filterUid)
|
|||||||
end
|
end
|
||||||
if count == 0 then
|
if count == 0 then
|
||||||
if filterUid == nil then
|
if filterUid == nil then
|
||||||
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
|
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@@ -1021,12 +1021,12 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local lvl = rodLevel(data, id)
|
local lvl = rodLevel(data, id)
|
||||||
if lvl >= Config.RodUpgrade.maxLevel then
|
if lvl >= Config.RodUpgrade.maxLevel then
|
||||||
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
|
notify(player, "★★★★★ Максимум", GOLD)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local cost = Config.UpgradeCost(rod, lvl)
|
local cost = Config.UpgradeCost(rod, lvl)
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
|
notify(player, "Нужно " .. cost .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -1045,17 +1045,17 @@ local function buy(player, kind, id)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if potion.level and data.level < potion.level then
|
if potion.level and data.level < potion.level then
|
||||||
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < potion.price then
|
if data.coins < potion.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
|
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= potion.price
|
data.coins -= potion.price
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
notify(player, ("🍀 %s: удача +%d%% на %d мин"):format(potion.name, potion.bonus * 100, potion.duration / 60), GREEN)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(potion.bonus * 100, potion.duration / 60), GREEN)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local list, owned
|
local list, owned
|
||||||
@@ -1072,16 +1072,16 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
if not owned[id] then
|
if not owned[id] then
|
||||||
if data.level < item.level then
|
if data.level < item.level then
|
||||||
notify(player, "Нужен уровень " .. item.level .. "!", RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.coins < item.price then
|
if data.coins < item.price then
|
||||||
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
|
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= item.price
|
data.coins -= item.price
|
||||||
owned[id] = true
|
owned[id] = true
|
||||||
notify(player, "Куплено: " .. item.name .. "!", GREEN)
|
notify(player, "✅ " .. item.name, GREEN)
|
||||||
end
|
end
|
||||||
if kind == "Rod" then
|
if kind == "Rod" then
|
||||||
data.rod = id
|
data.rod = id
|
||||||
@@ -1111,11 +1111,11 @@ local function teleportTo(player, worldId)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
if world.soon then
|
if world.soon then
|
||||||
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
|
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s откроется на %d уровне"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -1202,13 +1202,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
|
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -1234,7 +1234,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
|
|||||||
if gp.id == passId then
|
if gp.id == passId then
|
||||||
passes[player] = passes[player] or {}
|
passes[player] = passes[player] or {}
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
|
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
||||||
if gp.key == "VIP" then
|
if gp.key == "VIP" then
|
||||||
vipTag(player)
|
vipTag(player)
|
||||||
end
|
end
|
||||||
@@ -1270,7 +1270,7 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
end
|
end
|
||||||
if product.boost then
|
if product.boost then
|
||||||
applyPotion(data, product.boost, product.duration)
|
applyPotion(data, product.boost, product.duration)
|
||||||
notify(player, ("Спасибо! Удача +%d%% на %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
notify(player, ("🍀 +%d%% удачи, %d мин"):format(product.boost * 100, product.duration / 60), GOLD)
|
||||||
end
|
end
|
||||||
table.insert(data.receipts, info.PurchaseId)
|
table.insert(data.receipts, info.PurchaseId)
|
||||||
if #data.receipts > 50 then
|
if #data.receipts > 50 then
|
||||||
@@ -1290,7 +1290,7 @@ task.spawn(function()
|
|||||||
workspace:SetAttribute("Event", currentEvent.id)
|
workspace:SetAttribute("Event", currentEvent.id)
|
||||||
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
|
||||||
for _, p in ipairs(Players:GetPlayers()) do
|
for _, p in ipairs(Players:GetPlayers()) do
|
||||||
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
|
notify(p, "🎉 " .. currentEvent.name, GOLD)
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
task.wait(currentEvent.duration)
|
task.wait(currentEvent.duration)
|
||||||
|
|||||||
@@ -225,6 +225,8 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.18, 0.62),
|
||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
|
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
@@ -233,11 +235,13 @@ local function softPlate(props, textProps)
|
|||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
new("UIPadding", { PaddingLeft = UDim.new(0, 48), PaddingRight = UDim.new(0, 48), Parent = plate })
|
||||||
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, Font = TITLE, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
local d = { Size = UDim2.fromScale(0, 1), AutomaticSize = Enum.AutomaticSize.X, TextXAlignment = Enum.TextXAlignment.Center, Parent = plate }
|
||||||
for k, v in pairs(textProps) do
|
for k, v in pairs(textProps) do
|
||||||
d[k] = v
|
d[k] = v
|
||||||
end
|
end
|
||||||
return plate, text(d)
|
local label = text(d)
|
||||||
|
label.FontFace = HINT_FONT
|
||||||
|
return plate, label
|
||||||
end
|
end
|
||||||
local function popIn(obj, from)
|
local function popIn(obj, from)
|
||||||
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
|
||||||
@@ -361,7 +365,7 @@ end
|
|||||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||||
local statusLabel = softPlate(
|
local statusLabel = softPlate(
|
||||||
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
||||||
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
local mgFrame = new("Frame", {
|
local mgFrame = new("Frame", {
|
||||||
@@ -971,7 +975,7 @@ robuxWin.render = function(tab)
|
|||||||
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
buttonText = has and "Куплено ✓" or ("R$ " .. it.robux), buttonColor = has and C.grey or C.green, active = not has,
|
||||||
onClick = function()
|
onClick = function()
|
||||||
if not it.id or it.id == 0 then
|
if not it.id or it.id == 0 then
|
||||||
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
if tab == "passes" then
|
||||||
@@ -1633,7 +1637,7 @@ local function advanceTutorial(step)
|
|||||||
guideStep = step
|
guideStep = step
|
||||||
remote:FireServer("Tutorial", step)
|
remote:FireServer("Tutorial", step)
|
||||||
if step >= Config.TutorialDone then
|
if step >= Config.TutorialDone then
|
||||||
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
|
notify("🎓 Обучение пройдено!", C.gold)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -1765,11 +1769,11 @@ end
|
|||||||
local function guideRoute(step, pos, world)
|
local function guideRoute(step, pos, world)
|
||||||
local inW1 = world and world.id == "World1"
|
local inW1 = world and world.id == "World1"
|
||||||
if step == 0 and not world then
|
if step == 0 and not world then
|
||||||
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
|
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
|
||||||
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
elseif not world then -- шаги 1–3 из лобби: сначала в портал
|
||||||
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
|
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
|
||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
local route = {}
|
local route = {}
|
||||||
local rel = pos - W1
|
local rel = pos - W1
|
||||||
@@ -1777,7 +1781,7 @@ local function guideRoute(step, pos, world)
|
|||||||
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
|
||||||
end
|
end
|
||||||
table.insert(route, guideMarker("GuideSell"))
|
table.insert(route, guideMarker("GuideSell"))
|
||||||
return route, "💰 Продай рыбу в скупке", "Sell"
|
return route, "💰 Продай рыбу", "Sell"
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -1921,7 +1925,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
|
|||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
||||||
notify(("Продано рыб: %d → +%s 💰"):format(b, fmt(a)), Color3.fromRGB(120, 255, 140))
|
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||||
elseif action == "Inventory" then
|
elseif action == "Inventory" then
|
||||||
inventory = a or {}
|
inventory = a or {}
|
||||||
discovered = b or {}
|
discovered = b or {}
|
||||||
|
|||||||
Reference in new issue
Block a user