This commit is contained in:
listik committed 2026-11-04 14:02:03 +03:00
1 parent bae57661a9
commit 6673d5b90d
10 files changed
+2705 -1157

No files matched your search

+11 -44
View File
@@ -365,7 +365,6 @@ Config.QuestKinds = {
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
<<<<<<< HEAD
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
@@ -378,40 +377,6 @@ Config.QuestChains = {
}
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
=======
earn = { text = "Заработай %d 💰 на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
}
Config.QuestChains = {
{ name = "🎣 Утренний клёв", steps = { { "catch", 3 }, { "perfectCast", 2 }, { "sell", 3 }, { "catch", 5 }, { "uncommon", 1 } } },
{ name = "🔥 Без промаха", steps = { { "perfect", 3 }, { "combo", 3 }, { "catch", 6 }, { "earn", 80 }, { "combo", 5 } } },
{ name = "💎 Охота за редкостью", steps = { { "uncommon", 3 }, { "perfectCast", 3 }, { "rare", 1 }, { "sell", 8 }, { "buy", 1 } } },
{ name = "🏆 Мастер озера", steps = { { "combo", 6 }, { "catch", 10 }, { "perfect", 6 }, { "rare", 2 }, { "earn", 300 } } },
}
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
---------------------------------------------------------------- серия улова
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
-- срыв, ушедшая рыба или timeout секунд без улова — серия сгорает
Config.Combo = { step = 0.1, max = 2.0, timeout = 90 }
---------------------------------------------------------------- босс озера
-- раз в interval секунд в мир, где больше всего игроков, приплывает босс. Его ловят всем сервером:
-- каждая пойманная там рыба наносит урон = ранг редкости (+1 за подсечку без промаха).
-- Если за duration секунд урона хватило — награда всем, кто помог (× mult мира, минимум 40% за малый вклад)
Config.Boss = {
firstDelay = 240, interval = 600, duration = 180,
hpPerPlayer = 12,
reward = { coins = 300, xp = 250, potion = "Luck1" },
worlds = {
World1 = { name = "Сом-великан", fish = "Som", mutation = "Golden", scale = 5 },
World2 = { name = "Королевская акула", fish = "Shark", mutation = "Golden", scale = 3 },
World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
},
}
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
---------------------------------------------------------------- серия улова
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
@@ -555,19 +520,21 @@ Config.Sounds = {
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
---------------------------------------------------------------- донат (Robux)
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
-- Все товары — Developer Products игры (create.roblox.com → Monetization → Developer Products);
-- id — Product ID оттуда, robux — цена для кнопки (должна совпадать с ценой в Roblox).
-- Пропуска тоже Developer Products: покупаются один раз, сервер запоминает их в данных игрока навсегда.
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
Config.GamePasses = {
{ key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
{ key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
{ key = "VIP", id = 3728143641, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
{ key = "DoubleCoins", id = 3728143692, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
{ key = "LuckyCharm", id = 3728143735, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
{ key = "BigBag", id = 3728143773, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
}
Config.Products = {
{ key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
{ key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
{ key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
{ key = "Luck", id = 0, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
{ key = "Coins1", id = 3728142264, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
{ key = "Coins2", id = 3728142848, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
{ key = "Coins3", id = 3728142885, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
{ key = "Luck", id = 3728142916, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
}
---------------------------------------------------------------- рыбалка
+29 -115
View File
@@ -46,6 +46,7 @@ local function defaultData()
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
boostUntil = 0, boostBonus = 0,
totalCaught = 0, nextUid = 1, receipts = {},
passes = {}, -- купленные пропуска (Developer Products): [key] = true
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
pearls = 0, seals = 0, rest = 0,
@@ -91,16 +92,12 @@ local function hasPass(player, key)
return passes[player] ~= nil and passes[player][key] == true
end
local function loadPasses(player)
-- пропуска продаются как Developer Products, поэтому владение хранится в данных игрока, а не в Roblox
local function loadPasses(player, data)
passes[player] = {}
for _, gp in ipairs(Config.GamePasses) do
if gp.id and gp.id > 0 then
local ok, owns = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, gp.id)
end)
if ok and owns then
passes[player][gp.key] = true
end
if data.passes[gp.key] then
passes[player][gp.key] = true
end
end
end
@@ -427,11 +424,7 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
data.coins += coins
<<<<<<< HEAD
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
=======
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
else
local r = Config.CollectionRewards[rarity]
if not r then
@@ -439,11 +432,7 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * world.mult
addXp(player, data, r.xp * world.mult)
<<<<<<< HEAD
notify(player, ("📖 +%d ⚪ +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
=======
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
updateStats(player)
sendInventory(player)
@@ -767,17 +756,12 @@ local function stopFishing(player, tellClient)
end
end
<<<<<<< HEAD
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
local function rollFish(player, data, worldId, luckMult, mods)
=======
local function rollFish(player, data, worldId, luckMult)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local zone = Config.Zones[worldId]
if not zone then
return nil
end
<<<<<<< HEAD
mods = mods or {}
local bait = mods.bait
local base = totalLuck(player, data) + (bait and bait.luck or 0)
@@ -785,9 +769,6 @@ local function rollFish(player, data, worldId, luckMult)
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
end
local luck = base * (luckMult or 1)
=======
local luck = totalLuck(player, data) * (luckMult or 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bonus = luck - 1
local weights, total = {}, 0
for i, f in ipairs(zone.fish) do
@@ -872,12 +853,9 @@ local function flyBobber(s, tool, target, dur, arc)
end
end
<<<<<<< HEAD
local autoFishing = {} -- [player] = токен работающей автоловли
local setAutoFish, grantFish -- объявлены ниже
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function onCast(player, power)
power = math.clamp(tonumber(power) or 0.6, 0, 1)
local data = profiles[player]
@@ -922,12 +900,8 @@ local function onCast(player, power)
local stats = Config.RodStats(data.rod, rodLevel(data))
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
<<<<<<< HEAD
local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1, { bait = bait })
=======
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if not fish then
remote:FireClient(player, "CastFail")
return
@@ -1031,7 +1005,6 @@ local function onCatch(player, success, misses)
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
end
<<<<<<< HEAD
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
grantFish = function(player, data, fish, ctx)
@@ -1045,15 +1018,6 @@ grantFish = function(player, data, fish, ctx)
setCombo(player, streak + 1)
end
fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
=======
-- серия: каждая рыба подряд дороже и даёт больше опыта
local fish = s.fish
local streak = combo[player] or 0
local comboMult = math.min(Config.Combo.max, 1 + Config.Combo.step * streak)
fish.value = math.floor(fish.value * comboMult + 0.5)
fish.xp = math.floor(fish.xp * comboMult + 0.5)
setCombo(player, streak + 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
table.insert(data.items, {
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
weight = fish.weight, value = fish.value, mutation = fish.mutation,
@@ -1079,11 +1043,7 @@ grantFish = function(player, data, fish, ctx)
if ctx.fromPos then
showFishFlight(player, fish, ctx.fromPos)
end
<<<<<<< HEAD
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = ctx.auto and 0 or streak + 1, auto = ctx.auto })
=======
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = streak + 1 })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local rank = Config.Rarities[fish.rarity].rank
questProgress(player, "catch", 1)
@@ -1093,7 +1053,6 @@ grantFish = function(player, data, fish, ctx)
if rank >= 3 then
questProgress(player, "rare", 1)
end
<<<<<<< HEAD
if not ctx.auto then
if ctx.misses == 0 then
questProgress(player, "perfect", 1)
@@ -1247,18 +1206,7 @@ setAutoFish = function(player, on, reason)
stopFishing(player, false)
end
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
=======
if misses == 0 then
questProgress(player, "perfect", 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
if s.perfect then
questProgress(player, "perfectCast", 1)
end
questProgress(player, "combo", streak + 1, true)
local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
bossHit(player, hrp and Config.WorldAt(hrp.Position), rank + (misses == 0 and 1 or 0))
end
---------------------------------------------------------------- скупка
@@ -1337,11 +1285,7 @@ local function buy(player, kind, id)
end
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
if data.coins < cost then
<<<<<<< HEAD
notify(player, "Нужно " .. cost .. " ⚪", RED)
=======
notify(player, "Нужно " .. cost .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= cost
@@ -1364,14 +1308,9 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
<<<<<<< HEAD
local price = Guild.price(data, potion.price)
if data.coins < price then
notify(player, "Нужно " .. price .. " ⚪", RED)
=======
if data.coins < potion.price then
notify(player, "Нужно " .. potion.price .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= price
@@ -1399,14 +1338,9 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
<<<<<<< HEAD
local price = Guild.price(data, item.price)
if data.coins < price then
notify(player, "Нужно " .. price .. " ⚪", RED)
=======
if data.coins < item.price then
notify(player, "Нужно " .. item.price .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= price
@@ -1456,14 +1390,11 @@ local function teleportTo(player, worldId)
end
if data.level < world.level then
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
<<<<<<< HEAD
return
end
local okRank, why = Guild.canEnter(data, world.id)
if not okRank then
notify(player, why, RED)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
markerName = world.id .. "Spawn"
@@ -1562,21 +1493,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
<<<<<<< HEAD
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
<<<<<<< HEAD
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -1605,22 +1528,20 @@ end)
---------------------------------------------------------------- донат
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, purchased)
if not purchased then
return
end
for _, gp in ipairs(Config.GamePasses) do
if gp.id == passId then
passes[player] = passes[player] or {}
passes[player][gp.key] = true
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
if gp.key == "VIP" then
vipTag(player)
end
updateStats(player)
-- все покупки — Developer Products: и наборы (Config.Products), и пропуска навсегда (Config.GamePasses)
local function findProduct(productId)
for _, p in ipairs(Config.Products) do
if p.id == productId then
return p, false
end
end
end)
for _, gp in ipairs(Config.GamePasses) do
if gp.id == productId then
return gp, true
end
end
return nil
end
MarketplaceService.ProcessReceipt = function(info)
local player = Players:GetPlayerByUserId(info.PlayerId)
@@ -1633,15 +1554,20 @@ MarketplaceService.ProcessReceipt = function(info)
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
local product
for _, p in ipairs(Config.Products) do
if p.id == info.ProductId then
product = p
end
end
local product, isPass = findProduct(info.ProductId)
if not product then
warn("ProcessReceipt: неизвестный товар " .. tostring(info.ProductId))
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if isPass then
data.passes[product.key] = true
passes[player] = passes[player] or {}
passes[player][product.key] = true
notify(player, "✅ " .. product.icon .. " " .. product.name .. " — навсегда!", GOLD)
if product.key == "VIP" then
vipTag(player)
end
end
if product.coins then
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
data.coins += coins
@@ -1730,10 +1656,7 @@ local function finishBoss(won)
if potion then
applyPotion(data, potion.bonus, potion.duration)
end
<<<<<<< HEAD
Guild.onBossWin(p, data)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
updateStats(p)
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
end
@@ -1801,13 +1724,10 @@ local function onPlayerAdded(player)
if not player.Parent then
return
end
loadPasses(player)
loadPasses(player, data)
ensureChain(data)
<<<<<<< HEAD
Guild.defaults(data)
Guild.onJoin(player, data)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
profiles[player] = data
loadedOk[player] = ok
local settings = type(data.settings) == "table" and data.settings or {}
@@ -1840,13 +1760,10 @@ end
Players.PlayerRemoving:Connect(function(player)
stopFishing(player, false)
combo[player], comboUntil[player] = nil, nil
<<<<<<< HEAD
autoFishing[player] = nil
if profiles[player] then
Guild.onLeave(profiles[player])
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
saveData(player)
profiles[player] = nil
loadedOk[player] = nil
@@ -1887,13 +1804,10 @@ task.spawn(function()
if data and data.boostUntil > os.time() - 2 then
updateStats(p)
end
<<<<<<< HEAD
-- бонус отдыха тратится, пока игрок рыбачит
if data and (fishing[p] or autoFishing[p]) then
Guild.spendRest(p, data, 1)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
breakCombo(p)
@@ -236,20 +236,12 @@ local SOFT_EDGES = NumberSequence.new({
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
<<<<<<< HEAD
local HINT_FONT = Theme.HINT_FACE
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
-- Цвет — тёмное дерево
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = C.woodDark
=======
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = BLACK
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
plate.BackgroundTransparency = 0
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
@@ -275,11 +267,7 @@ end
-- уведомления — под подсказкой обучения, которая стоит в самом верху
local toasts = new("Frame", {
Size = UDim2.new(0, 900, 0, 200), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 84),
<<<<<<< HEAD
BackgroundTransparency = 1, ZIndex = 30, Parent = screen,
=======
BackgroundTransparency = 1, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
local toastOrder = 0
local toastTimers = {}
@@ -310,11 +298,7 @@ local function notify(msg, color)
end
local t, l = softPlate(
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
<<<<<<< HEAD
{ TextSize = 30, TextColor3 = color or C.text, Text = msg }
=======
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
)
popIn(t)
t:SetAttribute("Msg", msg)
@@ -362,11 +346,7 @@ local function showCatch(fish, extra)
catchName.TextColor3 = r.color
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
hex(r.color), r.name, mut and (" · <font color=\"" .. hex(mut.color) .. "\">" .. mut.name .. " x" .. mut.mult .. "</font>") or "", fish.weight)
<<<<<<< HEAD
catchValue.Text = ("⚪ %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
=======
catchValue.Text = ("💰 %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
catchCard.Visible = true
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
@@ -398,11 +378,7 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
local statusLabel = softPlate(
<<<<<<< HEAD
{ 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 = screen },
=======
{ 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 },
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
@@ -995,11 +971,7 @@ questWin.render = function(tab)
end
text({
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
<<<<<<< HEAD
Text = ("%s <font color=\"#C0AC88\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
=======
Text = ("%s <font color=\"#AAB4CD\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
for i, st in ipairs(chain.steps) do
local done, cur = i < chain.step, i == chain.step
@@ -1012,11 +984,7 @@ questWin.render = function(tab)
})
text({
Size = UDim2.fromOffset(180, 28), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -14, 0, cur and 8 or 14), Font = TITLE, TextSize = 17,
<<<<<<< HEAD
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s ⚪ +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
=======
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s 💰 +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
if cur then
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
@@ -1029,11 +997,7 @@ questWin.render = function(tab)
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
text({
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
<<<<<<< HEAD
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s ⚪ +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
=======
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s 💰 +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
elseif tab == "daily" then
clear(dailyPage)
@@ -1092,11 +1056,8 @@ robuxWin.render = function(tab)
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
return
end
if tab == "passes" then
MarketplaceService:PromptGamePassPurchase(player, it.id)
else
MarketplaceService:PromptProductPurchase(player, it.id)
end
-- и наборы, и пропуска — Developer Products; пропуск сервер запоминает навсегда
MarketplaceService:PromptProductPurchase(player, it.id)
end,
})
end
@@ -1341,11 +1302,7 @@ end
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
local gauge = new("Frame", {
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
<<<<<<< HEAD
BackgroundTransparency = 1, Visible = false, Parent = screen,
=======
BackgroundTransparency = 1, Visible = false, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
local function arcPoint(v, r)
@@ -1763,7 +1720,6 @@ local function setLook(obj, goal, instant)
end
end
<<<<<<< HEAD
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
local WEATHER_ATMO = {
Fog = { Density = 0.22, Haze = 1.5 },
@@ -1775,8 +1731,6 @@ local function weatherAtmo(prop)
return (add and add[prop]) or 0
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function applyLook(world, instant)
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
for _, w in ipairs(lookSources) do
@@ -1800,12 +1754,9 @@ local function applyLook(world, instant)
for prop, def in pairs(defaults) do
local v = look[section] and look[section][prop]
if v == nil then v = def end
<<<<<<< HEAD
if section == "atmosphere" and typeof(v) == "number" then
v += weatherAtmo(prop)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
local kind = typeof(v)
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
@@ -1822,15 +1773,10 @@ local function applyAmbience(world, instant)
end
table.clear(lookTweens)
world = world or Config.Lobby
<<<<<<< HEAD
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
if not Config.DayNight.enabled then
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
end
=======
local clock = (world and world.clock) or 14.5
setLook(Lighting, { ClockTime = clock }, instant)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
if cc then
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
@@ -1934,7 +1880,6 @@ local function enterWorld(w, instant)
end
end
<<<<<<< HEAD
-- погода сменилась: плавно пересчитываем дымку текущей локации
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
if lastWorldId ~= "none" and not loadingVisible() then
@@ -1954,8 +1899,6 @@ do
end)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
task.spawn(function()
local char = player.Character or player.CharacterAdded:Wait()
@@ -2033,7 +1976,6 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
local guideHint, guideHintText = softPlate(
<<<<<<< HEAD
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = screen },
{ TextSize = 42, Text = "" }
)
@@ -2041,12 +1983,6 @@ wobble(guideHint, 1.2, 1.6)
Theme.onLayout(function(compact)
guideHintText.TextSize = compact and 30 or 42
end)
=======
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = gui },
{ TextSize = 42, Text = "" }
)
wobble(guideHint, 1.2, 1.6)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local lastHint = nil
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
@@ -2247,11 +2183,7 @@ local function guideRoute(step, pos, world)
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
<<<<<<< HEAD
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
=======
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -2416,19 +2348,11 @@ local FIRE = Color3.fromRGB(255, 150, 60)
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
local comboBox = new("Frame", {
<<<<<<< HEAD
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = C.dark, Parent = comboBox }, { corner(3) })
=======
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = gui,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = comboBox }, { corner(3) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
local function refreshCombo(pop)
@@ -2451,7 +2375,6 @@ refreshCombo(false)
-- правая колонка: босс и цели
local rightCol = new("Frame", {
Size = UDim2.fromOffset(300, 0), AutomaticSize = Enum.AutomaticSize.Y, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 10),
<<<<<<< HEAD
BackgroundTransparency = 1, Parent = screen,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
@@ -2464,20 +2387,11 @@ Theme.onLayout(function(compact)
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
end)
=======
BackgroundTransparency = 1, Parent = gui,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossBox = new("Frame", { Size = UDim2.fromOffset(300, 78), BackgroundColor3 = WHITE, Visible = false, LayoutOrder = 1, Parent = rightCol },
{ corner(14), stroke(C.red, 2.5, 0.05), gradient(Color3.fromRGB(110, 30, 40), C.bg, 90) })
local bossTitle = text({ Size = UDim2.new(1, -80, 0, 24), Position = UDim2.fromOffset(12, 5), Font = TITLE, TextSize = 18, TextColor3 = Color3.fromRGB(255, 205, 120), TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = bossBox })
local bossTime = text({ Size = UDim2.fromOffset(60, 24), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 5), Font = TITLE, TextSize = 17, TextXAlignment = RIGHT, Text = "", Parent = bossBox })
<<<<<<< HEAD
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = C.dark, Parent = bossBox }, { corner(9) })
=======
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = bossBox }, { corner(9) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = WHITE, Parent = bossBack }, { corner(9), gradient(Color3.fromRGB(255, 120, 90), Color3.fromRGB(190, 30, 50), 0) })
local bossHpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = CENTER, ZIndex = 2, TextStrokeTransparency = 0.5, Text = "", Parent = bossBack })
local bossHint = text({ Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 54), Font = BODY2, TextSize = 12, TextColor3 = C.muted, Text = "", Parent = bossBox })
@@ -2492,11 +2406,7 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
local function trackerLine(order, onClick)
local root = new("TextButton", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, AutoButtonColor = false, Text = "", LayoutOrder = order, Parent = tracker })
local label = text({ Size = UDim2.new(1, 0, 0, 22), Font = BODY, TextSize = 14, RichText = true, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = root })
<<<<<<< HEAD
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = C.dark, Parent = root }, { corner(4) })
=======
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = root }, { corner(4) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
if onClick then
root.MouseButton1Click:Connect(onClick)
@@ -2551,11 +2461,7 @@ local function buyGoal()
elseif coins >= r.price then
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
end
<<<<<<< HEAD
return ("🎣 До «%s»: ещё <b>%s</b> ⚪"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
=======
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
end
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
@@ -2565,11 +2471,7 @@ local function buyGoal()
if coins >= cost then
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
end
<<<<<<< HEAD
return ("✨ До улучшения +%d: ещё <b>%s</b> ⚪"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
=======
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -2713,11 +2615,7 @@ end)
-- у скупщика после продажи: предложение купить то, на что уже хватает
local offerCard = new("Frame", {
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
<<<<<<< HEAD
BackgroundColor3 = WHITE, Visible = false, Parent = screen,
=======
BackgroundColor3 = WHITE, Visible = false, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { corner(16), stroke(C.green, 2.5, 0.05), gradient(Color3.fromRGB(30, 85, 55), C.bg, 90) })
local offerIcon = text({ Size = UDim2.fromOffset(70, 70), Position = UDim2.fromOffset(12, 13), TextSize = 46, TextXAlignment = CENTER, Text = "", Parent = offerCard })
local offerTitle = text({ Size = UDim2.new(1, -250, 0, 26), Position = UDim2.fromOffset(90, 12), Font = TITLE, TextSize = 19, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = offerCard })
@@ -2730,19 +2628,11 @@ end
local offerBuy = btn({ Size = UDim2.fromOffset(146, 52), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, TextSize = 18, Text = "", Parent = offerCard }, function()
if offerItem then
remote:FireServer("Buy", offerItem.kind, offerItem.id)
<<<<<<< HEAD
Audio.play("coins")
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
=======
playUiSound(DING, 0.5)
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "✕", TextSize = 14, Parent = offerCard }, hideOffer)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
bestOffer = function(bagWasFull)
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
@@ -2794,11 +2684,7 @@ showOffer = function(o)
offerIcon.Text = o.icon
offerTitle.Text = o.title
offerDesc.Text = o.desc
<<<<<<< HEAD
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
=======
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
offerCard.Visible = true
popIn(offerCard, 0.6)
task.delay(9, function()
@@ -2827,12 +2713,9 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
setState("waiting")
startCastCam(a, b)
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
<<<<<<< HEAD
if action == "Escaped" then
Audio.play("escape")
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if action == "CastFail" and castTool and castTool.Parent then
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
end
@@ -2861,20 +2744,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
Audio.play("sparkle")
end
elseif action == "Sold" then
<<<<<<< HEAD
Audio.play("coins")
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " ⚪", C.gold)
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
=======
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " 💰", C.gold)
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- монеты приходят атрибутом чуть позже события, поэтому предложение — с задержкой
local wasFull = offerState.bagWasFull
offerState.bagWasFull = false
@@ -2903,30 +2778,17 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
refreshDots()
refreshTracker()
elseif action == "QuestDone" then
<<<<<<< HEAD
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
Audio.play("quest")
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
Audio.play("fanfare")
=======
notify(("✅ %s +%s 💰 +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
playUiSound(DING, 0.6)
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s 💰 +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
playUiSound(DING, 0.8)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "ComboLost" then
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
elseif action == "BossStart" then
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
<<<<<<< HEAD
Audio.play("quest")
=======
playUiSound(DING, 0.8)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "BossHit" then
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
elseif action == "BossDone" then
@@ -2936,11 +2798,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
end
elseif action == "BossReward" then
<<<<<<< HEAD
notify(("🎁 За босса: +%s ⚪ +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
=======
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "OpenShop" then
shopWin.open("rods")
elseif action == "OpenQuests" then
@@ -1828,7 +1828,6 @@ local function spawnNpc(spot, parent)
w.C0 = head.CFrame:Inverse() * p.CFrame
w.Parent = p
p.Parent = rig
<<<<<<< HEAD
return p
end
if spot:GetAttribute("Look") == "Elder" then
@@ -1846,11 +1845,6 @@ local function spawnNpc(spot, parent)
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
end
=======
end
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
local action = spot:GetAttribute("NpcAction")
if action then
+42 -309
View File
@@ -374,7 +374,6 @@ Config.QuestKinds = {
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
<<<<<<< HEAD
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
@@ -387,40 +386,6 @@ Config.QuestChains = {
}
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
=======
earn = { text = "Заработай %d 💰 на продаже", coins = 0.25, xp = 0.2, byLevel = true },
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
}
Config.QuestChains = {
{ name = "🎣 Утренний клёв", steps = { { "catch", 3 }, { "perfectCast", 2 }, { "sell", 3 }, { "catch", 5 }, { "uncommon", 1 } } },
{ name = "🔥 Без промаха", steps = { { "perfect", 3 }, { "combo", 3 }, { "catch", 6 }, { "earn", 80 }, { "combo", 5 } } },
{ name = "💎 Охота за редкостью", steps = { { "uncommon", 3 }, { "perfectCast", 3 }, { "rare", 1 }, { "sell", 8 }, { "buy", 1 } } },
{ name = "🏆 Мастер озера", steps = { { "combo", 6 }, { "catch", 10 }, { "perfect", 6 }, { "rare", 2 }, { "earn", 300 } } },
}
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
---------------------------------------------------------------- серия улова
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
-- срыв, ушедшая рыба или timeout секунд без улова — серия сгорает
Config.Combo = { step = 0.1, max = 2.0, timeout = 90 }
---------------------------------------------------------------- босс озера
-- раз в interval секунд в мир, где больше всего игроков, приплывает босс. Его ловят всем сервером:
-- каждая пойманная там рыба наносит урон = ранг редкости (+1 за подсечку без промаха).
-- Если за duration секунд урона хватило — награда всем, кто помог (× mult мира, минимум 40% за малый вклад)
Config.Boss = {
firstDelay = 240, interval = 600, duration = 180,
hpPerPlayer = 12,
reward = { coins = 300, xp = 250, potion = "Luck1" },
worlds = {
World1 = { name = "Сом-великан", fish = "Som", mutation = "Golden", scale = 5 },
World2 = { name = "Королевская акула", fish = "Shark", mutation = "Golden", scale = 3 },
World3 = { name = "Ледяной левиафан", fish = "Leviathan", mutation = "Rainbow", scale = 2.5 },
},
}
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
---------------------------------------------------------------- серия улова
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
@@ -564,19 +529,21 @@ Config.Sounds = {
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
---------------------------------------------------------------- донат (Robux)
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
-- Все товары — Developer Products игры (create.roblox.com → Monetization → Developer Products);
-- id — Product ID оттуда, robux — цена для кнопки (должна совпадать с ценой в Roblox).
-- Пропуска тоже Developer Products: покупаются один раз, сервер запоминает их в данных игрока навсегда.
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
Config.GamePasses = {
{ key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
{ key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
{ key = "VIP", id = 3728143641, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
{ key = "DoubleCoins", id = 3728143692, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
{ key = "LuckyCharm", id = 3728143735, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
{ key = "BigBag", id = 3728143773, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
}
Config.Products = {
{ key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
{ key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
{ key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
{ key = "Luck", id = 0, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
{ key = "Coins1", id = 3728142264, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
{ key = "Coins2", id = 3728142848, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
{ key = "Coins3", id = 3728142885, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
{ key = "Luck", id = 3728142916, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
}
---------------------------------------------------------------- рыбалка
@@ -1374,6 +1341,7 @@ local function defaultData()
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
boostUntil = 0, boostBonus = 0,
totalCaught = 0, nextUid = 1, receipts = {},
passes = {}, -- купленные пропуска (Developer Products): [key] = true
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
pearls = 0, seals = 0, rest = 0,
@@ -1419,16 +1387,12 @@ local function hasPass(player, key)
return passes[player] ~= nil and passes[player][key] == true
end
local function loadPasses(player)
-- пропуска продаются как Developer Products, поэтому владение хранится в данных игрока, а не в Roblox
local function loadPasses(player, data)
passes[player] = {}
for _, gp in ipairs(Config.GamePasses) do
if gp.id and gp.id > 0 then
local ok, owns = pcall(function()
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, gp.id)
end)
if ok and owns then
passes[player][gp.key] = true
end
if data.passes[gp.key] then
passes[player][gp.key] = true
end
end
end
@@ -1755,11 +1719,7 @@ local function claimCollection(player, worldId, rarity)
if rarity == "Master" then
local coins = Config.MasteryCoins * world.mult
data.coins += coins
<<<<<<< HEAD
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
=======
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
else
local r = Config.CollectionRewards[rarity]
if not r then
@@ -1767,11 +1727,7 @@ local function claimCollection(player, worldId, rarity)
end
data.coins += r.coins * world.mult
addXp(player, data, r.xp * world.mult)
<<<<<<< HEAD
notify(player, ("📖 +%d ⚪ +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
=======
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
updateStats(player)
sendInventory(player)
@@ -2095,17 +2051,12 @@ local function stopFishing(player, tellClient)
end
end
<<<<<<< HEAD
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
local function rollFish(player, data, worldId, luckMult, mods)
=======
local function rollFish(player, data, worldId, luckMult)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local zone = Config.Zones[worldId]
if not zone then
return nil
end
<<<<<<< HEAD
mods = mods or {}
local bait = mods.bait
local base = totalLuck(player, data) + (bait and bait.luck or 0)
@@ -2113,9 +2064,6 @@ local function rollFish(player, data, worldId, luckMult)
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
end
local luck = base * (luckMult or 1)
=======
local luck = totalLuck(player, data) * (luckMult or 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bonus = luck - 1
local weights, total = {}, 0
for i, f in ipairs(zone.fish) do
@@ -2200,12 +2148,9 @@ local function flyBobber(s, tool, target, dur, arc)
end
end
<<<<<<< HEAD
local autoFishing = {} -- [player] = токен работающей автоловли
local setAutoFish, grantFish -- объявлены ниже
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function onCast(player, power)
power = math.clamp(tonumber(power) or 0.6, 0, 1)
local data = profiles[player]
@@ -2250,12 +2195,8 @@ local function onCast(player, power)
local stats = Config.RodStats(data.rod, rodLevel(data))
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
<<<<<<< HEAD
local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1, { bait = bait })
=======
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if not fish then
remote:FireClient(player, "CastFail")
return
@@ -2359,7 +2300,6 @@ local function onCatch(player, success, misses)
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
end
<<<<<<< HEAD
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
grantFish = function(player, data, fish, ctx)
@@ -2373,15 +2313,6 @@ grantFish = function(player, data, fish, ctx)
setCombo(player, streak + 1)
end
fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
=======
-- серия: каждая рыба подряд дороже и даёт больше опыта
local fish = s.fish
local streak = combo[player] or 0
local comboMult = math.min(Config.Combo.max, 1 + Config.Combo.step * streak)
fish.value = math.floor(fish.value * comboMult + 0.5)
fish.xp = math.floor(fish.xp * comboMult + 0.5)
setCombo(player, streak + 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
table.insert(data.items, {
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
weight = fish.weight, value = fish.value, mutation = fish.mutation,
@@ -2407,11 +2338,7 @@ grantFish = function(player, data, fish, ctx)
if ctx.fromPos then
showFishFlight(player, fish, ctx.fromPos)
end
<<<<<<< HEAD
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = ctx.auto and 0 or streak + 1, auto = ctx.auto })
=======
remote:FireClient(player, "Caught", fish, { new = isNew, record = isRecord, combo = comboMult, streak = streak + 1 })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local rank = Config.Rarities[fish.rarity].rank
questProgress(player, "catch", 1)
@@ -2421,7 +2348,6 @@ grantFish = function(player, data, fish, ctx)
if rank >= 3 then
questProgress(player, "rare", 1)
end
<<<<<<< HEAD
if not ctx.auto then
if ctx.misses == 0 then
questProgress(player, "perfect", 1)
@@ -2575,18 +2501,7 @@ setAutoFish = function(player, on, reason)
stopFishing(player, false)
end
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
=======
if misses == 0 then
questProgress(player, "perfect", 1)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
if s.perfect then
questProgress(player, "perfectCast", 1)
end
questProgress(player, "combo", streak + 1, true)
local hrp = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
bossHit(player, hrp and Config.WorldAt(hrp.Position), rank + (misses == 0 and 1 or 0))
end
---------------------------------------------------------------- скупка
@@ -2665,11 +2580,7 @@ local function buy(player, kind, id)
end
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
if data.coins < cost then
<<<<<<< HEAD
notify(player, "Нужно " .. cost .. " ⚪", RED)
=======
notify(player, "Нужно " .. cost .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= cost
@@ -2692,14 +2603,9 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
return
end
<<<<<<< HEAD
local price = Guild.price(data, potion.price)
if data.coins < price then
notify(player, "Нужно " .. price .. " ⚪", RED)
=======
if data.coins < potion.price then
notify(player, "Нужно " .. potion.price .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= price
@@ -2727,14 +2633,9 @@ local function buy(player, kind, id)
notify(player, "🔒 Нужен ур. " .. item.level, RED)
return
end
<<<<<<< HEAD
local price = Guild.price(data, item.price)
if data.coins < price then
notify(player, "Нужно " .. price .. " ⚪", RED)
=======
if data.coins < item.price then
notify(player, "Нужно " .. item.price .. " 💰", RED)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
data.coins -= price
@@ -2784,14 +2685,11 @@ local function teleportTo(player, worldId)
end
if data.level < world.level then
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
<<<<<<< HEAD
return
end
local okRank, why = Guild.canEnter(data, world.id)
if not okRank then
notify(player, why, RED)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
return
end
markerName = world.id .. "Spawn"
@@ -2890,21 +2788,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
if nearSeller(player) then
sellItems(player, a)
else
<<<<<<< HEAD
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "SellAll" then
if nearSeller(player) then
sellItems(player, nil)
else
<<<<<<< HEAD
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
=======
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
elseif action == "Teleport" then
teleportTo(player, a)
@@ -2933,22 +2823,20 @@ end)
---------------------------------------------------------------- донат
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, purchased)
if not purchased then
return
end
for _, gp in ipairs(Config.GamePasses) do
if gp.id == passId then
passes[player] = passes[player] or {}
passes[player][gp.key] = true
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
if gp.key == "VIP" then
vipTag(player)
end
updateStats(player)
-- все покупки — Developer Products: и наборы (Config.Products), и пропуска навсегда (Config.GamePasses)
local function findProduct(productId)
for _, p in ipairs(Config.Products) do
if p.id == productId then
return p, false
end
end
end)
for _, gp in ipairs(Config.GamePasses) do
if gp.id == productId then
return gp, true
end
end
return nil
end
MarketplaceService.ProcessReceipt = function(info)
local player = Players:GetPlayerByUserId(info.PlayerId)
@@ -2961,15 +2849,20 @@ MarketplaceService.ProcessReceipt = function(info)
return Enum.ProductPurchaseDecision.PurchaseGranted
end
end
local product
for _, p in ipairs(Config.Products) do
if p.id == info.ProductId then
product = p
end
end
local product, isPass = findProduct(info.ProductId)
if not product then
warn("ProcessReceipt: неизвестный товар " .. tostring(info.ProductId))
return Enum.ProductPurchaseDecision.NotProcessedYet
end
if isPass then
data.passes[product.key] = true
passes[player] = passes[player] or {}
passes[player][product.key] = true
notify(player, "✅ " .. product.icon .. " " .. product.name .. " — навсегда!", GOLD)
if product.key == "VIP" then
vipTag(player)
end
end
if product.coins then
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
data.coins += coins
@@ -3058,10 +2951,7 @@ local function finishBoss(won)
if potion then
applyPotion(data, potion.bonus, potion.duration)
end
<<<<<<< HEAD
Guild.onBossWin(p, data)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
updateStats(p)
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
end
@@ -3129,13 +3019,10 @@ local function onPlayerAdded(player)
if not player.Parent then
return
end
loadPasses(player)
loadPasses(player, data)
ensureChain(data)
<<<<<<< HEAD
Guild.defaults(data)
Guild.onJoin(player, data)
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
profiles[player] = data
loadedOk[player] = ok
local settings = type(data.settings) == "table" and data.settings or {}
@@ -3168,13 +3055,10 @@ end
Players.PlayerRemoving:Connect(function(player)
stopFishing(player, false)
combo[player], comboUntil[player] = nil, nil
<<<<<<< HEAD
autoFishing[player] = nil
if profiles[player] then
Guild.onLeave(profiles[player])
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
saveData(player)
profiles[player] = nil
loadedOk[player] = nil
@@ -3215,13 +3099,10 @@ task.spawn(function()
if data and data.boostUntil > os.time() - 2 then
updateStats(p)
end
<<<<<<< HEAD
-- бонус отдыха тратится, пока игрок рыбачит
if data and (fishing[p] or autoFishing[p]) then
Guild.spendRest(p, data, 1)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
breakCombo(p)
@@ -6074,7 +5955,6 @@ local function spawnNpc(spot, parent)
w.C0 = head.CFrame:Inverse() * p.CFrame
w.Parent = p
p.Parent = rig
<<<<<<< HEAD
return p
end
if spot:GetAttribute("Look") == "Elder" then
@@ -6092,11 +5972,6 @@ local function spawnNpc(spot, parent)
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
end
=======
end
hatPart(V(0.15, 2.0, 2.0), CFrame.new(0, 0.55, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
hatPart(V(0.6, 1.35, 1.35), CFrame.new(0, 0.85, 0) * CFrame.Angles(0, 0, math.rad(90)), Enum.PartType.Cylinder)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
local action = spot:GetAttribute("NpcAction")
if action then
@@ -6365,20 +6240,12 @@ local SOFT_EDGES = NumberSequence.new({
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
})
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
<<<<<<< HEAD
local HINT_FONT = Theme.HINT_FACE
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
-- Цвет — тёмное дерево
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = C.woodDark
=======
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
local function softPlate(props, textProps)
local plate = new("Frame", props)
plate.BackgroundColor3 = BLACK
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
plate.BackgroundTransparency = 0
corner(30).Parent = plate
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
@@ -6404,11 +6271,7 @@ end
-- уведомления — под подсказкой обучения, которая стоит в самом верху
local toasts = new("Frame", {
Size = UDim2.new(0, 900, 0, 200), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 84),
<<<<<<< HEAD
BackgroundTransparency = 1, ZIndex = 30, Parent = screen,
=======
BackgroundTransparency = 1, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
local toastOrder = 0
local toastTimers = {}
@@ -6439,11 +6302,7 @@ local function notify(msg, color)
end
local t, l = softPlate(
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
<<<<<<< HEAD
{ TextSize = 30, TextColor3 = color or C.text, Text = msg }
=======
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
)
popIn(t)
t:SetAttribute("Msg", msg)
@@ -6491,11 +6350,7 @@ local function showCatch(fish, extra)
catchName.TextColor3 = r.color
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
hex(r.color), r.name, mut and (" · <font color=\"" .. hex(mut.color) .. "\">" .. mut.name .. " x" .. mut.mult .. "</font>") or "", fish.weight)
<<<<<<< HEAD
catchValue.Text = ("⚪ %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
=======
catchValue.Text = ("💰 %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
catchCard.Visible = true
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
@@ -6527,11 +6382,7 @@ end
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
local statusLabel = softPlate(
<<<<<<< HEAD
{ 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 = screen },
=======
{ 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 },
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
)
wobble(statusLabel, 1.2, 1.4)
@@ -7124,11 +6975,7 @@ questWin.render = function(tab)
end
text({
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
<<<<<<< HEAD
Text = ("%s <font color=\"#C0AC88\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
=======
Text = ("%s <font color=\"#AAB4CD\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
for i, st in ipairs(chain.steps) do
local done, cur = i < chain.step, i == chain.step
@@ -7141,11 +6988,7 @@ questWin.render = function(tab)
})
text({
Size = UDim2.fromOffset(180, 28), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -14, 0, cur and 8 or 14), Font = TITLE, TextSize = 17,
<<<<<<< HEAD
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s ⚪ +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
=======
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s 💰 +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
if cur then
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
@@ -7158,11 +7001,7 @@ questWin.render = function(tab)
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
text({
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
<<<<<<< HEAD
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s ⚪ +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
=======
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s 💰 +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
elseif tab == "daily" then
clear(dailyPage)
@@ -7221,11 +7060,8 @@ robuxWin.render = function(tab)
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
return
end
if tab == "passes" then
MarketplaceService:PromptGamePassPurchase(player, it.id)
else
MarketplaceService:PromptProductPurchase(player, it.id)
end
-- и наборы, и пропуска — Developer Products; пропуск сервер запоминает навсегда
MarketplaceService:PromptProductPurchase(player, it.id)
end,
})
end
@@ -7470,11 +7306,7 @@ end
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
local gauge = new("Frame", {
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
<<<<<<< HEAD
BackgroundTransparency = 1, Visible = false, Parent = screen,
=======
BackgroundTransparency = 1, Visible = false, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
})
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
local function arcPoint(v, r)
@@ -7892,7 +7724,6 @@ local function setLook(obj, goal, instant)
end
end
<<<<<<< HEAD
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
local WEATHER_ATMO = {
Fog = { Density = 0.22, Haze = 1.5 },
@@ -7904,8 +7735,6 @@ local function weatherAtmo(prop)
return (add and add[prop]) or 0
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local function applyLook(world, instant)
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
for _, w in ipairs(lookSources) do
@@ -7929,12 +7758,9 @@ local function applyLook(world, instant)
for prop, def in pairs(defaults) do
local v = look[section] and look[section][prop]
if v == nil then v = def end
<<<<<<< HEAD
if section == "atmosphere" and typeof(v) == "number" then
v += weatherAtmo(prop)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
local kind = typeof(v)
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
@@ -7951,15 +7777,10 @@ local function applyAmbience(world, instant)
end
table.clear(lookTweens)
world = world or Config.Lobby
<<<<<<< HEAD
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
if not Config.DayNight.enabled then
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
end
=======
local clock = (world and world.clock) or 14.5
setLook(Lighting, { ClockTime = clock }, instant)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
if cc then
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
@@ -8063,7 +7884,6 @@ local function enterWorld(w, instant)
end
end
<<<<<<< HEAD
-- погода сменилась: плавно пересчитываем дымку текущей локации
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
if lastWorldId ~= "none" and not loadingVisible() then
@@ -8083,8 +7903,6 @@ do
end)
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
task.spawn(function()
local char = player.Character or player.CharacterAdded:Wait()
@@ -8162,7 +7980,6 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
local guideHint, guideHintText = softPlate(
<<<<<<< HEAD
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = screen },
{ TextSize = 42, Text = "" }
)
@@ -8170,12 +7987,6 @@ wobble(guideHint, 1.2, 1.6)
Theme.onLayout(function(compact)
guideHintText.TextSize = compact and 30 or 42
end)
=======
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = gui },
{ TextSize = 42, Text = "" }
)
wobble(guideHint, 1.2, 1.6)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local lastHint = nil
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
@@ -8376,11 +8187,7 @@ local function guideRoute(step, pos, world)
elseif step == 2 and inW1 then
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
elseif step == 3 and inW1 then
<<<<<<< HEAD
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
=======
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -8545,19 +8352,11 @@ local FIRE = Color3.fromRGB(255, 150, 60)
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
local comboBox = new("Frame", {
<<<<<<< HEAD
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = C.dark, Parent = comboBox }, { corner(3) })
=======
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = gui,
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = comboBox }, { corner(3) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
local function refreshCombo(pop)
@@ -8580,7 +8379,6 @@ refreshCombo(false)
-- правая колонка: босс и цели
local rightCol = new("Frame", {
Size = UDim2.fromOffset(300, 0), AutomaticSize = Enum.AutomaticSize.Y, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 10),
<<<<<<< HEAD
BackgroundTransparency = 1, Parent = screen,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
@@ -8593,20 +8391,11 @@ Theme.onLayout(function(compact)
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
end)
=======
BackgroundTransparency = 1, Parent = gui,
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossBox = new("Frame", { Size = UDim2.fromOffset(300, 78), BackgroundColor3 = WHITE, Visible = false, LayoutOrder = 1, Parent = rightCol },
{ corner(14), stroke(C.red, 2.5, 0.05), gradient(Color3.fromRGB(110, 30, 40), C.bg, 90) })
local bossTitle = text({ Size = UDim2.new(1, -80, 0, 24), Position = UDim2.fromOffset(12, 5), Font = TITLE, TextSize = 18, TextColor3 = Color3.fromRGB(255, 205, 120), TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = bossBox })
local bossTime = text({ Size = UDim2.fromOffset(60, 24), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 5), Font = TITLE, TextSize = 17, TextXAlignment = RIGHT, Text = "", Parent = bossBox })
<<<<<<< HEAD
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = C.dark, Parent = bossBox }, { corner(9) })
=======
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = bossBox }, { corner(9) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local bossFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = WHITE, Parent = bossBack }, { corner(9), gradient(Color3.fromRGB(255, 120, 90), Color3.fromRGB(190, 30, 50), 0) })
local bossHpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = CENTER, ZIndex = 2, TextStrokeTransparency = 0.5, Text = "", Parent = bossBack })
local bossHint = text({ Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 54), Font = BODY2, TextSize = 12, TextColor3 = C.muted, Text = "", Parent = bossBox })
@@ -8621,11 +8410,7 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
local function trackerLine(order, onClick)
local root = new("TextButton", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, AutoButtonColor = false, Text = "", LayoutOrder = order, Parent = tracker })
local label = text({ Size = UDim2.new(1, 0, 0, 22), Font = BODY, TextSize = 14, RichText = true, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = root })
<<<<<<< HEAD
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = C.dark, Parent = root }, { corner(4) })
=======
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = root }, { corner(4) })
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
if onClick then
root.MouseButton1Click:Connect(onClick)
@@ -8680,11 +8465,7 @@ local function buyGoal()
elseif coins >= r.price then
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
end
<<<<<<< HEAD
return ("🎣 До «%s»: ещё <b>%s</b> ⚪"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
=======
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
end
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
@@ -8694,11 +8475,7 @@ local function buyGoal()
if coins >= cost then
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
end
<<<<<<< HEAD
return ("✨ До улучшения +%d: ещё <b>%s</b> ⚪"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
=======
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
end
return nil
end
@@ -8842,11 +8619,7 @@ end)
-- у скупщика после продажи: предложение купить то, на что уже хватает
local offerCard = new("Frame", {
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
<<<<<<< HEAD
BackgroundColor3 = WHITE, Visible = false, Parent = screen,
=======
BackgroundColor3 = WHITE, Visible = false, Parent = gui,
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
}, { corner(16), stroke(C.green, 2.5, 0.05), gradient(Color3.fromRGB(30, 85, 55), C.bg, 90) })
local offerIcon = text({ Size = UDim2.fromOffset(70, 70), Position = UDim2.fromOffset(12, 13), TextSize = 46, TextXAlignment = CENTER, Text = "", Parent = offerCard })
local offerTitle = text({ Size = UDim2.new(1, -250, 0, 26), Position = UDim2.fromOffset(90, 12), Font = TITLE, TextSize = 19, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = offerCard })
@@ -8859,19 +8632,11 @@ end
local offerBuy = btn({ Size = UDim2.fromOffset(146, 52), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, TextSize = 18, Text = "", Parent = offerCard }, function()
if offerItem then
remote:FireServer("Buy", offerItem.kind, offerItem.id)
<<<<<<< HEAD
Audio.play("coins")
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
=======
playUiSound(DING, 0.5)
end
hideOffer()
end)
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "✕", TextSize = 14, Parent = offerCard }, hideOffer)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
bestOffer = function(bagWasFull)
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
@@ -8923,11 +8688,7 @@ showOffer = function(o)
offerIcon.Text = o.icon
offerTitle.Text = o.title
offerDesc.Text = o.desc
<<<<<<< HEAD
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
=======
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
offerCard.Visible = true
popIn(offerCard, 0.6)
task.delay(9, function()
@@ -8956,12 +8717,9 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
setState("waiting")
startCastCam(a, b)
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
<<<<<<< HEAD
if action == "Escaped" then
Audio.play("escape")
end
=======
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
if action == "CastFail" and castTool and castTool.Parent then
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
end
@@ -8990,20 +8748,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
Audio.play("sparkle")
end
elseif action == "Sold" then
<<<<<<< HEAD
Audio.play("coins")
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " ⚪", C.gold)
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
=======
if tutorialStep() == 3 then
advanceTutorial(Config.TutorialDone)
end
floatText("+" .. fmt(a) .. " 💰", C.gold)
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
-- монеты приходят атрибутом чуть позже события, поэтому предложение — с задержкой
local wasFull = offerState.bagWasFull
offerState.bagWasFull = false
@@ -9032,30 +8782,17 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
refreshDots()
refreshTracker()
elseif action == "QuestDone" then
<<<<<<< HEAD
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
Audio.play("quest")
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
Audio.play("fanfare")
=======
notify(("✅ %s +%s 💰 +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
playUiSound(DING, 0.6)
elseif action == "ChainDone" then
floatText("🏆 Цепочка пройдена!", C.gold)
notify(("🎁 %s: +%s 💰 +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
playUiSound(DING, 0.8)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "ComboLost" then
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
elseif action == "BossStart" then
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
<<<<<<< HEAD
Audio.play("quest")
=======
playUiSound(DING, 0.8)
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "BossHit" then
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
elseif action == "BossDone" then
@@ -9065,11 +8802,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
end
elseif action == "BossReward" then
<<<<<<< HEAD
notify(("🎁 За босса: +%s ⚪ +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
=======
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
elseif action == "OpenShop" then
shopWin.open("rods")
elseif action == "OpenQuests" then