This commit is contained in:
listik committed 2026-11-02 23:35:42 +03:00
1 parent 1bb038816b
commit 57ba58f0ca
8 files changed
+180 -164

No files matched your search

+4 -4
View File
@@ -114,20 +114,20 @@ end
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
function Config.CanCastFrom(world, pos, humanoid)
if not world then
return "Здесь нет рыбы — иди в один из миров 🌍"
return "🌍 Тут нет рыбы"
end
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
if humanoid then
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
end
if inWater then
return "Из воды закидывать нельзя — выйди на берег или на причал"
return "🏊 Выйди из воды"
end
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
return "Встань на землю, чтобы закинуть удочку"
return "Встань на землю"
end
if Config.WaterGap(world, pos) > Config.CastReach then
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
return "🌊 Подойди к воде"
end
return true
end
+27 -27
View File
@@ -242,10 +242,10 @@ local function addXp(player, data, amount)
leveled = true
end
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
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
@@ -301,7 +301,7 @@ local function questProgress(player, kind, amount)
q.progress = math.min(q.goal, q.progress + amount)
changed = true
if q.progress >= q.goal then
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
notify(player, "📜 Задание готово! (Q)", GOLD)
end
end
end
@@ -338,7 +338,7 @@ local function claimDaily(player)
end
local t = today()
if data.daily.last >= t then
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
return
end
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
for _, f in ipairs(zone.fish) do
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
notify(player, "Сначала поймай всех рыб этой группы!", RED)
notify(player, "Сначала поймай всех", RED)
return
end
end
@@ -382,7 +382,7 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
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
local r = Config.CollectionRewards[rarity]
if not r then
@@ -390,7 +390,7 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * 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
updateStats(player)
sendInventory(player)
@@ -797,12 +797,12 @@ local function onCast(player, power)
local target, dist = findWater(hrp, world, power)
if not target then
remote:FireClient(player, "CastFail")
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
return
end
if #data.items >= bagCapacity(player, data) then
remote:FireClient(player, "CastFail")
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
notify(player, "🎒 Сумка полна!", RED)
return
end
@@ -875,7 +875,7 @@ local function onCast(player, power)
if fishing[player] == s and s.stage == "bite" then
stopFishing(player, false)
remote:FireClient(player, "Escaped")
notify(player, "Рыба ушла… не успел вытащить.", RED)
notify(player, "🐟 Рыба ушла", RED)
end
end)
end
@@ -903,7 +903,7 @@ local function onCatch(player, success, misses)
if failed then
gripSequence(tool, { { REST_ANGLE, 0.3 } })
remote:FireClient(player, "Escaped")
notify(player, "Рыба сорвалась!", RED)
notify(player, "🐟 Сорвалась!", RED)
return
end
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
@@ -996,7 +996,7 @@ local function sellItems(player, filterUid)
end
if count == 0 then
if filterUid == nil then
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
end
return
end
@@ -1022,12 +1022,12 @@ local function buy(player, kind, id)
end
local lvl = rodLevel(data, id)
if lvl >= Config.RodUpgrade.maxLevel then
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
notify(player, "★★★★★ Максимум", GOLD)
return
end
local cost = Config.UpgradeCost(rod, lvl)
if data.coins < cost then
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
notify(player, "Нужно " .. cost .. " 💰", RED)
return
end
data.coins -= cost
@@ -1046,17 +1046,17 @@ local function buy(player, kind, id)
return
end
if potion.level and data.level < potion.level then
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
if data.coins < potion.price then
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
notify(player, "Нужно " .. potion.price .. " 💰", RED)
return
end
data.coins -= potion.price
applyPotion(data, potion.bonus, potion.duration)
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
end
local list, owned
@@ -1073,16 +1073,16 @@ local function buy(player, kind, id)
end
if not owned[id] then
if data.level < item.level then
notify(player, "Нужен уровень " .. item.level .. "!", RED)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
if data.coins < item.price then
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
notify(player, "Нужно " .. item.price .. " 💰", RED)
return
end
data.coins -= item.price
owned[id] = true
notify(player, "Куплено: " .. item.name .. "!", GREEN)
notify(player, "✅ " .. item.name, GREEN)
end
if kind == "Rod" then
data.rod = id
@@ -1112,11 +1112,11 @@ local function teleportTo(player, worldId)
return
end
if world.soon then
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
return
end
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
end
markerName = world.id .. "Spawn"
@@ -1203,13 +1203,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -1235,7 +1235,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
if gp.id == passId then
passes[player] = passes[player] or {}
passes[player][gp.key] = true
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
if gp.key == "VIP" then
vipTag(player)
end
@@ -1271,7 +1271,7 @@ MarketplaceService.ProcessReceipt = function(info)
end
if product.boost then
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
table.insert(data.receipts, info.PurchaseId)
if #data.receipts > 50 then
@@ -1291,7 +1291,7 @@ task.spawn(function()
workspace:SetAttribute("Event", currentEvent.id)
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
for _, p in ipairs(Players:GetPlayers()) do
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
notify(p, "🎉 " .. currentEvent.name, GOLD)
updateStats(p)
end
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.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
@@ -234,11 +236,13 @@ local function softPlate(props, textProps)
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, 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
d[k] = v
end
return plate, text(d)
local label = text(d)
label.FontFace = HINT_FONT
return plate, label
end
local function popIn(obj, from)
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
@@ -362,7 +366,7 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
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 },
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
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,
onClick = function()
if not it.id or it.id == 0 then
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
return
end
if tab == "passes" then
@@ -1634,7 +1638,7 @@ local function advanceTutorial(step)
guideStep = step
remote:FireServer("Tutorial", step)
if step >= Config.TutorialDone then
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
notify("🎓 Обучение пройдено!", C.gold)
end
end
end
@@ -1766,11 +1770,11 @@ end
local function guideRoute(step, pos, world)
local inW1 = world and world.id == "World1"
if step == 0 and not world then
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
elseif not world then -- шаги 1–3 из лобби: сначала в портал
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
local route = {}
local rel = pos - W1
@@ -1778,7 +1782,7 @@ local function guideRoute(step, pos, world)
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
end
table.insert(route, guideMarker("GuideSell"))
return route, "💰 Продай рыбу в скупке", "Sell"
return route, "💰 Продай рыбу", "Sell"
end
return nil
end
@@ -1922,7 +1926,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
advanceTutorial(Config.TutorialDone)
end
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
inventory = a or {}
discovered = b or {}
+45 -41
View File
@@ -123,20 +123,20 @@ end
-- humanoid можно не передавать (на сервере его состояние ненадёжно) — тогда проверяем только по высоте.
function Config.CanCastFrom(world, pos, humanoid)
if not world then
return "Здесь нет рыбы — иди в один из миров 🌍"
return "🌍 Тут нет рыбы"
end
local inWater = pos.Y < (world.waterY or 0) + 2 -- у плывущего персонажа центр почти на уровне воды
if humanoid then
inWater = inWater or humanoid:GetState() == Enum.HumanoidStateType.Swimming or humanoid.FloorMaterial == Enum.Material.Water
end
if inWater then
return "Из воды закидывать нельзя — выйди на берег или на причал"
return "🏊 Выйди из воды"
end
if humanoid and humanoid.FloorMaterial == Enum.Material.Air then
return "Встань на землю, чтобы закинуть удочку"
return "Встань на землю"
end
if Config.WaterGap(world, pos) > Config.CastReach then
return "Подойди к воде: закидывать можно не дальше 2 м от берега"
return "🌊 Подойди к воде"
end
return true
end
@@ -2697,10 +2697,10 @@ local function addXp(player, data, amount)
leveled = true
end
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
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
@@ -2756,7 +2756,7 @@ local function questProgress(player, kind, amount)
q.progress = math.min(q.goal, q.progress + amount)
changed = true
if q.progress >= q.goal then
notify(player, "📜 Задание выполнено! Забери награду (клавиша Q)", GOLD)
notify(player, "📜 Задание готово! (Q)", GOLD)
end
end
end
@@ -2793,7 +2793,7 @@ local function claimDaily(player)
end
local t = today()
if data.daily.last >= t then
notify(player, "🎁 Сегодня награда уже получена. Приходи завтра!", Color3.fromRGB(255, 200, 120))
notify(player, "🎁 Приходи завтра", Color3.fromRGB(255, 200, 120))
return
end
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
for _, f in ipairs(zone.fish) do
if (rarity == "Master" or f.rarity == rarity) and not data.discovered[f.id] then
notify(player, "Сначала поймай всех рыб этой группы!", RED)
notify(player, "Сначала поймай всех", RED)
return
end
end
@@ -2837,7 +2837,7 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
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
local r = Config.CollectionRewards[rarity]
if not r then
@@ -2845,7 +2845,7 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * 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
updateStats(player)
sendInventory(player)
@@ -3252,12 +3252,12 @@ local function onCast(player, power)
local target, dist = findWater(hrp, world, power)
if not target then
remote:FireClient(player, "CastFail")
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
notify(player, "🌊 Подойди к воде", Color3.fromRGB(255, 200, 120))
return
end
if #data.items >= bagCapacity(player, data) then
remote:FireClient(player, "CastFail")
notify(player, "🎒 Сумка полна! Продай рыбу в скупке.", RED)
notify(player, "🎒 Сумка полна!", RED)
return
end
@@ -3330,7 +3330,7 @@ local function onCast(player, power)
if fishing[player] == s and s.stage == "bite" then
stopFishing(player, false)
remote:FireClient(player, "Escaped")
notify(player, "Рыба ушла… не успел вытащить.", RED)
notify(player, "🐟 Рыба ушла", RED)
end
end)
end
@@ -3358,7 +3358,7 @@ local function onCatch(player, success, misses)
if failed then
gripSequence(tool, { { REST_ANGLE, 0.3 } })
remote:FireClient(player, "Escaped")
notify(player, "Рыба сорвалась!", RED)
notify(player, "🐟 Сорвалась!", RED)
return
end
gripSequence(tool, { { 85, 0.15 }, { REST_ANGLE, 0.45 } })
@@ -3451,7 +3451,7 @@ local function sellItems(player, filterUid)
end
if count == 0 then
if filterUid == nil then
notify(player, "Нечего продавать — сначала поймай рыбу!", Color3.fromRGB(255, 200, 120))
notify(player, "🎒 Сумка пуста", Color3.fromRGB(255, 200, 120))
end
return
end
@@ -3477,12 +3477,12 @@ local function buy(player, kind, id)
end
local lvl = rodLevel(data, id)
if lvl >= Config.RodUpgrade.maxLevel then
notify(player, "Удочка уже улучшена до максимума ★★★★★", GOLD)
notify(player, "★★★★★ Максимум", GOLD)
return
end
local cost = Config.UpgradeCost(rod, lvl)
if data.coins < cost then
notify(player, "Не хватает монет: нужно " .. cost .. " 💰", RED)
notify(player, "Нужно " .. cost .. " 💰", RED)
return
end
data.coins -= cost
@@ -3501,17 +3501,17 @@ local function buy(player, kind, id)
return
end
if potion.level and data.level < potion.level then
notify(player, "Нужен уровень " .. potion.level .. "!", RED)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
if data.coins < potion.price then
notify(player, "Не хватает монет: нужно " .. potion.price .. " 💰", RED)
notify(player, "Нужно " .. potion.price .. " 💰", RED)
return
end
data.coins -= potion.price
applyPotion(data, potion.bonus, potion.duration)
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
end
local list, owned
@@ -3528,16 +3528,16 @@ local function buy(player, kind, id)
end
if not owned[id] then
if data.level < item.level then
notify(player, "Нужен уровень " .. item.level .. "!", RED)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
if data.coins < item.price then
notify(player, "Не хватает монет: нужно " .. item.price .. " 💰", RED)
notify(player, "Нужно " .. item.price .. " 💰", RED)
return
end
data.coins -= item.price
owned[id] = true
notify(player, "Куплено: " .. item.name .. "!", GREEN)
notify(player, "✅ " .. item.name, GREEN)
end
if kind == "Rod" then
data.rod = id
@@ -3567,11 +3567,11 @@ local function teleportTo(player, worldId)
return
end
if world.soon then
notify(player, world.icon .. " " .. world.name .. " скоро откроется! Следи за обновлениями.", world.color)
notify(player, world.icon .. " " .. world.name .. " — скоро!", world.color)
return
end
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
end
markerName = world.id .. "Spawn"
@@ -3658,13 +3658,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
notify(player, "Продавать можно только у скупщика 💰", Color3.fromRGB(255, 200, 120))
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -3690,7 +3690,7 @@ MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passI
if gp.id == passId then
passes[player] = passes[player] or {}
passes[player][gp.key] = true
notify(player, "Спасибо за покупку! " .. gp.icon .. " " .. gp.name .. " активирован", GOLD)
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
if gp.key == "VIP" then
vipTag(player)
end
@@ -3726,7 +3726,7 @@ MarketplaceService.ProcessReceipt = function(info)
end
if product.boost then
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
table.insert(data.receipts, info.PurchaseId)
if #data.receipts > 50 then
@@ -3746,7 +3746,7 @@ task.spawn(function()
workspace:SetAttribute("Event", currentEvent.id)
workspace:SetAttribute("EventEnds", workspace:GetServerTimeNow() + currentEvent.duration)
for _, p in ipairs(Players:GetPlayers()) do
notify(p, "🎉 Событие: " .. currentEvent.name .. " — " .. currentEvent.desc, GOLD)
notify(p, "🎉 " .. currentEvent.name, GOLD)
updateStats(p)
end
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.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
@@ -4070,11 +4072,13 @@ local function softPlate(props, textProps)
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, 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
d[k] = v
end
return plate, text(d)
local label = text(d)
label.FontFace = HINT_FONT
return plate, label
end
local function popIn(obj, from)
local sc = obj:FindFirstChildOfClass("UIScale") or new("UIScale", { Parent = obj })
@@ -4198,7 +4202,7 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
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 },
{ TextSize = 36, Text = "🎣 Ждём поклёвку… (клик — смотать)" }
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
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,
onClick = function()
if not it.id or it.id == 0 then
notify("Товар ещё не настроен: впиши его ID в FishConfig", Color3.fromRGB(255, 200, 120))
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
return
end
if tab == "passes" then
@@ -5470,7 +5474,7 @@ local function advanceTutorial(step)
guideStep = step
remote:FireServer("Tutorial", step)
if step >= Config.TutorialDone then
notify("🎓 Обучение пройдено! Дальше — сам: лови, улучшай удочку, открывай миры", C.gold)
notify("🎓 Обучение пройдено!", C.gold)
end
end
end
@@ -5602,11 +5606,11 @@ end
local function guideRoute(step, pos, world)
local inW1 = world and world.id == "World1"
if step == 0 and not world then
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку «Как играть»", "Board"
return { guideMarker("GuideBoard") }, "📋 Прочитай табличку", "Board"
elseif not world then -- шаги 1–3 из лобби: сначала в портал
return { guideMarker("GuidePortal") }, "🌊 Иди в портал «Тихое озеро»", "Portal"
return { guideMarker("GuidePortal") }, "🌊 Иди в портал", "Portal"
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Иди на причал, зажми ЛКМ и отпусти — заброс!", "Pier"
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
local route = {}
local rel = pos - W1
@@ -5614,7 +5618,7 @@ local function guideRoute(step, pos, world)
table.insert(route, W1 + Vector3.new(0, 4.5, 84)) -- сначала сойти с причала
end
table.insert(route, guideMarker("GuideSell"))
return route, "💰 Продай рыбу в скупке", "Sell"
return route, "💰 Продай рыбу", "Sell"
end
return nil
end
@@ -5758,7 +5762,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c)
advanceTutorial(Config.TutorialDone)
end
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
inventory = a or {}
discovered = b or {}