1244
This commit is contained in:
1 parent
bae57661a9
commit
6673d5b90d
10 files changed
+2680
-1132
No files matched your search
+2566
-217
File diff suppressed because it is too large.
Load diff
@@ -365,7 +365,6 @@ Config.QuestKinds = {
|
|||||||
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
|
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
|
||||||
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
|
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
|
||||||
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
|
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
|
||||||
<<<<<<< HEAD
|
|
||||||
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
|
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
|
||||||
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
|
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
|
||||||
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
|
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
|
||||||
@@ -378,40 +377,6 @@ Config.QuestChains = {
|
|||||||
}
|
}
|
||||||
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
|
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
|
||||||
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
|
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;
|
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
|
||||||
@@ -555,19 +520,21 @@ Config.Sounds = {
|
|||||||
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
|
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
|
||||||
|
|
||||||
---------------------------------------------------------------- донат (Robux)
|
---------------------------------------------------------------- донат (Robux)
|
||||||
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
|
-- Все товары — Developer Products игры (create.roblox.com → Monetization → Developer Products);
|
||||||
|
-- id — Product ID оттуда, robux — цена для кнопки (должна совпадать с ценой в Roblox).
|
||||||
|
-- Пропуска тоже Developer Products: покупаются один раз, сервер запоминает их в данных игрока навсегда.
|
||||||
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
|
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
|
||||||
Config.GamePasses = {
|
Config.GamePasses = {
|
||||||
{ key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
|
{ key = "VIP", id = 3728143641, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
|
||||||
{ key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
|
{ key = "DoubleCoins", id = 3728143692, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
|
||||||
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
|
{ key = "LuckyCharm", id = 3728143735, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
|
||||||
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
|
{ key = "BigBag", id = 3728143773, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
|
||||||
}
|
}
|
||||||
Config.Products = {
|
Config.Products = {
|
||||||
{ key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
|
{ key = "Coins1", id = 3728142264, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
|
||||||
{ key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
|
{ key = "Coins2", id = 3728142848, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
|
||||||
{ key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
|
{ key = "Coins3", id = 3728142885, 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 = "Luck", id = 3728142916, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
|
||||||
}
|
}
|
||||||
|
|
||||||
---------------------------------------------------------------- рыбалка
|
---------------------------------------------------------------- рыбалка
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ local function defaultData()
|
|||||||
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
|
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
|
||||||
boostUntil = 0, boostBonus = 0,
|
boostUntil = 0, boostBonus = 0,
|
||||||
totalCaught = 0, nextUid = 1, receipts = {},
|
totalCaught = 0, nextUid = 1, receipts = {},
|
||||||
|
passes = {}, -- купленные пропуска (Developer Products): [key] = true
|
||||||
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
|
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
|
||||||
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
|
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
|
||||||
pearls = 0, seals = 0, rest = 0,
|
pearls = 0, seals = 0, rest = 0,
|
||||||
@@ -91,19 +92,15 @@ local function hasPass(player, key)
|
|||||||
return passes[player] ~= nil and passes[player][key] == true
|
return passes[player] ~= nil and passes[player][key] == true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function loadPasses(player)
|
-- пропуска продаются как Developer Products, поэтому владение хранится в данных игрока, а не в Roblox
|
||||||
|
local function loadPasses(player, data)
|
||||||
passes[player] = {}
|
passes[player] = {}
|
||||||
for _, gp in ipairs(Config.GamePasses) do
|
for _, gp in ipairs(Config.GamePasses) do
|
||||||
if gp.id and gp.id > 0 then
|
if data.passes[gp.key] then
|
||||||
local ok, owns = pcall(function()
|
|
||||||
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, gp.id)
|
|
||||||
end)
|
|
||||||
if ok and owns then
|
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
local currentEvent = nil
|
local currentEvent = nil
|
||||||
local function ev(field, default)
|
local function ev(field, default)
|
||||||
@@ -427,11 +424,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
|
||||||
=======
|
|
||||||
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -439,11 +432,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
<<<<<<< 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)
|
||||||
=======
|
|
||||||
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -767,17 +756,12 @@ local function stopFishing(player, tellClient)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
|
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
|
||||||
local function rollFish(player, data, worldId, luckMult, mods)
|
local function rollFish(player, data, worldId, luckMult, mods)
|
||||||
=======
|
|
||||||
local function rollFish(player, data, worldId, luckMult)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local zone = Config.Zones[worldId]
|
local zone = Config.Zones[worldId]
|
||||||
if not zone then
|
if not zone then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
mods = mods or {}
|
mods = mods or {}
|
||||||
local bait = mods.bait
|
local bait = mods.bait
|
||||||
local base = totalLuck(player, data) + (bait and bait.luck or 0)
|
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%
|
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
|
||||||
end
|
end
|
||||||
local luck = base * (luckMult or 1)
|
local luck = base * (luckMult or 1)
|
||||||
=======
|
|
||||||
local luck = totalLuck(player, data) * (luckMult or 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local bonus = luck - 1
|
local bonus = luck - 1
|
||||||
local weights, total = {}, 0
|
local weights, total = {}, 0
|
||||||
for i, f in ipairs(zone.fish) do
|
for i, f in ipairs(zone.fish) do
|
||||||
@@ -872,12 +853,9 @@ local function flyBobber(s, tool, target, dur, arc)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
local autoFishing = {} -- [player] = токен работающей автоловли
|
local autoFishing = {} -- [player] = токен работающей автоловли
|
||||||
local setAutoFish, grantFish -- объявлены ниже
|
local setAutoFish, grantFish -- объявлены ниже
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local function onCast(player, power)
|
local function onCast(player, power)
|
||||||
power = math.clamp(tonumber(power) or 0.6, 0, 1)
|
power = math.clamp(tonumber(power) or 0.6, 0, 1)
|
||||||
local data = profiles[player]
|
local data = profiles[player]
|
||||||
@@ -922,12 +900,8 @@ local function onCast(player, power)
|
|||||||
|
|
||||||
local stats = Config.RodStats(data.rod, rodLevel(data))
|
local stats = Config.RodStats(data.rod, rodLevel(data))
|
||||||
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
|
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
|
||||||
<<<<<<< HEAD
|
|
||||||
local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
|
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, { bait = bait })
|
||||||
=======
|
|
||||||
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
if not fish then
|
if not fish then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
return
|
return
|
||||||
@@ -1031,7 +1005,6 @@ local function onCatch(player, success, misses)
|
|||||||
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
|
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
|
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
|
||||||
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
|
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
|
||||||
grantFish = function(player, data, fish, ctx)
|
grantFish = function(player, data, fish, ctx)
|
||||||
@@ -1045,15 +1018,6 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
setCombo(player, streak + 1)
|
setCombo(player, streak + 1)
|
||||||
end
|
end
|
||||||
fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
|
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, {
|
table.insert(data.items, {
|
||||||
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
|
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
|
||||||
weight = fish.weight, value = fish.value, mutation = fish.mutation,
|
weight = fish.weight, value = fish.value, mutation = fish.mutation,
|
||||||
@@ -1079,11 +1043,7 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
if ctx.fromPos then
|
if ctx.fromPos then
|
||||||
showFishFlight(player, fish, ctx.fromPos)
|
showFishFlight(player, fish, ctx.fromPos)
|
||||||
end
|
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 = 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
|
local rank = Config.Rarities[fish.rarity].rank
|
||||||
questProgress(player, "catch", 1)
|
questProgress(player, "catch", 1)
|
||||||
@@ -1093,7 +1053,6 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
if rank >= 3 then
|
if rank >= 3 then
|
||||||
questProgress(player, "rare", 1)
|
questProgress(player, "rare", 1)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
if not ctx.auto then
|
if not ctx.auto then
|
||||||
if ctx.misses == 0 then
|
if ctx.misses == 0 then
|
||||||
questProgress(player, "perfect", 1)
|
questProgress(player, "perfect", 1)
|
||||||
@@ -1247,18 +1206,7 @@ setAutoFish = function(player, on, reason)
|
|||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
end
|
end
|
||||||
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
|
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
if misses == 0 then
|
|
||||||
questProgress(player, "perfect", 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------- скупка
|
---------------------------------------------------------------- скупка
|
||||||
@@ -1337,11 +1285,7 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
|
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "Нужно " .. cost .. " ⚪", RED)
|
notify(player, "Нужно " .. cost .. " ⚪", RED)
|
||||||
=======
|
|
||||||
notify(player, "Нужно " .. cost .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -1364,14 +1308,9 @@ local function buy(player, kind, id)
|
|||||||
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
local price = Guild.price(data, potion.price)
|
local price = Guild.price(data, potion.price)
|
||||||
if data.coins < price then
|
if data.coins < price then
|
||||||
notify(player, "Нужно " .. price .. " ⚪", RED)
|
notify(player, "Нужно " .. price .. " ⚪", RED)
|
||||||
=======
|
|
||||||
if data.coins < potion.price then
|
|
||||||
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= price
|
data.coins -= price
|
||||||
@@ -1399,14 +1338,9 @@ local function buy(player, kind, id)
|
|||||||
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
local price = Guild.price(data, item.price)
|
local price = Guild.price(data, item.price)
|
||||||
if data.coins < price then
|
if data.coins < price then
|
||||||
notify(player, "Нужно " .. price .. " ⚪", RED)
|
notify(player, "Нужно " .. price .. " ⚪", RED)
|
||||||
=======
|
|
||||||
if data.coins < item.price then
|
|
||||||
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= price
|
data.coins -= price
|
||||||
@@ -1456,14 +1390,11 @@ local function teleportTo(player, worldId)
|
|||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
<<<<<<< HEAD
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local okRank, why = Guild.canEnter(data, world.id)
|
local okRank, why = Guild.canEnter(data, world.id)
|
||||||
if not okRank then
|
if not okRank then
|
||||||
notify(player, why, RED)
|
notify(player, why, RED)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -1562,21 +1493,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -1605,22 +1528,20 @@ end)
|
|||||||
|
|
||||||
---------------------------------------------------------------- донат
|
---------------------------------------------------------------- донат
|
||||||
|
|
||||||
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, purchased)
|
-- все покупки — Developer Products: и наборы (Config.Products), и пропуска навсегда (Config.GamePasses)
|
||||||
if not purchased then
|
local function findProduct(productId)
|
||||||
return
|
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
|
for _, gp in ipairs(Config.GamePasses) do
|
||||||
if gp.id == passId then
|
if gp.id == productId then
|
||||||
passes[player] = passes[player] or {}
|
return gp, true
|
||||||
passes[player][gp.key] = true
|
|
||||||
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
|
||||||
if gp.key == "VIP" then
|
|
||||||
vipTag(player)
|
|
||||||
end
|
|
||||||
updateStats(player)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
MarketplaceService.ProcessReceipt = function(info)
|
MarketplaceService.ProcessReceipt = function(info)
|
||||||
local player = Players:GetPlayerByUserId(info.PlayerId)
|
local player = Players:GetPlayerByUserId(info.PlayerId)
|
||||||
@@ -1633,15 +1554,20 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
return Enum.ProductPurchaseDecision.PurchaseGranted
|
return Enum.ProductPurchaseDecision.PurchaseGranted
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local product
|
local product, isPass = findProduct(info.ProductId)
|
||||||
for _, p in ipairs(Config.Products) do
|
|
||||||
if p.id == info.ProductId then
|
|
||||||
product = p
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if not product then
|
if not product then
|
||||||
|
warn("ProcessReceipt: неизвестный товар " .. tostring(info.ProductId))
|
||||||
return Enum.ProductPurchaseDecision.NotProcessedYet
|
return Enum.ProductPurchaseDecision.NotProcessedYet
|
||||||
end
|
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
|
if product.coins then
|
||||||
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
|
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
@@ -1730,10 +1656,7 @@ local function finishBoss(won)
|
|||||||
if potion then
|
if potion then
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
Guild.onBossWin(p, data)
|
Guild.onBossWin(p, data)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
|
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
|
||||||
end
|
end
|
||||||
@@ -1801,13 +1724,10 @@ local function onPlayerAdded(player)
|
|||||||
if not player.Parent then
|
if not player.Parent then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
loadPasses(player)
|
loadPasses(player, data)
|
||||||
ensureChain(data)
|
ensureChain(data)
|
||||||
<<<<<<< HEAD
|
|
||||||
Guild.defaults(data)
|
Guild.defaults(data)
|
||||||
Guild.onJoin(player, data)
|
Guild.onJoin(player, data)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
profiles[player] = data
|
profiles[player] = data
|
||||||
loadedOk[player] = ok
|
loadedOk[player] = ok
|
||||||
local settings = type(data.settings) == "table" and data.settings or {}
|
local settings = type(data.settings) == "table" and data.settings or {}
|
||||||
@@ -1840,13 +1760,10 @@ end
|
|||||||
Players.PlayerRemoving:Connect(function(player)
|
Players.PlayerRemoving:Connect(function(player)
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
combo[player], comboUntil[player] = nil, nil
|
combo[player], comboUntil[player] = nil, nil
|
||||||
<<<<<<< HEAD
|
|
||||||
autoFishing[player] = nil
|
autoFishing[player] = nil
|
||||||
if profiles[player] then
|
if profiles[player] then
|
||||||
Guild.onLeave(profiles[player])
|
Guild.onLeave(profiles[player])
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
saveData(player)
|
saveData(player)
|
||||||
profiles[player] = nil
|
profiles[player] = nil
|
||||||
loadedOk[player] = nil
|
loadedOk[player] = nil
|
||||||
@@ -1887,13 +1804,10 @@ task.spawn(function()
|
|||||||
if data and data.boostUntil > os.time() - 2 then
|
if data and data.boostUntil > os.time() - 2 then
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
-- бонус отдыха тратится, пока игрок рыбачит
|
-- бонус отдыха тратится, пока игрок рыбачит
|
||||||
if data and (fishing[p] or autoFishing[p]) then
|
if data and (fishing[p] or autoFishing[p]) then
|
||||||
Guild.spendRest(p, data, 1)
|
Guild.spendRest(p, data, 1)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
|
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
|
||||||
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
|
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
|
||||||
breakCombo(p)
|
breakCombo(p)
|
||||||
|
|||||||
@@ -236,20 +236,12 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
<<<<<<< HEAD
|
|
||||||
local HINT_FONT = Theme.HINT_FACE
|
local HINT_FONT = Theme.HINT_FACE
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
||||||
-- Цвет — тёмное дерево
|
-- Цвет — тёмное дерево
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
plate.BackgroundColor3 = C.woodDark
|
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
|
plate.BackgroundTransparency = 0
|
||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
@@ -275,11 +267,7 @@ end
|
|||||||
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
||||||
local toasts = new("Frame", {
|
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),
|
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, ZIndex = 30, Parent = screen,
|
||||||
=======
|
|
||||||
BackgroundTransparency = 1, Parent = gui,
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||||
local toastOrder = 0
|
local toastOrder = 0
|
||||||
local toastTimers = {}
|
local toastTimers = {}
|
||||||
@@ -310,11 +298,7 @@ local function notify(msg, color)
|
|||||||
end
|
end
|
||||||
local t, l = softPlate(
|
local t, l = softPlate(
|
||||||
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
|
{ 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 C.text, Text = msg }
|
||||||
=======
|
|
||||||
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
)
|
)
|
||||||
popIn(t)
|
popIn(t)
|
||||||
t:SetAttribute("Msg", msg)
|
t:SetAttribute("Msg", msg)
|
||||||
@@ -362,11 +346,7 @@ local function showCatch(fish, extra)
|
|||||||
catchName.TextColor3 = r.color
|
catchName.TextColor3 = r.color
|
||||||
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
|
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)
|
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),
|
||||||
=======
|
|
||||||
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 "")
|
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
|
||||||
catchCard.Visible = true
|
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()
|
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(
|
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 = 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 = "🎣 Ждём клёв…" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
@@ -995,11 +971,7 @@ questWin.render = function(tab)
|
|||||||
end
|
end
|
||||||
text({
|
text({
|
||||||
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
|
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=\"#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
|
for i, st in ipairs(chain.steps) do
|
||||||
local done, cur = i < chain.step, i == chain.step
|
local done, cur = i < chain.step, i == chain.step
|
||||||
@@ -1012,11 +984,7 @@ questWin.render = function(tab)
|
|||||||
})
|
})
|
||||||
text({
|
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,
|
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,
|
||||||
=======
|
|
||||||
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
|
if cur then
|
||||||
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
|
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) })
|
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
|
||||||
text({
|
text({
|
||||||
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
|
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,
|
||||||
=======
|
|
||||||
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
|
elseif tab == "daily" then
|
||||||
clear(dailyPage)
|
clear(dailyPage)
|
||||||
@@ -1092,11 +1056,8 @@ robuxWin.render = function(tab)
|
|||||||
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
-- и наборы, и пропуска — Developer Products; пропуск сервер запоминает навсегда
|
||||||
MarketplaceService:PromptGamePassPurchase(player, it.id)
|
|
||||||
else
|
|
||||||
MarketplaceService:PromptProductPurchase(player, it.id)
|
MarketplaceService:PromptProductPurchase(player, it.id)
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@@ -1341,11 +1302,7 @@ end
|
|||||||
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
||||||
local gauge = new("Frame", {
|
local gauge = new("Frame", {
|
||||||
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
|
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 = screen,
|
||||||
=======
|
|
||||||
BackgroundTransparency = 1, Visible = false, Parent = gui,
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
})
|
})
|
||||||
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
||||||
local function arcPoint(v, r)
|
local function arcPoint(v, r)
|
||||||
@@ -1763,7 +1720,6 @@ local function setLook(obj, goal, instant)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
||||||
local WEATHER_ATMO = {
|
local WEATHER_ATMO = {
|
||||||
Fog = { Density = 0.22, Haze = 1.5 },
|
Fog = { Density = 0.22, Haze = 1.5 },
|
||||||
@@ -1775,8 +1731,6 @@ local function weatherAtmo(prop)
|
|||||||
return (add and add[prop]) or 0
|
return (add and add[prop]) or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local function applyLook(world, instant)
|
local function applyLook(world, instant)
|
||||||
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
||||||
for _, w in ipairs(lookSources) do
|
for _, w in ipairs(lookSources) do
|
||||||
@@ -1800,12 +1754,9 @@ local function applyLook(world, instant)
|
|||||||
for prop, def in pairs(defaults) do
|
for prop, def in pairs(defaults) do
|
||||||
local v = look[section] and look[section][prop]
|
local v = look[section] and look[section][prop]
|
||||||
if v == nil then v = def end
|
if v == nil then v = def end
|
||||||
<<<<<<< HEAD
|
|
||||||
if section == "atmosphere" and typeof(v) == "number" then
|
if section == "atmosphere" and typeof(v) == "number" then
|
||||||
v += weatherAtmo(prop)
|
v += weatherAtmo(prop)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
||||||
local kind = typeof(v)
|
local kind = typeof(v)
|
||||||
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
|
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
|
end
|
||||||
table.clear(lookTweens)
|
table.clear(lookTweens)
|
||||||
world = world or Config.Lobby
|
world = world or Config.Lobby
|
||||||
<<<<<<< HEAD
|
|
||||||
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
||||||
if not Config.DayNight.enabled then
|
if not Config.DayNight.enabled then
|
||||||
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
local clock = (world and world.clock) or 14.5
|
|
||||||
setLook(Lighting, { ClockTime = clock }, instant)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
||||||
if cc then
|
if cc then
|
||||||
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
||||||
@@ -1934,7 +1880,6 @@ local function enterWorld(w, instant)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
||||||
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
||||||
if lastWorldId ~= "none" and not loadingVisible() then
|
if lastWorldId ~= "none" and not loadingVisible() then
|
||||||
@@ -1954,8 +1899,6 @@ do
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
||||||
task.spawn(function()
|
task.spawn(function()
|
||||||
local char = player.Character or player.CharacterAdded:Wait()
|
local char = player.Character or player.CharacterAdded:Wait()
|
||||||
@@ -2033,7 +1976,6 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
|
|||||||
|
|
||||||
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
||||||
local guideHint, guideHintText = softPlate(
|
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 },
|
{ 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 = "" }
|
{ TextSize = 42, Text = "" }
|
||||||
)
|
)
|
||||||
@@ -2041,12 +1983,6 @@ wobble(guideHint, 1.2, 1.6)
|
|||||||
Theme.onLayout(function(compact)
|
Theme.onLayout(function(compact)
|
||||||
guideHintText.TextSize = compact and 30 or 42
|
guideHintText.TextSize = compact and 30 or 42
|
||||||
end)
|
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 lastHint = nil
|
||||||
|
|
||||||
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
||||||
@@ -2247,11 +2183,7 @@ local function guideRoute(step, pos, world)
|
|||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
<<<<<<< HEAD
|
|
||||||
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||||
=======
|
|
||||||
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -2416,19 +2348,11 @@ local FIRE = Color3.fromRGB(255, 150, 60)
|
|||||||
|
|
||||||
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
||||||
local comboBox = new("Frame", {
|
local comboBox = new("Frame", {
|
||||||
<<<<<<< HEAD
|
|
||||||
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
|
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) })
|
}, { 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 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 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) })
|
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 comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
|
||||||
|
|
||||||
local function refreshCombo(pop)
|
local function refreshCombo(pop)
|
||||||
@@ -2451,7 +2375,6 @@ refreshCombo(false)
|
|||||||
-- правая колонка: босс и цели
|
-- правая колонка: босс и цели
|
||||||
local rightCol = new("Frame", {
|
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),
|
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,
|
BackgroundTransparency = 1, Parent = screen,
|
||||||
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
|
}, { 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)
|
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
|
||||||
end)
|
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 },
|
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) })
|
{ 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 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 })
|
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 = 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 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 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 })
|
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 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 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 })
|
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 = 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) })
|
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
|
||||||
if onClick then
|
if onClick then
|
||||||
root.MouseButton1Click:Connect(onClick)
|
root.MouseButton1Click:Connect(onClick)
|
||||||
@@ -2551,11 +2461,7 @@ local function buyGoal()
|
|||||||
elseif coins >= r.price then
|
elseif coins >= r.price then
|
||||||
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
||||||
end
|
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
|
||||||
=======
|
|
||||||
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
||||||
@@ -2565,11 +2471,7 @@ local function buyGoal()
|
|||||||
if coins >= cost then
|
if coins >= cost then
|
||||||
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
||||||
end
|
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
|
||||||
=======
|
|
||||||
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -2713,11 +2615,7 @@ end)
|
|||||||
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
||||||
local offerCard = new("Frame", {
|
local offerCard = new("Frame", {
|
||||||
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
|
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 = 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) })
|
}, { 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 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 })
|
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()
|
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
|
if offerItem then
|
||||||
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("coins")
|
Audio.play("coins")
|
||||||
end
|
end
|
||||||
hideOffer()
|
hideOffer()
|
||||||
end)
|
end)
|
||||||
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
|
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)
|
bestOffer = function(bagWasFull)
|
||||||
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
||||||
@@ -2794,11 +2684,7 @@ showOffer = function(o)
|
|||||||
offerIcon.Text = o.icon
|
offerIcon.Text = o.icon
|
||||||
offerTitle.Text = o.title
|
offerTitle.Text = o.title
|
||||||
offerDesc.Text = o.desc
|
offerDesc.Text = o.desc
|
||||||
<<<<<<< HEAD
|
|
||||||
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
||||||
=======
|
|
||||||
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
offerCard.Visible = true
|
offerCard.Visible = true
|
||||||
popIn(offerCard, 0.6)
|
popIn(offerCard, 0.6)
|
||||||
task.delay(9, function()
|
task.delay(9, function()
|
||||||
@@ -2827,12 +2713,9 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
setState("waiting")
|
setState("waiting")
|
||||||
startCastCam(a, b)
|
startCastCam(a, b)
|
||||||
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
||||||
<<<<<<< HEAD
|
|
||||||
if action == "Escaped" then
|
if action == "Escaped" then
|
||||||
Audio.play("escape")
|
Audio.play("escape")
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
if action == "CastFail" and castTool and castTool.Parent then
|
if action == "CastFail" and castTool and castTool.Parent then
|
||||||
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
||||||
end
|
end
|
||||||
@@ -2861,20 +2744,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
Audio.play("sparkle")
|
Audio.play("sparkle")
|
||||||
end
|
end
|
||||||
elseif action == "Sold" then
|
elseif action == "Sold" then
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("coins")
|
Audio.play("coins")
|
||||||
if tutorialStep() == 3 then
|
if tutorialStep() == 3 then
|
||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
||||||
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
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
|
local wasFull = offerState.bagWasFull
|
||||||
offerState.bagWasFull = false
|
offerState.bagWasFull = false
|
||||||
@@ -2903,30 +2778,17 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
refreshDots()
|
refreshDots()
|
||||||
refreshTracker()
|
refreshTracker()
|
||||||
elseif action == "QuestDone" then
|
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))
|
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
|
||||||
Audio.play("quest")
|
Audio.play("quest")
|
||||||
elseif action == "ChainDone" then
|
elseif action == "ChainDone" then
|
||||||
floatText("🏆 Цепочка пройдена!", C.gold)
|
floatText("🏆 Цепочка пройдена!", C.gold)
|
||||||
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
||||||
Audio.play("fanfare")
|
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
|
elseif action == "ComboLost" then
|
||||||
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
||||||
elseif action == "BossStart" then
|
elseif action == "BossStart" then
|
||||||
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("quest")
|
Audio.play("quest")
|
||||||
=======
|
|
||||||
playUiSound(DING, 0.8)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
elseif action == "BossHit" then
|
elseif action == "BossHit" then
|
||||||
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
||||||
elseif action == "BossDone" then
|
elseif action == "BossDone" then
|
||||||
@@ -2936,11 +2798,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
||||||
end
|
end
|
||||||
elseif action == "BossReward" then
|
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))
|
||||||
=======
|
|
||||||
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
elseif action == "OpenShop" then
|
elseif action == "OpenShop" then
|
||||||
shopWin.open("rods")
|
shopWin.open("rods")
|
||||||
elseif action == "OpenQuests" then
|
elseif action == "OpenQuests" then
|
||||||
|
|||||||
@@ -1828,7 +1828,6 @@ local function spawnNpc(spot, parent)
|
|||||||
w.C0 = head.CFrame:Inverse() * p.CFrame
|
w.C0 = head.CFrame:Inverse() * p.CFrame
|
||||||
w.Parent = p
|
w.Parent = p
|
||||||
p.Parent = rig
|
p.Parent = rig
|
||||||
<<<<<<< HEAD
|
|
||||||
return p
|
return p
|
||||||
end
|
end
|
||||||
if spot:GetAttribute("Look") == "Elder" then
|
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.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)
|
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
|
||||||
=======
|
|
||||||
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
|
end
|
||||||
local action = spot:GetAttribute("NpcAction")
|
local action = spot:GetAttribute("NpcAction")
|
||||||
if action then
|
if action then
|
||||||
|
|||||||
+38
-305
@@ -374,7 +374,6 @@ Config.QuestKinds = {
|
|||||||
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
|
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
|
||||||
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
|
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
|
||||||
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
|
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
|
||||||
<<<<<<< HEAD
|
|
||||||
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
|
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
|
||||||
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
|
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
|
||||||
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
|
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
|
||||||
@@ -387,40 +386,6 @@ Config.QuestChains = {
|
|||||||
}
|
}
|
||||||
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
|
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
|
||||||
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
|
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;
|
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
|
||||||
@@ -564,19 +529,21 @@ Config.Sounds = {
|
|||||||
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
|
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
|
||||||
|
|
||||||
---------------------------------------------------------------- донат (Robux)
|
---------------------------------------------------------------- донат (Robux)
|
||||||
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
|
-- Все товары — Developer Products игры (create.roblox.com → Monetization → Developer Products);
|
||||||
|
-- id — Product ID оттуда, robux — цена для кнопки (должна совпадать с ценой в Roblox).
|
||||||
|
-- Пропуска тоже Developer Products: покупаются один раз, сервер запоминает их в данных игрока навсегда.
|
||||||
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
|
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
|
||||||
Config.GamePasses = {
|
Config.GamePasses = {
|
||||||
{ key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
|
{ key = "VIP", id = 3728143641, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
|
||||||
{ key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
|
{ key = "DoubleCoins", id = 3728143692, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
|
||||||
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
|
{ key = "LuckyCharm", id = 3728143735, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
|
||||||
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
|
{ key = "BigBag", id = 3728143773, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
|
||||||
}
|
}
|
||||||
Config.Products = {
|
Config.Products = {
|
||||||
{ key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
|
{ key = "Coins1", id = 3728142264, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
|
||||||
{ key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
|
{ key = "Coins2", id = 3728142848, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
|
||||||
{ key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
|
{ key = "Coins3", id = 3728142885, 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 = "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 },
|
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
|
||||||
boostUntil = 0, boostBonus = 0,
|
boostUntil = 0, boostBonus = 0,
|
||||||
totalCaught = 0, nextUid = 1, receipts = {},
|
totalCaught = 0, nextUid = 1, receipts = {},
|
||||||
|
passes = {}, -- купленные пропуска (Developer Products): [key] = true
|
||||||
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
|
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
|
||||||
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
|
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
|
||||||
pearls = 0, seals = 0, rest = 0,
|
pearls = 0, seals = 0, rest = 0,
|
||||||
@@ -1419,19 +1387,15 @@ local function hasPass(player, key)
|
|||||||
return passes[player] ~= nil and passes[player][key] == true
|
return passes[player] ~= nil and passes[player][key] == true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function loadPasses(player)
|
-- пропуска продаются как Developer Products, поэтому владение хранится в данных игрока, а не в Roblox
|
||||||
|
local function loadPasses(player, data)
|
||||||
passes[player] = {}
|
passes[player] = {}
|
||||||
for _, gp in ipairs(Config.GamePasses) do
|
for _, gp in ipairs(Config.GamePasses) do
|
||||||
if gp.id and gp.id > 0 then
|
if data.passes[gp.key] then
|
||||||
local ok, owns = pcall(function()
|
|
||||||
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, gp.id)
|
|
||||||
end)
|
|
||||||
if ok and owns then
|
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
local currentEvent = nil
|
local currentEvent = nil
|
||||||
local function ev(field, default)
|
local function ev(field, default)
|
||||||
@@ -1755,11 +1719,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
|
||||||
=======
|
|
||||||
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -1767,11 +1727,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
<<<<<<< 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)
|
||||||
=======
|
|
||||||
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -2095,17 +2051,12 @@ local function stopFishing(player, tellClient)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
|
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
|
||||||
local function rollFish(player, data, worldId, luckMult, mods)
|
local function rollFish(player, data, worldId, luckMult, mods)
|
||||||
=======
|
|
||||||
local function rollFish(player, data, worldId, luckMult)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local zone = Config.Zones[worldId]
|
local zone = Config.Zones[worldId]
|
||||||
if not zone then
|
if not zone then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
mods = mods or {}
|
mods = mods or {}
|
||||||
local bait = mods.bait
|
local bait = mods.bait
|
||||||
local base = totalLuck(player, data) + (bait and bait.luck or 0)
|
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%
|
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
|
||||||
end
|
end
|
||||||
local luck = base * (luckMult or 1)
|
local luck = base * (luckMult or 1)
|
||||||
=======
|
|
||||||
local luck = totalLuck(player, data) * (luckMult or 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local bonus = luck - 1
|
local bonus = luck - 1
|
||||||
local weights, total = {}, 0
|
local weights, total = {}, 0
|
||||||
for i, f in ipairs(zone.fish) do
|
for i, f in ipairs(zone.fish) do
|
||||||
@@ -2200,12 +2148,9 @@ local function flyBobber(s, tool, target, dur, arc)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
local autoFishing = {} -- [player] = токен работающей автоловли
|
local autoFishing = {} -- [player] = токен работающей автоловли
|
||||||
local setAutoFish, grantFish -- объявлены ниже
|
local setAutoFish, grantFish -- объявлены ниже
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local function onCast(player, power)
|
local function onCast(player, power)
|
||||||
power = math.clamp(tonumber(power) or 0.6, 0, 1)
|
power = math.clamp(tonumber(power) or 0.6, 0, 1)
|
||||||
local data = profiles[player]
|
local data = profiles[player]
|
||||||
@@ -2250,12 +2195,8 @@ local function onCast(player, power)
|
|||||||
|
|
||||||
local stats = Config.RodStats(data.rod, rodLevel(data))
|
local stats = Config.RodStats(data.rod, rodLevel(data))
|
||||||
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
|
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
|
||||||
<<<<<<< HEAD
|
|
||||||
local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
|
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, { bait = bait })
|
||||||
=======
|
|
||||||
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
if not fish then
|
if not fish then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
return
|
return
|
||||||
@@ -2359,7 +2300,6 @@ local function onCatch(player, success, misses)
|
|||||||
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
|
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
|
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
|
||||||
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
|
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
|
||||||
grantFish = function(player, data, fish, ctx)
|
grantFish = function(player, data, fish, ctx)
|
||||||
@@ -2373,15 +2313,6 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
setCombo(player, streak + 1)
|
setCombo(player, streak + 1)
|
||||||
end
|
end
|
||||||
fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
|
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, {
|
table.insert(data.items, {
|
||||||
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
|
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
|
||||||
weight = fish.weight, value = fish.value, mutation = fish.mutation,
|
weight = fish.weight, value = fish.value, mutation = fish.mutation,
|
||||||
@@ -2407,11 +2338,7 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
if ctx.fromPos then
|
if ctx.fromPos then
|
||||||
showFishFlight(player, fish, ctx.fromPos)
|
showFishFlight(player, fish, ctx.fromPos)
|
||||||
end
|
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 = 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
|
local rank = Config.Rarities[fish.rarity].rank
|
||||||
questProgress(player, "catch", 1)
|
questProgress(player, "catch", 1)
|
||||||
@@ -2421,7 +2348,6 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
if rank >= 3 then
|
if rank >= 3 then
|
||||||
questProgress(player, "rare", 1)
|
questProgress(player, "rare", 1)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
if not ctx.auto then
|
if not ctx.auto then
|
||||||
if ctx.misses == 0 then
|
if ctx.misses == 0 then
|
||||||
questProgress(player, "perfect", 1)
|
questProgress(player, "perfect", 1)
|
||||||
@@ -2575,18 +2501,7 @@ setAutoFish = function(player, on, reason)
|
|||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
end
|
end
|
||||||
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
|
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
if misses == 0 then
|
|
||||||
questProgress(player, "perfect", 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------- скупка
|
---------------------------------------------------------------- скупка
|
||||||
@@ -2665,11 +2580,7 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
|
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "Нужно " .. cost .. " ⚪", RED)
|
notify(player, "Нужно " .. cost .. " ⚪", RED)
|
||||||
=======
|
|
||||||
notify(player, "Нужно " .. cost .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -2692,14 +2603,9 @@ local function buy(player, kind, id)
|
|||||||
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
local price = Guild.price(data, potion.price)
|
local price = Guild.price(data, potion.price)
|
||||||
if data.coins < price then
|
if data.coins < price then
|
||||||
notify(player, "Нужно " .. price .. " ⚪", RED)
|
notify(player, "Нужно " .. price .. " ⚪", RED)
|
||||||
=======
|
|
||||||
if data.coins < potion.price then
|
|
||||||
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= price
|
data.coins -= price
|
||||||
@@ -2727,14 +2633,9 @@ local function buy(player, kind, id)
|
|||||||
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
local price = Guild.price(data, item.price)
|
local price = Guild.price(data, item.price)
|
||||||
if data.coins < price then
|
if data.coins < price then
|
||||||
notify(player, "Нужно " .. price .. " ⚪", RED)
|
notify(player, "Нужно " .. price .. " ⚪", RED)
|
||||||
=======
|
|
||||||
if data.coins < item.price then
|
|
||||||
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= price
|
data.coins -= price
|
||||||
@@ -2784,14 +2685,11 @@ local function teleportTo(player, worldId)
|
|||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
<<<<<<< HEAD
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local okRank, why = Guild.canEnter(data, world.id)
|
local okRank, why = Guild.canEnter(data, world.id)
|
||||||
if not okRank then
|
if not okRank then
|
||||||
notify(player, why, RED)
|
notify(player, why, RED)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -2890,21 +2788,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -2933,22 +2823,20 @@ end)
|
|||||||
|
|
||||||
---------------------------------------------------------------- донат
|
---------------------------------------------------------------- донат
|
||||||
|
|
||||||
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, purchased)
|
-- все покупки — Developer Products: и наборы (Config.Products), и пропуска навсегда (Config.GamePasses)
|
||||||
if not purchased then
|
local function findProduct(productId)
|
||||||
return
|
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
|
for _, gp in ipairs(Config.GamePasses) do
|
||||||
if gp.id == passId then
|
if gp.id == productId then
|
||||||
passes[player] = passes[player] or {}
|
return gp, true
|
||||||
passes[player][gp.key] = true
|
|
||||||
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
|
||||||
if gp.key == "VIP" then
|
|
||||||
vipTag(player)
|
|
||||||
end
|
|
||||||
updateStats(player)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
MarketplaceService.ProcessReceipt = function(info)
|
MarketplaceService.ProcessReceipt = function(info)
|
||||||
local player = Players:GetPlayerByUserId(info.PlayerId)
|
local player = Players:GetPlayerByUserId(info.PlayerId)
|
||||||
@@ -2961,15 +2849,20 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
return Enum.ProductPurchaseDecision.PurchaseGranted
|
return Enum.ProductPurchaseDecision.PurchaseGranted
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local product
|
local product, isPass = findProduct(info.ProductId)
|
||||||
for _, p in ipairs(Config.Products) do
|
|
||||||
if p.id == info.ProductId then
|
|
||||||
product = p
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if not product then
|
if not product then
|
||||||
|
warn("ProcessReceipt: неизвестный товар " .. tostring(info.ProductId))
|
||||||
return Enum.ProductPurchaseDecision.NotProcessedYet
|
return Enum.ProductPurchaseDecision.NotProcessedYet
|
||||||
end
|
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
|
if product.coins then
|
||||||
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
|
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
@@ -3058,10 +2951,7 @@ local function finishBoss(won)
|
|||||||
if potion then
|
if potion then
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
Guild.onBossWin(p, data)
|
Guild.onBossWin(p, data)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
|
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
|
||||||
end
|
end
|
||||||
@@ -3129,13 +3019,10 @@ local function onPlayerAdded(player)
|
|||||||
if not player.Parent then
|
if not player.Parent then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
loadPasses(player)
|
loadPasses(player, data)
|
||||||
ensureChain(data)
|
ensureChain(data)
|
||||||
<<<<<<< HEAD
|
|
||||||
Guild.defaults(data)
|
Guild.defaults(data)
|
||||||
Guild.onJoin(player, data)
|
Guild.onJoin(player, data)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
profiles[player] = data
|
profiles[player] = data
|
||||||
loadedOk[player] = ok
|
loadedOk[player] = ok
|
||||||
local settings = type(data.settings) == "table" and data.settings or {}
|
local settings = type(data.settings) == "table" and data.settings or {}
|
||||||
@@ -3168,13 +3055,10 @@ end
|
|||||||
Players.PlayerRemoving:Connect(function(player)
|
Players.PlayerRemoving:Connect(function(player)
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
combo[player], comboUntil[player] = nil, nil
|
combo[player], comboUntil[player] = nil, nil
|
||||||
<<<<<<< HEAD
|
|
||||||
autoFishing[player] = nil
|
autoFishing[player] = nil
|
||||||
if profiles[player] then
|
if profiles[player] then
|
||||||
Guild.onLeave(profiles[player])
|
Guild.onLeave(profiles[player])
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
saveData(player)
|
saveData(player)
|
||||||
profiles[player] = nil
|
profiles[player] = nil
|
||||||
loadedOk[player] = nil
|
loadedOk[player] = nil
|
||||||
@@ -3215,13 +3099,10 @@ task.spawn(function()
|
|||||||
if data and data.boostUntil > os.time() - 2 then
|
if data and data.boostUntil > os.time() - 2 then
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
-- бонус отдыха тратится, пока игрок рыбачит
|
-- бонус отдыха тратится, пока игрок рыбачит
|
||||||
if data and (fishing[p] or autoFishing[p]) then
|
if data and (fishing[p] or autoFishing[p]) then
|
||||||
Guild.spendRest(p, data, 1)
|
Guild.spendRest(p, data, 1)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
|
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
|
||||||
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
|
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
|
||||||
breakCombo(p)
|
breakCombo(p)
|
||||||
@@ -6074,7 +5955,6 @@ local function spawnNpc(spot, parent)
|
|||||||
w.C0 = head.CFrame:Inverse() * p.CFrame
|
w.C0 = head.CFrame:Inverse() * p.CFrame
|
||||||
w.Parent = p
|
w.Parent = p
|
||||||
p.Parent = rig
|
p.Parent = rig
|
||||||
<<<<<<< HEAD
|
|
||||||
return p
|
return p
|
||||||
end
|
end
|
||||||
if spot:GetAttribute("Look") == "Elder" then
|
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.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)
|
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
|
||||||
=======
|
|
||||||
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
|
end
|
||||||
local action = spot:GetAttribute("NpcAction")
|
local action = spot:GetAttribute("NpcAction")
|
||||||
if action then
|
if action then
|
||||||
@@ -6365,20 +6240,12 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
<<<<<<< HEAD
|
|
||||||
local HINT_FONT = Theme.HINT_FACE
|
local HINT_FONT = Theme.HINT_FACE
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
||||||
-- Цвет — тёмное дерево
|
-- Цвет — тёмное дерево
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
plate.BackgroundColor3 = C.woodDark
|
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
|
plate.BackgroundTransparency = 0
|
||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
@@ -6404,11 +6271,7 @@ end
|
|||||||
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
||||||
local toasts = new("Frame", {
|
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),
|
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, ZIndex = 30, Parent = screen,
|
||||||
=======
|
|
||||||
BackgroundTransparency = 1, Parent = gui,
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||||
local toastOrder = 0
|
local toastOrder = 0
|
||||||
local toastTimers = {}
|
local toastTimers = {}
|
||||||
@@ -6439,11 +6302,7 @@ local function notify(msg, color)
|
|||||||
end
|
end
|
||||||
local t, l = softPlate(
|
local t, l = softPlate(
|
||||||
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
|
{ 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 C.text, Text = msg }
|
||||||
=======
|
|
||||||
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
)
|
)
|
||||||
popIn(t)
|
popIn(t)
|
||||||
t:SetAttribute("Msg", msg)
|
t:SetAttribute("Msg", msg)
|
||||||
@@ -6491,11 +6350,7 @@ local function showCatch(fish, extra)
|
|||||||
catchName.TextColor3 = r.color
|
catchName.TextColor3 = r.color
|
||||||
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
|
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)
|
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),
|
||||||
=======
|
|
||||||
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 "")
|
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
|
||||||
catchCard.Visible = true
|
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()
|
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(
|
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 = 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 = "🎣 Ждём клёв…" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
@@ -7124,11 +6975,7 @@ questWin.render = function(tab)
|
|||||||
end
|
end
|
||||||
text({
|
text({
|
||||||
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
|
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=\"#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
|
for i, st in ipairs(chain.steps) do
|
||||||
local done, cur = i < chain.step, i == chain.step
|
local done, cur = i < chain.step, i == chain.step
|
||||||
@@ -7141,11 +6988,7 @@ questWin.render = function(tab)
|
|||||||
})
|
})
|
||||||
text({
|
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,
|
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,
|
||||||
=======
|
|
||||||
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
|
if cur then
|
||||||
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
|
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) })
|
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
|
||||||
text({
|
text({
|
||||||
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
|
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,
|
||||||
=======
|
|
||||||
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
|
elseif tab == "daily" then
|
||||||
clear(dailyPage)
|
clear(dailyPage)
|
||||||
@@ -7221,11 +7060,8 @@ robuxWin.render = function(tab)
|
|||||||
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
-- и наборы, и пропуска — Developer Products; пропуск сервер запоминает навсегда
|
||||||
MarketplaceService:PromptGamePassPurchase(player, it.id)
|
|
||||||
else
|
|
||||||
MarketplaceService:PromptProductPurchase(player, it.id)
|
MarketplaceService:PromptProductPurchase(player, it.id)
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@@ -7470,11 +7306,7 @@ end
|
|||||||
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
||||||
local gauge = new("Frame", {
|
local gauge = new("Frame", {
|
||||||
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
|
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 = screen,
|
||||||
=======
|
|
||||||
BackgroundTransparency = 1, Visible = false, Parent = gui,
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
})
|
})
|
||||||
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
||||||
local function arcPoint(v, r)
|
local function arcPoint(v, r)
|
||||||
@@ -7892,7 +7724,6 @@ local function setLook(obj, goal, instant)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
||||||
local WEATHER_ATMO = {
|
local WEATHER_ATMO = {
|
||||||
Fog = { Density = 0.22, Haze = 1.5 },
|
Fog = { Density = 0.22, Haze = 1.5 },
|
||||||
@@ -7904,8 +7735,6 @@ local function weatherAtmo(prop)
|
|||||||
return (add and add[prop]) or 0
|
return (add and add[prop]) or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local function applyLook(world, instant)
|
local function applyLook(world, instant)
|
||||||
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
||||||
for _, w in ipairs(lookSources) do
|
for _, w in ipairs(lookSources) do
|
||||||
@@ -7929,12 +7758,9 @@ local function applyLook(world, instant)
|
|||||||
for prop, def in pairs(defaults) do
|
for prop, def in pairs(defaults) do
|
||||||
local v = look[section] and look[section][prop]
|
local v = look[section] and look[section][prop]
|
||||||
if v == nil then v = def end
|
if v == nil then v = def end
|
||||||
<<<<<<< HEAD
|
|
||||||
if section == "atmosphere" and typeof(v) == "number" then
|
if section == "atmosphere" and typeof(v) == "number" then
|
||||||
v += weatherAtmo(prop)
|
v += weatherAtmo(prop)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
||||||
local kind = typeof(v)
|
local kind = typeof(v)
|
||||||
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
|
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
|
end
|
||||||
table.clear(lookTweens)
|
table.clear(lookTweens)
|
||||||
world = world or Config.Lobby
|
world = world or Config.Lobby
|
||||||
<<<<<<< HEAD
|
|
||||||
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
||||||
if not Config.DayNight.enabled then
|
if not Config.DayNight.enabled then
|
||||||
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
local clock = (world and world.clock) or 14.5
|
|
||||||
setLook(Lighting, { ClockTime = clock }, instant)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
||||||
if cc then
|
if cc then
|
||||||
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
||||||
@@ -8063,7 +7884,6 @@ local function enterWorld(w, instant)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
||||||
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
||||||
if lastWorldId ~= "none" and not loadingVisible() then
|
if lastWorldId ~= "none" and not loadingVisible() then
|
||||||
@@ -8083,8 +7903,6 @@ do
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
||||||
task.spawn(function()
|
task.spawn(function()
|
||||||
local char = player.Character or player.CharacterAdded:Wait()
|
local char = player.Character or player.CharacterAdded:Wait()
|
||||||
@@ -8162,7 +7980,6 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
|
|||||||
|
|
||||||
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
||||||
local guideHint, guideHintText = softPlate(
|
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 },
|
{ 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 = "" }
|
{ TextSize = 42, Text = "" }
|
||||||
)
|
)
|
||||||
@@ -8170,12 +7987,6 @@ wobble(guideHint, 1.2, 1.6)
|
|||||||
Theme.onLayout(function(compact)
|
Theme.onLayout(function(compact)
|
||||||
guideHintText.TextSize = compact and 30 or 42
|
guideHintText.TextSize = compact and 30 or 42
|
||||||
end)
|
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 lastHint = nil
|
||||||
|
|
||||||
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
||||||
@@ -8376,11 +8187,7 @@ local function guideRoute(step, pos, world)
|
|||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
<<<<<<< HEAD
|
|
||||||
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||||
=======
|
|
||||||
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -8545,19 +8352,11 @@ local FIRE = Color3.fromRGB(255, 150, 60)
|
|||||||
|
|
||||||
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
||||||
local comboBox = new("Frame", {
|
local comboBox = new("Frame", {
|
||||||
<<<<<<< HEAD
|
|
||||||
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
|
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) })
|
}, { 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 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 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) })
|
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 comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
|
||||||
|
|
||||||
local function refreshCombo(pop)
|
local function refreshCombo(pop)
|
||||||
@@ -8580,7 +8379,6 @@ refreshCombo(false)
|
|||||||
-- правая колонка: босс и цели
|
-- правая колонка: босс и цели
|
||||||
local rightCol = new("Frame", {
|
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),
|
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,
|
BackgroundTransparency = 1, Parent = screen,
|
||||||
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
|
}, { 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)
|
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
|
||||||
end)
|
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 },
|
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) })
|
{ 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 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 })
|
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 = 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 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 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 })
|
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 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 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 })
|
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 = 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) })
|
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
|
||||||
if onClick then
|
if onClick then
|
||||||
root.MouseButton1Click:Connect(onClick)
|
root.MouseButton1Click:Connect(onClick)
|
||||||
@@ -8680,11 +8465,7 @@ local function buyGoal()
|
|||||||
elseif coins >= r.price then
|
elseif coins >= r.price then
|
||||||
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
||||||
end
|
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
|
||||||
=======
|
|
||||||
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
||||||
@@ -8694,11 +8475,7 @@ local function buyGoal()
|
|||||||
if coins >= cost then
|
if coins >= cost then
|
||||||
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
||||||
end
|
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
|
||||||
=======
|
|
||||||
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -8842,11 +8619,7 @@ end)
|
|||||||
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
||||||
local offerCard = new("Frame", {
|
local offerCard = new("Frame", {
|
||||||
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
|
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 = 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) })
|
}, { 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 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 })
|
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()
|
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
|
if offerItem then
|
||||||
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("coins")
|
Audio.play("coins")
|
||||||
end
|
end
|
||||||
hideOffer()
|
hideOffer()
|
||||||
end)
|
end)
|
||||||
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
|
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)
|
bestOffer = function(bagWasFull)
|
||||||
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
||||||
@@ -8923,11 +8688,7 @@ showOffer = function(o)
|
|||||||
offerIcon.Text = o.icon
|
offerIcon.Text = o.icon
|
||||||
offerTitle.Text = o.title
|
offerTitle.Text = o.title
|
||||||
offerDesc.Text = o.desc
|
offerDesc.Text = o.desc
|
||||||
<<<<<<< HEAD
|
|
||||||
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
||||||
=======
|
|
||||||
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
offerCard.Visible = true
|
offerCard.Visible = true
|
||||||
popIn(offerCard, 0.6)
|
popIn(offerCard, 0.6)
|
||||||
task.delay(9, function()
|
task.delay(9, function()
|
||||||
@@ -8956,12 +8717,9 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
setState("waiting")
|
setState("waiting")
|
||||||
startCastCam(a, b)
|
startCastCam(a, b)
|
||||||
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
||||||
<<<<<<< HEAD
|
|
||||||
if action == "Escaped" then
|
if action == "Escaped" then
|
||||||
Audio.play("escape")
|
Audio.play("escape")
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
if action == "CastFail" and castTool and castTool.Parent then
|
if action == "CastFail" and castTool and castTool.Parent then
|
||||||
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
||||||
end
|
end
|
||||||
@@ -8990,20 +8748,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
Audio.play("sparkle")
|
Audio.play("sparkle")
|
||||||
end
|
end
|
||||||
elseif action == "Sold" then
|
elseif action == "Sold" then
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("coins")
|
Audio.play("coins")
|
||||||
if tutorialStep() == 3 then
|
if tutorialStep() == 3 then
|
||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
||||||
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
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
|
local wasFull = offerState.bagWasFull
|
||||||
offerState.bagWasFull = false
|
offerState.bagWasFull = false
|
||||||
@@ -9032,30 +8782,17 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
refreshDots()
|
refreshDots()
|
||||||
refreshTracker()
|
refreshTracker()
|
||||||
elseif action == "QuestDone" then
|
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))
|
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
|
||||||
Audio.play("quest")
|
Audio.play("quest")
|
||||||
elseif action == "ChainDone" then
|
elseif action == "ChainDone" then
|
||||||
floatText("🏆 Цепочка пройдена!", C.gold)
|
floatText("🏆 Цепочка пройдена!", C.gold)
|
||||||
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
||||||
Audio.play("fanfare")
|
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
|
elseif action == "ComboLost" then
|
||||||
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
||||||
elseif action == "BossStart" then
|
elseif action == "BossStart" then
|
||||||
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("quest")
|
Audio.play("quest")
|
||||||
=======
|
|
||||||
playUiSound(DING, 0.8)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
elseif action == "BossHit" then
|
elseif action == "BossHit" then
|
||||||
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
||||||
elseif action == "BossDone" then
|
elseif action == "BossDone" then
|
||||||
@@ -9065,11 +8802,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
||||||
end
|
end
|
||||||
elseif action == "BossReward" then
|
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))
|
||||||
=======
|
|
||||||
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
elseif action == "OpenShop" then
|
elseif action == "OpenShop" then
|
||||||
shopWin.open("rods")
|
shopWin.open("rods")
|
||||||
elseif action == "OpenQuests" then
|
elseif action == "OpenQuests" then
|
||||||
|
|||||||
@@ -364,7 +364,6 @@ Config.QuestKinds = {
|
|||||||
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
|
perfectCast = { text = "Забрось в зелёную зону %d %s", forms = TIMES, coins = 8, xp = 6 },
|
||||||
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
|
combo = { text = "Набери серию из %d рыб", coins = 12, xp = 10, max = 15 },
|
||||||
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
|
sell = { text = "Продай %d %s", forms = FISH, coins = 3, xp = 3 },
|
||||||
<<<<<<< HEAD
|
|
||||||
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
|
earn = { text = "Заработай %d ⚪ на продаже", coins = 0.25, xp = 0.2, byLevel = true },
|
||||||
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
|
buy = { text = "Купи что-нибудь в магазине", coins = 40, xp = 30, max = 1 },
|
||||||
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
|
boss = { text = "Нанеси боссу %d урона", coins = 15, xp = 12 },
|
||||||
@@ -377,40 +376,6 @@ Config.QuestChains = {
|
|||||||
}
|
}
|
||||||
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
|
Config.QuestTierGrowth = 0.5 -- каждый следующий круг цепочек: цели ×(1 + 0.5 · номер круга)
|
||||||
Config.ChainBonus = { coins = 120, xp = 100, potion = "Luck1" } -- за всю цепочку (растёт с уровнем и кругом)
|
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;
|
-- каждая рыба подряд без срыва: +10% к цене и опыту следующей, до ×2;
|
||||||
@@ -554,19 +519,21 @@ Config.Sounds = {
|
|||||||
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
|
Config.DefaultVolume = { music = 0.6, sfx = 0.8 }
|
||||||
|
|
||||||
---------------------------------------------------------------- донат (Robux)
|
---------------------------------------------------------------- донат (Robux)
|
||||||
-- ВАЖНО: впиши сюда ID своих пропусков и товаров с create.roblox.com.
|
-- Все товары — Developer Products игры (create.roblox.com → Monetization → Developer Products);
|
||||||
|
-- id — Product ID оттуда, robux — цена для кнопки (должна совпадать с ценой в Roblox).
|
||||||
|
-- Пропуска тоже Developer Products: покупаются один раз, сервер запоминает их в данных игрока навсегда.
|
||||||
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
|
-- Пока id = 0, кнопка покупки покажет подсказку, что товар не настроен.
|
||||||
Config.GamePasses = {
|
Config.GamePasses = {
|
||||||
{ key = "VIP", id = 0, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
|
{ key = "VIP", id = 3728143641, robux = 199, icon = "👑", name = "VIP", desc = "+25% удачи и серебра, корона над головой" },
|
||||||
{ key = "DoubleCoins", id = 0, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
|
{ key = "DoubleCoins", id = 3728143692, robux = 299, icon = "⚪", name = "x2 Серебро", desc = "Вся рыба продаётся в 2 раза дороже" },
|
||||||
{ key = "LuckyCharm", id = 0, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
|
{ key = "LuckyCharm", id = 3728143735, robux = 349, icon = "🍀", name = "Талисман удачи", desc = "+50% удачи навсегда" },
|
||||||
{ key = "BigBag", id = 0, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
|
{ key = "BigBag", id = 3728143773, robux = 149, icon = "🎒", name = "Бездонная сумка", desc = "+100 мест в любой сумке" },
|
||||||
}
|
}
|
||||||
Config.Products = {
|
Config.Products = {
|
||||||
{ key = "Coins1", id = 0, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
|
{ key = "Coins1", id = 3728142264, robux = 49, icon = "👝", name = "Кошель серебра", desc = "+1 000 серебра (больше с уровнем)", coins = 1000 },
|
||||||
{ key = "Coins2", id = 0, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
|
{ key = "Coins2", id = 3728142848, robux = 199, icon = "⚪", name = "Сундук серебра", desc = "+5 000 серебра (больше с уровнем)", coins = 5000 },
|
||||||
{ key = "Coins3", id = 0, robux = 599, icon = "🏆", name = "Гора золота", desc = "+20 000 серебра (больше с уровнем)", coins = 20000 },
|
{ key = "Coins3", id = 3728142885, 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 = "Luck", id = 3728142916, robux = 99, icon = "🧪", name = "Супер-зелье удачи", desc = "+200% удачи на 15 минут", boost = 2.0, duration = 900 },
|
||||||
}
|
}
|
||||||
|
|
||||||
---------------------------------------------------------------- рыбалка
|
---------------------------------------------------------------- рыбалка
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ local function defaultData()
|
|||||||
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
|
chain = { index = 1, step = 1, progress = 0, tier = 0 }, daily = { last = 0, streak = 0 },
|
||||||
boostUntil = 0, boostBonus = 0,
|
boostUntil = 0, boostBonus = 0,
|
||||||
totalCaught = 0, nextUid = 1, receipts = {},
|
totalCaught = 0, nextUid = 1, receipts = {},
|
||||||
|
passes = {}, -- купленные пропуска (Developer Products): [key] = true
|
||||||
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
|
settings = { music = Config.DefaultVolume.music, sfx = Config.DefaultVolume.sfx },
|
||||||
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
|
-- гильдия: жемчуг, печати, отдых (ранг, заказы, наживку, ловушки дополняет Guild.defaults)
|
||||||
pearls = 0, seals = 0, rest = 0,
|
pearls = 0, seals = 0, rest = 0,
|
||||||
@@ -90,19 +91,15 @@ local function hasPass(player, key)
|
|||||||
return passes[player] ~= nil and passes[player][key] == true
|
return passes[player] ~= nil and passes[player][key] == true
|
||||||
end
|
end
|
||||||
|
|
||||||
local function loadPasses(player)
|
-- пропуска продаются как Developer Products, поэтому владение хранится в данных игрока, а не в Roblox
|
||||||
|
local function loadPasses(player, data)
|
||||||
passes[player] = {}
|
passes[player] = {}
|
||||||
for _, gp in ipairs(Config.GamePasses) do
|
for _, gp in ipairs(Config.GamePasses) do
|
||||||
if gp.id and gp.id > 0 then
|
if data.passes[gp.key] then
|
||||||
local ok, owns = pcall(function()
|
|
||||||
return MarketplaceService:UserOwnsGamePassAsync(player.UserId, gp.id)
|
|
||||||
end)
|
|
||||||
if ok and owns then
|
|
||||||
passes[player][gp.key] = true
|
passes[player][gp.key] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
local currentEvent = nil
|
local currentEvent = nil
|
||||||
local function ev(field, default)
|
local function ev(field, default)
|
||||||
@@ -426,11 +423,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
if rarity == "Master" then
|
if rarity == "Master" then
|
||||||
local coins = Config.MasteryCoins * world.mult
|
local coins = Config.MasteryCoins * world.mult
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
|
notify(player, ("🏆 «%s» собран! +%d ⚪"):format(world.name, coins), GOLD)
|
||||||
=======
|
|
||||||
notify(player, ("🏆 «%s» собран! +%d 💰"):format(world.name, coins), GOLD)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
else
|
else
|
||||||
local r = Config.CollectionRewards[rarity]
|
local r = Config.CollectionRewards[rarity]
|
||||||
if not r then
|
if not r then
|
||||||
@@ -438,11 +431,7 @@ local function claimCollection(player, worldId, rarity)
|
|||||||
end
|
end
|
||||||
data.coins += r.coins * world.mult
|
data.coins += r.coins * world.mult
|
||||||
addXp(player, data, r.xp * world.mult)
|
addXp(player, data, r.xp * world.mult)
|
||||||
<<<<<<< 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)
|
||||||
=======
|
|
||||||
notify(player, ("📖 +%d 💰 +%d XP"):format(r.coins * world.mult, r.xp * world.mult), GREEN)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
updateStats(player)
|
updateStats(player)
|
||||||
sendInventory(player)
|
sendInventory(player)
|
||||||
@@ -766,17 +755,12 @@ local function stopFishing(player, tellClient)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
|
-- mods: { bait = наживка из Config.Baits, maxRank = потолок редкости (автоловля) }
|
||||||
local function rollFish(player, data, worldId, luckMult, mods)
|
local function rollFish(player, data, worldId, luckMult, mods)
|
||||||
=======
|
|
||||||
local function rollFish(player, data, worldId, luckMult)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local zone = Config.Zones[worldId]
|
local zone = Config.Zones[worldId]
|
||||||
if not zone then
|
if not zone then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
mods = mods or {}
|
mods = mods or {}
|
||||||
local bait = mods.bait
|
local bait = mods.bait
|
||||||
local base = totalLuck(player, data) + (bait and bait.luck or 0)
|
local base = totalLuck(player, data) + (bait and bait.luck or 0)
|
||||||
@@ -784,9 +768,6 @@ local function rollFish(player, data, worldId, luckMult)
|
|||||||
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
|
base += bait.nightLuck - Config.DayNight.nightLuck -- светлячок: ночью +30% вместо обычных +10%
|
||||||
end
|
end
|
||||||
local luck = base * (luckMult or 1)
|
local luck = base * (luckMult or 1)
|
||||||
=======
|
|
||||||
local luck = totalLuck(player, data) * (luckMult or 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local bonus = luck - 1
|
local bonus = luck - 1
|
||||||
local weights, total = {}, 0
|
local weights, total = {}, 0
|
||||||
for i, f in ipairs(zone.fish) do
|
for i, f in ipairs(zone.fish) do
|
||||||
@@ -871,12 +852,9 @@ local function flyBobber(s, tool, target, dur, arc)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
local autoFishing = {} -- [player] = токен работающей автоловли
|
local autoFishing = {} -- [player] = токен работающей автоловли
|
||||||
local setAutoFish, grantFish -- объявлены ниже
|
local setAutoFish, grantFish -- объявлены ниже
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local function onCast(player, power)
|
local function onCast(player, power)
|
||||||
power = math.clamp(tonumber(power) or 0.6, 0, 1)
|
power = math.clamp(tonumber(power) or 0.6, 0, 1)
|
||||||
local data = profiles[player]
|
local data = profiles[player]
|
||||||
@@ -921,12 +899,8 @@ local function onCast(player, power)
|
|||||||
|
|
||||||
local stats = Config.RodStats(data.rod, rodLevel(data))
|
local stats = Config.RodStats(data.rod, rodLevel(data))
|
||||||
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
|
local perfect = power >= Config.CastPerfect[1] and power <= Config.CastPerfect[2]
|
||||||
<<<<<<< HEAD
|
|
||||||
local bait = Guild.useBait(player, data) -- 1 штука наживки на заброс
|
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, { bait = bait })
|
||||||
=======
|
|
||||||
local fish = rollFish(player, data, world.id, perfect and Config.CastPerfectLuck or 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
if not fish then
|
if not fish then
|
||||||
remote:FireClient(player, "CastFail")
|
remote:FireClient(player, "CastFail")
|
||||||
return
|
return
|
||||||
@@ -1030,7 +1004,6 @@ local function onCatch(player, success, misses)
|
|||||||
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
|
grantFish(player, data, s.fish, { perfect = s.perfect, misses = misses, fromPos = fromPos })
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
|
-- рыба поймана (руками или автоловлей): в сумку, опыт, коллекция, задания, гильдия, босс.
|
||||||
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
|
-- ctx: { perfect, misses, fromPos, auto }; у автоловли нет серии и бонусов за точность
|
||||||
grantFish = function(player, data, fish, ctx)
|
grantFish = function(player, data, fish, ctx)
|
||||||
@@ -1044,15 +1017,6 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
setCombo(player, streak + 1)
|
setCombo(player, streak + 1)
|
||||||
end
|
end
|
||||||
fish.xp = math.floor(fish.xp * Guild.xpMult(data)) -- бонус отдыха: двойной опыт
|
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, {
|
table.insert(data.items, {
|
||||||
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
|
uid = data.nextUid, id = fish.id, name = fish.name, rarity = fish.rarity,
|
||||||
weight = fish.weight, value = fish.value, mutation = fish.mutation,
|
weight = fish.weight, value = fish.value, mutation = fish.mutation,
|
||||||
@@ -1078,11 +1042,7 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
if ctx.fromPos then
|
if ctx.fromPos then
|
||||||
showFishFlight(player, fish, ctx.fromPos)
|
showFishFlight(player, fish, ctx.fromPos)
|
||||||
end
|
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 = 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
|
local rank = Config.Rarities[fish.rarity].rank
|
||||||
questProgress(player, "catch", 1)
|
questProgress(player, "catch", 1)
|
||||||
@@ -1092,7 +1052,6 @@ grantFish = function(player, data, fish, ctx)
|
|||||||
if rank >= 3 then
|
if rank >= 3 then
|
||||||
questProgress(player, "rare", 1)
|
questProgress(player, "rare", 1)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
if not ctx.auto then
|
if not ctx.auto then
|
||||||
if ctx.misses == 0 then
|
if ctx.misses == 0 then
|
||||||
questProgress(player, "perfect", 1)
|
questProgress(player, "perfect", 1)
|
||||||
@@ -1246,18 +1205,7 @@ setAutoFish = function(player, on, reason)
|
|||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
end
|
end
|
||||||
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
|
notify(player, reason or "🎣 Автоловля выключена", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
if misses == 0 then
|
|
||||||
questProgress(player, "perfect", 1)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
---------------------------------------------------------------- скупка
|
---------------------------------------------------------------- скупка
|
||||||
@@ -1336,11 +1284,7 @@ local function buy(player, kind, id)
|
|||||||
end
|
end
|
||||||
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
|
local cost = Guild.price(data, Config.UpgradeCost(rod, lvl)) -- скидка ранга гильдии
|
||||||
if data.coins < cost then
|
if data.coins < cost then
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "Нужно " .. cost .. " ⚪", RED)
|
notify(player, "Нужно " .. cost .. " ⚪", RED)
|
||||||
=======
|
|
||||||
notify(player, "Нужно " .. cost .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= cost
|
data.coins -= cost
|
||||||
@@ -1363,14 +1307,9 @@ local function buy(player, kind, id)
|
|||||||
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
notify(player, "🔒 Нужен ур. " .. potion.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
local price = Guild.price(data, potion.price)
|
local price = Guild.price(data, potion.price)
|
||||||
if data.coins < price then
|
if data.coins < price then
|
||||||
notify(player, "Нужно " .. price .. " ⚪", RED)
|
notify(player, "Нужно " .. price .. " ⚪", RED)
|
||||||
=======
|
|
||||||
if data.coins < potion.price then
|
|
||||||
notify(player, "Нужно " .. potion.price .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= price
|
data.coins -= price
|
||||||
@@ -1398,14 +1337,9 @@ local function buy(player, kind, id)
|
|||||||
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
notify(player, "🔒 Нужен ур. " .. item.level, RED)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
local price = Guild.price(data, item.price)
|
local price = Guild.price(data, item.price)
|
||||||
if data.coins < price then
|
if data.coins < price then
|
||||||
notify(player, "Нужно " .. price .. " ⚪", RED)
|
notify(player, "Нужно " .. price .. " ⚪", RED)
|
||||||
=======
|
|
||||||
if data.coins < item.price then
|
|
||||||
notify(player, "Нужно " .. item.price .. " 💰", RED)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
data.coins -= price
|
data.coins -= price
|
||||||
@@ -1455,14 +1389,11 @@ local function teleportTo(player, worldId)
|
|||||||
end
|
end
|
||||||
if data.level < world.level then
|
if data.level < world.level then
|
||||||
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
notify(player, ("🔒 %s: ур. %d"):format(world.name, world.level), RED)
|
||||||
<<<<<<< HEAD
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local okRank, why = Guild.canEnter(data, world.id)
|
local okRank, why = Guild.canEnter(data, world.id)
|
||||||
if not okRank then
|
if not okRank then
|
||||||
notify(player, why, RED)
|
notify(player, why, RED)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
markerName = world.id .. "Spawn"
|
markerName = world.id .. "Spawn"
|
||||||
@@ -1561,21 +1492,13 @@ remote.OnServerEvent:Connect(function(player, action, a, b)
|
|||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, a)
|
sellItems(player, a)
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
elseif action == "SellAll" then
|
elseif action == "SellAll" then
|
||||||
if nearSeller(player) then
|
if nearSeller(player) then
|
||||||
sellItems(player, nil)
|
sellItems(player, nil)
|
||||||
else
|
else
|
||||||
<<<<<<< HEAD
|
|
||||||
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
notify(player, "⚪ Только у скупщика", Color3.fromRGB(255, 200, 120))
|
||||||
=======
|
|
||||||
notify(player, "💰 Только у скупщика", Color3.fromRGB(255, 200, 120))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
elseif action == "Teleport" then
|
elseif action == "Teleport" then
|
||||||
teleportTo(player, a)
|
teleportTo(player, a)
|
||||||
@@ -1604,22 +1527,20 @@ end)
|
|||||||
|
|
||||||
---------------------------------------------------------------- донат
|
---------------------------------------------------------------- донат
|
||||||
|
|
||||||
MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(player, passId, purchased)
|
-- все покупки — Developer Products: и наборы (Config.Products), и пропуска навсегда (Config.GamePasses)
|
||||||
if not purchased then
|
local function findProduct(productId)
|
||||||
return
|
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
|
for _, gp in ipairs(Config.GamePasses) do
|
||||||
if gp.id == passId then
|
if gp.id == productId then
|
||||||
passes[player] = passes[player] or {}
|
return gp, true
|
||||||
passes[player][gp.key] = true
|
|
||||||
notify(player, "✅ " .. gp.icon .. " " .. gp.name, GOLD)
|
|
||||||
if gp.key == "VIP" then
|
|
||||||
vipTag(player)
|
|
||||||
end
|
|
||||||
updateStats(player)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
MarketplaceService.ProcessReceipt = function(info)
|
MarketplaceService.ProcessReceipt = function(info)
|
||||||
local player = Players:GetPlayerByUserId(info.PlayerId)
|
local player = Players:GetPlayerByUserId(info.PlayerId)
|
||||||
@@ -1632,15 +1553,20 @@ MarketplaceService.ProcessReceipt = function(info)
|
|||||||
return Enum.ProductPurchaseDecision.PurchaseGranted
|
return Enum.ProductPurchaseDecision.PurchaseGranted
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local product
|
local product, isPass = findProduct(info.ProductId)
|
||||||
for _, p in ipairs(Config.Products) do
|
|
||||||
if p.id == info.ProductId then
|
|
||||||
product = p
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if not product then
|
if not product then
|
||||||
|
warn("ProcessReceipt: неизвестный товар " .. tostring(info.ProductId))
|
||||||
return Enum.ProductPurchaseDecision.NotProcessedYet
|
return Enum.ProductPurchaseDecision.NotProcessedYet
|
||||||
end
|
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
|
if product.coins then
|
||||||
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
|
local coins = math.floor(product.coins * (1 + (data.level - 1) * 0.15))
|
||||||
data.coins += coins
|
data.coins += coins
|
||||||
@@ -1729,10 +1655,7 @@ local function finishBoss(won)
|
|||||||
if potion then
|
if potion then
|
||||||
applyPotion(data, potion.bonus, potion.duration)
|
applyPotion(data, potion.bonus, potion.duration)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
Guild.onBossWin(p, data)
|
Guild.onBossWin(p, data)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
|
remote:FireClient(p, "BossReward", coins, xp, potion and potion.name)
|
||||||
end
|
end
|
||||||
@@ -1800,13 +1723,10 @@ local function onPlayerAdded(player)
|
|||||||
if not player.Parent then
|
if not player.Parent then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
loadPasses(player)
|
loadPasses(player, data)
|
||||||
ensureChain(data)
|
ensureChain(data)
|
||||||
<<<<<<< HEAD
|
|
||||||
Guild.defaults(data)
|
Guild.defaults(data)
|
||||||
Guild.onJoin(player, data)
|
Guild.onJoin(player, data)
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
profiles[player] = data
|
profiles[player] = data
|
||||||
loadedOk[player] = ok
|
loadedOk[player] = ok
|
||||||
local settings = type(data.settings) == "table" and data.settings or {}
|
local settings = type(data.settings) == "table" and data.settings or {}
|
||||||
@@ -1839,13 +1759,10 @@ end
|
|||||||
Players.PlayerRemoving:Connect(function(player)
|
Players.PlayerRemoving:Connect(function(player)
|
||||||
stopFishing(player, false)
|
stopFishing(player, false)
|
||||||
combo[player], comboUntil[player] = nil, nil
|
combo[player], comboUntil[player] = nil, nil
|
||||||
<<<<<<< HEAD
|
|
||||||
autoFishing[player] = nil
|
autoFishing[player] = nil
|
||||||
if profiles[player] then
|
if profiles[player] then
|
||||||
Guild.onLeave(profiles[player])
|
Guild.onLeave(profiles[player])
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
saveData(player)
|
saveData(player)
|
||||||
profiles[player] = nil
|
profiles[player] = nil
|
||||||
loadedOk[player] = nil
|
loadedOk[player] = nil
|
||||||
@@ -1886,13 +1803,10 @@ task.spawn(function()
|
|||||||
if data and data.boostUntil > os.time() - 2 then
|
if data and data.boostUntil > os.time() - 2 then
|
||||||
updateStats(p)
|
updateStats(p)
|
||||||
end
|
end
|
||||||
<<<<<<< HEAD
|
|
||||||
-- бонус отдыха тратится, пока игрок рыбачит
|
-- бонус отдыха тратится, пока игрок рыбачит
|
||||||
if data and (fishing[p] or autoFishing[p]) then
|
if data and (fishing[p] or autoFishing[p]) then
|
||||||
Guild.spendRest(p, data, 1)
|
Guild.spendRest(p, data, 1)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
|
-- серия сгорает, если долго нет улова (пока рыба на крючке — ждём)
|
||||||
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
|
if comboUntil[p] and os.time() > comboUntil[p] and not fishing[p] then
|
||||||
breakCombo(p)
|
breakCombo(p)
|
||||||
|
|||||||
@@ -1827,7 +1827,6 @@ local function spawnNpc(spot, parent)
|
|||||||
w.C0 = head.CFrame:Inverse() * p.CFrame
|
w.C0 = head.CFrame:Inverse() * p.CFrame
|
||||||
w.Parent = p
|
w.Parent = p
|
||||||
p.Parent = rig
|
p.Parent = rig
|
||||||
<<<<<<< HEAD
|
|
||||||
return p
|
return p
|
||||||
end
|
end
|
||||||
if spot:GetAttribute("Look") == "Elder" then
|
if spot:GetAttribute("Look") == "Elder" then
|
||||||
@@ -1845,11 +1844,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.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)
|
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
|
||||||
=======
|
|
||||||
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
|
end
|
||||||
local action = spot:GetAttribute("NpcAction")
|
local action = spot:GetAttribute("NpcAction")
|
||||||
if action then
|
if action then
|
||||||
|
|||||||
@@ -235,20 +235,12 @@ local SOFT_EDGES = NumberSequence.new({
|
|||||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||||
})
|
})
|
||||||
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||||
<<<<<<< HEAD
|
|
||||||
local HINT_FONT = Theme.HINT_FACE
|
local HINT_FONT = Theme.HINT_FACE
|
||||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
||||||
-- Цвет — тёмное дерево
|
-- Цвет — тёмное дерево
|
||||||
local function softPlate(props, textProps)
|
local function softPlate(props, textProps)
|
||||||
local plate = new("Frame", props)
|
local plate = new("Frame", props)
|
||||||
plate.BackgroundColor3 = C.woodDark
|
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
|
plate.BackgroundTransparency = 0
|
||||||
corner(30).Parent = plate
|
corner(30).Parent = plate
|
||||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||||
@@ -274,11 +266,7 @@ end
|
|||||||
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
||||||
local toasts = new("Frame", {
|
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),
|
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, ZIndex = 30, Parent = screen,
|
||||||
=======
|
|
||||||
BackgroundTransparency = 1, Parent = gui,
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||||
local toastOrder = 0
|
local toastOrder = 0
|
||||||
local toastTimers = {}
|
local toastTimers = {}
|
||||||
@@ -309,11 +297,7 @@ local function notify(msg, color)
|
|||||||
end
|
end
|
||||||
local t, l = softPlate(
|
local t, l = softPlate(
|
||||||
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
|
{ 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 C.text, Text = msg }
|
||||||
=======
|
|
||||||
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
)
|
)
|
||||||
popIn(t)
|
popIn(t)
|
||||||
t:SetAttribute("Msg", msg)
|
t:SetAttribute("Msg", msg)
|
||||||
@@ -361,11 +345,7 @@ local function showCatch(fish, extra)
|
|||||||
catchName.TextColor3 = r.color
|
catchName.TextColor3 = r.color
|
||||||
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
|
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)
|
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),
|
||||||
=======
|
|
||||||
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 "")
|
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
|
||||||
catchCard.Visible = true
|
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()
|
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
|
||||||
@@ -397,11 +377,7 @@ end
|
|||||||
|
|
||||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||||
local statusLabel = softPlate(
|
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 = 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 = "🎣 Ждём клёв…" }
|
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||||
)
|
)
|
||||||
wobble(statusLabel, 1.2, 1.4)
|
wobble(statusLabel, 1.2, 1.4)
|
||||||
@@ -994,11 +970,7 @@ questWin.render = function(tab)
|
|||||||
end
|
end
|
||||||
text({
|
text({
|
||||||
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
|
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=\"#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
|
for i, st in ipairs(chain.steps) do
|
||||||
local done, cur = i < chain.step, i == chain.step
|
local done, cur = i < chain.step, i == chain.step
|
||||||
@@ -1011,11 +983,7 @@ questWin.render = function(tab)
|
|||||||
})
|
})
|
||||||
text({
|
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,
|
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,
|
||||||
=======
|
|
||||||
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
|
if cur then
|
||||||
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
|
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
|
||||||
@@ -1028,11 +996,7 @@ questWin.render = function(tab)
|
|||||||
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
|
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
|
||||||
text({
|
text({
|
||||||
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
|
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,
|
||||||
=======
|
|
||||||
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
|
elseif tab == "daily" then
|
||||||
clear(dailyPage)
|
clear(dailyPage)
|
||||||
@@ -1091,11 +1055,8 @@ robuxWin.render = function(tab)
|
|||||||
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if tab == "passes" then
|
-- и наборы, и пропуска — Developer Products; пропуск сервер запоминает навсегда
|
||||||
MarketplaceService:PromptGamePassPurchase(player, it.id)
|
|
||||||
else
|
|
||||||
MarketplaceService:PromptProductPurchase(player, it.id)
|
MarketplaceService:PromptProductPurchase(player, it.id)
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@@ -1340,11 +1301,7 @@ end
|
|||||||
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
||||||
local gauge = new("Frame", {
|
local gauge = new("Frame", {
|
||||||
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
|
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 = screen,
|
||||||
=======
|
|
||||||
BackgroundTransparency = 1, Visible = false, Parent = gui,
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
})
|
})
|
||||||
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
||||||
local function arcPoint(v, r)
|
local function arcPoint(v, r)
|
||||||
@@ -1762,7 +1719,6 @@ local function setLook(obj, goal, instant)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
||||||
local WEATHER_ATMO = {
|
local WEATHER_ATMO = {
|
||||||
Fog = { Density = 0.22, Haze = 1.5 },
|
Fog = { Density = 0.22, Haze = 1.5 },
|
||||||
@@ -1774,8 +1730,6 @@ local function weatherAtmo(prop)
|
|||||||
return (add and add[prop]) or 0
|
return (add and add[prop]) or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local function applyLook(world, instant)
|
local function applyLook(world, instant)
|
||||||
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
||||||
for _, w in ipairs(lookSources) do
|
for _, w in ipairs(lookSources) do
|
||||||
@@ -1799,12 +1753,9 @@ local function applyLook(world, instant)
|
|||||||
for prop, def in pairs(defaults) do
|
for prop, def in pairs(defaults) do
|
||||||
local v = look[section] and look[section][prop]
|
local v = look[section] and look[section][prop]
|
||||||
if v == nil then v = def end
|
if v == nil then v = def end
|
||||||
<<<<<<< HEAD
|
|
||||||
if section == "atmosphere" and typeof(v) == "number" then
|
if section == "atmosphere" and typeof(v) == "number" then
|
||||||
v += weatherAtmo(prop)
|
v += weatherAtmo(prop)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
||||||
local kind = typeof(v)
|
local kind = typeof(v)
|
||||||
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
|
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
|
||||||
@@ -1821,15 +1772,10 @@ local function applyAmbience(world, instant)
|
|||||||
end
|
end
|
||||||
table.clear(lookTweens)
|
table.clear(lookTweens)
|
||||||
world = world or Config.Lobby
|
world = world or Config.Lobby
|
||||||
<<<<<<< HEAD
|
|
||||||
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
||||||
if not Config.DayNight.enabled then
|
if not Config.DayNight.enabled then
|
||||||
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
local clock = (world and world.clock) or 14.5
|
|
||||||
setLook(Lighting, { ClockTime = clock }, instant)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
||||||
if cc then
|
if cc then
|
||||||
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
||||||
@@ -1933,7 +1879,6 @@ local function enterWorld(w, instant)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
||||||
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
||||||
if lastWorldId ~= "none" and not loadingVisible() then
|
if lastWorldId ~= "none" and not loadingVisible() then
|
||||||
@@ -1953,8 +1898,6 @@ do
|
|||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
||||||
task.spawn(function()
|
task.spawn(function()
|
||||||
local char = player.Character or player.CharacterAdded:Wait()
|
local char = player.Character or player.CharacterAdded:Wait()
|
||||||
@@ -2032,7 +1975,6 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
|
|||||||
|
|
||||||
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
||||||
local guideHint, guideHintText = softPlate(
|
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 },
|
{ 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 = "" }
|
{ TextSize = 42, Text = "" }
|
||||||
)
|
)
|
||||||
@@ -2040,12 +1982,6 @@ wobble(guideHint, 1.2, 1.6)
|
|||||||
Theme.onLayout(function(compact)
|
Theme.onLayout(function(compact)
|
||||||
guideHintText.TextSize = compact and 30 or 42
|
guideHintText.TextSize = compact and 30 or 42
|
||||||
end)
|
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 lastHint = nil
|
||||||
|
|
||||||
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
||||||
@@ -2246,11 +2182,7 @@ local function guideRoute(step, pos, world)
|
|||||||
elseif step == 2 and inW1 then
|
elseif step == 2 and inW1 then
|
||||||
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||||
elseif step == 3 and inW1 then
|
elseif step == 3 and inW1 then
|
||||||
<<<<<<< HEAD
|
|
||||||
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||||
=======
|
|
||||||
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -2415,19 +2347,11 @@ local FIRE = Color3.fromRGB(255, 150, 60)
|
|||||||
|
|
||||||
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
||||||
local comboBox = new("Frame", {
|
local comboBox = new("Frame", {
|
||||||
<<<<<<< HEAD
|
|
||||||
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
|
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) })
|
}, { 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 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 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) })
|
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 comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
|
||||||
|
|
||||||
local function refreshCombo(pop)
|
local function refreshCombo(pop)
|
||||||
@@ -2450,7 +2374,6 @@ refreshCombo(false)
|
|||||||
-- правая колонка: босс и цели
|
-- правая колонка: босс и цели
|
||||||
local rightCol = new("Frame", {
|
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),
|
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,
|
BackgroundTransparency = 1, Parent = screen,
|
||||||
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
|
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||||
|
|
||||||
@@ -2463,20 +2386,11 @@ Theme.onLayout(function(compact)
|
|||||||
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
|
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
|
||||||
end)
|
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 },
|
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) })
|
{ 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 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 })
|
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 = 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 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 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 })
|
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 })
|
||||||
@@ -2491,11 +2405,7 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
|
|||||||
local function trackerLine(order, onClick)
|
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 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 })
|
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 = 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) })
|
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
|
||||||
if onClick then
|
if onClick then
|
||||||
root.MouseButton1Click:Connect(onClick)
|
root.MouseButton1Click:Connect(onClick)
|
||||||
@@ -2550,11 +2460,7 @@ local function buyGoal()
|
|||||||
elseif coins >= r.price then
|
elseif coins >= r.price then
|
||||||
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
||||||
end
|
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
|
||||||
=======
|
|
||||||
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
||||||
@@ -2564,11 +2470,7 @@ local function buyGoal()
|
|||||||
if coins >= cost then
|
if coins >= cost then
|
||||||
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
||||||
end
|
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
|
||||||
=======
|
|
||||||
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
@@ -2712,11 +2614,7 @@ end)
|
|||||||
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
||||||
local offerCard = new("Frame", {
|
local offerCard = new("Frame", {
|
||||||
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
|
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 = 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) })
|
}, { 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 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 })
|
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 })
|
||||||
@@ -2729,19 +2627,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()
|
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
|
if offerItem then
|
||||||
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("coins")
|
Audio.play("coins")
|
||||||
end
|
end
|
||||||
hideOffer()
|
hideOffer()
|
||||||
end)
|
end)
|
||||||
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
|
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)
|
bestOffer = function(bagWasFull)
|
||||||
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
||||||
@@ -2793,11 +2683,7 @@ showOffer = function(o)
|
|||||||
offerIcon.Text = o.icon
|
offerIcon.Text = o.icon
|
||||||
offerTitle.Text = o.title
|
offerTitle.Text = o.title
|
||||||
offerDesc.Text = o.desc
|
offerDesc.Text = o.desc
|
||||||
<<<<<<< HEAD
|
|
||||||
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
||||||
=======
|
|
||||||
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
offerCard.Visible = true
|
offerCard.Visible = true
|
||||||
popIn(offerCard, 0.6)
|
popIn(offerCard, 0.6)
|
||||||
task.delay(9, function()
|
task.delay(9, function()
|
||||||
@@ -2826,12 +2712,9 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
setState("waiting")
|
setState("waiting")
|
||||||
startCastCam(a, b)
|
startCastCam(a, b)
|
||||||
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
||||||
<<<<<<< HEAD
|
|
||||||
if action == "Escaped" then
|
if action == "Escaped" then
|
||||||
Audio.play("escape")
|
Audio.play("escape")
|
||||||
end
|
end
|
||||||
=======
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
if action == "CastFail" and castTool and castTool.Parent then
|
if action == "CastFail" and castTool and castTool.Parent then
|
||||||
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
||||||
end
|
end
|
||||||
@@ -2860,20 +2743,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
Audio.play("sparkle")
|
Audio.play("sparkle")
|
||||||
end
|
end
|
||||||
elseif action == "Sold" then
|
elseif action == "Sold" then
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("coins")
|
Audio.play("coins")
|
||||||
if tutorialStep() == 3 then
|
if tutorialStep() == 3 then
|
||||||
advanceTutorial(Config.TutorialDone)
|
advanceTutorial(Config.TutorialDone)
|
||||||
end
|
end
|
||||||
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
||||||
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
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
|
local wasFull = offerState.bagWasFull
|
||||||
offerState.bagWasFull = false
|
offerState.bagWasFull = false
|
||||||
@@ -2902,30 +2777,17 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
refreshDots()
|
refreshDots()
|
||||||
refreshTracker()
|
refreshTracker()
|
||||||
elseif action == "QuestDone" then
|
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))
|
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
|
||||||
Audio.play("quest")
|
Audio.play("quest")
|
||||||
elseif action == "ChainDone" then
|
elseif action == "ChainDone" then
|
||||||
floatText("🏆 Цепочка пройдена!", C.gold)
|
floatText("🏆 Цепочка пройдена!", C.gold)
|
||||||
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
||||||
Audio.play("fanfare")
|
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
|
elseif action == "ComboLost" then
|
||||||
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
||||||
elseif action == "BossStart" then
|
elseif action == "BossStart" then
|
||||||
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
||||||
<<<<<<< HEAD
|
|
||||||
Audio.play("quest")
|
Audio.play("quest")
|
||||||
=======
|
|
||||||
playUiSound(DING, 0.8)
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
elseif action == "BossHit" then
|
elseif action == "BossHit" then
|
||||||
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
||||||
elseif action == "BossDone" then
|
elseif action == "BossDone" then
|
||||||
@@ -2935,11 +2797,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
|||||||
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
||||||
end
|
end
|
||||||
elseif action == "BossReward" then
|
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))
|
||||||
=======
|
|
||||||
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
|
|
||||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
|
||||||
elseif action == "OpenShop" then
|
elseif action == "OpenShop" then
|
||||||
shopWin.open("rods")
|
shopWin.open("rods")
|
||||||
elseif action == "OpenQuests" then
|
elseif action == "OpenQuests" then
|
||||||
|
|||||||
Reference in new issue
Block a user