Skip to content

Ssa#1

Open
a-ofc wants to merge 42 commits intohimikofrom
ssa
Open

Ssa#1
a-ofc wants to merge 42 commits intohimikofrom
ssa

Conversation

@a-ofc
Copy link
Owner

@a-ofc a-ofc commented May 24, 2025

No description provided.

Girishiasu added 30 commits May 24, 2025 08:14
…aça o site todo agora ele otimizado eu quero que você refaça ele refaça o site do zero otimizado com tudo isso que a gente já fez
… está funcionando e outra coisa eu não quero que seja recarregado o ouro automaticamente eu quero que isso daí fique como saldo na conta dele para que ele decida comprar ouro mana ou qualquer outra coisa
…aça o bloqueio do lockdown de uma hora iludindo o usuário então cada item só poderá usar só poderá reutilizar os comandos pois uma hora
…ar ao usuário pescar ao usuário dormir De acordo com o que ele for fazer para colocar mais animação a gente vai ficar mais legal mais interessante
… error is reported as HTML but presented visually to the user).

A > before the line number in the error source usually indicates the line of interest:

> Unhandled Runtime Error: Error: React is not defined. Error source: src/app/page.tsx (391:16) @ HomePage
>
>   389 |             </DialogHeader>
>   390 |             <div className="animate-pulse text-primary">
> > 391 |               {React.createElement(actionConfig[activeActionAnimation].icon, { size: 72, strokeWidth: 1.5 })}
>       |                ^
>   392 |             </div>
>   393 |           </DialogContent>
>   394 |         </Dialog>
>
> Call Stack
> 2
>
> Show 1 ignore-listed frame(s)
> HomePage
> src/app/page.tsx (391:16)
{
  if (!isGroup) return reply(enviar.msg.grupo);
  if (!isBlackCity) return reply(enviar.rpg.ativar);

  const categorias = {
    "Armas": ['espada', 'machado', 'adaga', 'lança', 'arco', 'cajado', 'katana', 'tridente', 'foice', 'alabarda'],
    "Armaduras": ['escudo', 'capa', 'couraça', 'elmo', 'botas', 'luvas', 'armadura leve', 'armadura pesada', 'escama', 'manto'],
    "Itens Mágicos": ['anel mágico', 'colar de mana', 'livro antigo', 'orbe de fogo', 'gema azul', 'runas', 'poção de invisibilidade', 'tomo arcano', 'cristal sagrado', 'talismã'],
    "Suprimentos": ['poção de vida', 'poção de energia', 'ração', 'tocha', 'corda', 'kit de primeiros socorros', 'água encantada', 'flechas', 'óleo de arma', 'bálsamo'],
    "Raros/Caros": ['grifo de guerra', 'cavalo de elite', 'capa da sombra', 'espada flamejante', 'armadura celestial', 'chave dourada', 'relíquia dos antigos', 'elmo do trovão', 'martelo divino', 'asa etérea']
  };

  let texto = "🛒 *Mercado aberto:*\n";
  for (let [categoria, itens] of Object.entries(categorias)) {
    texto += `\n🔹 *${categoria}*\n`;
    for (let item of itens) {
      texto += `- !rpgcomprar ${item}\n`;
    }
  }

  reply(texto.trim());
}
break;

case 'rpgcomprar': {
  if (!isGroup) return reply(enviar.msg.grupo);
  if (!isBlackCity) return reply(enviar.rpg.ativar);

  if (!args[0]) return reply("☂️ Especifique o item: !rpgcomprar espada");

  const todosOsItens = {
    "espada": 80, "machado": 85, "adaga": 60, "lança": 75, "arco": 90, "cajado": 100, "katana": 120, "tridente": 110, "foice": 130, "alabarda": 140,
    "escudo": 60, "capa": 50, "couraça": 95, "elmo": 70, "botas": 40, "luvas": 30, "armadura leve": 100, "armadura pesada": 140, "escama": 85, "manto": 60,
    "anel mágico": 200, "colar de mana": 190, "livro antigo": 180, "orbe de fogo": 210, "gema azul": 160, "runas": 170, "poção de invisibilidade": 220, "tomo arcano": 230, "cristal sagrado": 250, "talismã": 240,
    "poção de vida": 30, "poção de energia": 35, "ração": 20, "tocha": 10, "corda": 15, "kit de primeiros socorros": 50, "água encantada": 45, "flechas": 25, "óleo de arma": 40, "bálsamo": 30,
    "grifo de guerra": 1000, "cavalo de elite": 900, "capa da sombra": 850, "espada flamejante": 1200, "armadura celestial": 1500, "chave dourada": 750, "relíquia dos antigos": 1300, "elmo do trovão": 1100, "martelo divino": 1400, "asa etérea": 2000
  };

  const firebaseURL = 'https://himiko-info-default-rtdb.firebaseio.com/rpgUsuarios.json';

  try {
    const { data } = await axios.get(firebaseURL);
    if (!data) return reply("☂️ Use !rpgregistrar.");

    let userKey = null;
    let user = null;

    for (const key in data) {
      if (data[key].id === sender) {
        userKey = key;
        user = data[key];
        break;
      }
    }

    if (!user) return reply("☂️ Use !rpgregistrar.");

    const item = args.join(" ").toLowerCase();
    if (!todosOsItens[item]) return reply("❌ Item não disponível.");
    if (user.ouro < todosOsItens[item]) return reply("⚠️ Ouro insuficiente.");

    user.ouro -= todosOsItens[item];
    user.inventario = user.inventario || {};
    user.inventario[item] = (user.inventario[item] || 0) + 1;

    await axios.patch(`${firebaseURL.replace('.json', `/${userKey}.json`)}`, user);

    reply(`✅ Você comprou *${item}* por ${todosOsItens[item]} de ouro.`);
  } catch (err) {
    console.error("Erro ao comprar item no Firebase:", err.message);
    reply("❌ Erro ao tentar comprar item. Tente novamente.");
  }
}
break;
… error is reported as HTML but presented visually to the user).

A > before the line number in the error source usually indicates the line of interest:

> Unhandled Runtime Error: Error: Card is not defined. Error source: src/app/page.tsx (369:12) @ HomePage
>
>   367 |             isDisabled={!playerData || !currentPlayerId}
>   368 |           />
> > 369 |           <Card className="w-full max-w-lg mt-8 shadow-xl bg-card border-border/50">
>       |            ^
>   370 |             <CardHeader>
>   371 |                 <CardTitle className="text-xl flex items-center">
>   372 |                     <ShoppingBag size={24} className="mr-2 text-primary" />
>
> Call Stack
> 2
>
> Show 1 ignore-listed frame(s)
> HomePage
> src/app/page.tsx (369:12)
… error is reported as HTML but presented visually to the user).

A > before the line number in the error source usually indicates the line of interest:

> ./src/app/loja/lojaData.ts:3:1
> Export Ring doesn't exist in target module
>    1 |
>    2 | import type { LucideIcon } from 'lucide-react';
> >  3 | import {
>      | ^^^^^^^^
> >  4 |   Sword, Axe, PocketKnife, Crosshair, Wand2, Shield, Shirt, VenetianMask,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  5 |   HardHat, Footprints, Hand, Layers, CircleDollarSign, Diamond, Target,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  6 |   Ring, BookOpen, Flame, Gem, Sigma, EyeOff, BookMarked, Medal, HelpCircle,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  7 |   HeartPulse, BatteryCharging, Beef, Torch, IterationCw, BriefcaseMedical, GlassWater, ArrowRight, PaintBucket, Vegan,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  8 |   Bird, Option, CloudDrizzle, KeyRound, Scroll, Hammer, Feather, Box, Zap, Sparkles, Package, ShoppingBasket, Tent
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  9 | } from 'lucide-react';
>      | ^^^^^^^^^^^^^^^^^^^^^^^
>   10 |
>   11 | export interface ShopItem {
>   12 |   name: string;
>
> The export Ring was not found in module [project]/node_modules/lucide-react/dist/esm/lucide-react.js [app-client] (ecmascript) <exports>.
> Did you mean to import RockingChair?
> All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
>
>
… error is reported as HTML but presented visually to the user).

A > before the line number in the error source usually indicates the line of interest:

> ./src/app/loja/lojaData.ts:3:1
> Export Torch doesn't exist in target module
>    1 |
>    2 | import type { LucideIcon } from 'lucide-react';
> >  3 | import {
>      | ^^^^^^^^
> >  4 |   Sword, Axe, PocketKnife, Crosshair, Wand2, Shield, Shirt, VenetianMask,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  5 |   HardHat, Footprints, Hand, Layers, CircleDollarSign, Diamond, Target,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  6 |   BookOpen, Flame, Gem, Sigma, EyeOff, BookMarked, Medal, HelpCircle,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  7 |   HeartPulse, BatteryCharging, Beef, Torch, IterationCw, BriefcaseMedical, GlassWater, ArrowRight, PaintBucket, Vegan,
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  8 |   Bird, Option, CloudDrizzle, KeyRound, Scroll, Hammer, Feather, Box, Zap, Sparkles, Package, ShoppingBasket, Tent
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >  9 | } from 'lucide-react';
>      | ^^^^^^^^^^^^^^^^^^^^^^^
>   10 |
>   11 | export interface ShopItem {
>   12 |   name: string;
>
> The export Torch was not found in module [project]/node_modules/lucide-react/dist/esm/lucide-react.js [app-client] (ecmascript) <exports>.
> Did you mean to import ToyBrick?
> All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
>
>
… error is reported as HTML but presented visually to the user).

A > before the line number in the error source usually indicates the line of interest:

> Unhandled Runtime Error: Error: ShoppingBasket is not defined. Error source: src/app/loja/page.tsx (148:12) @ LojaContent
>
>   146 |       <header className="mb-8 text-center">
>   147 |         <h1 className="text-4xl sm:text-5xl font-extrabold text-primary mb-2 tracking-tight flex items-center justify-center">
> > 148 |           <ShoppingBasket size={40} className="mr-3" /> Loja do Aventureiro
>       |            ^
>   149 |         </h1>
>   150 |         <p className="text-muted-foreground">Bem-vindo(a) à loja, {playerData.nome || playerId}!</p>
>   151 |       </header>
>
> Call Stack
> 3
>
> Show 1 ignore-listed frame(s)
> LojaContent
> src/app/loja/page.tsx (148:12)
> LojaPage
> src/app/loja/page.tsx (229:7)
…sa logar novamente ele volta principal do usuário
…nhas se movendo você consegue as estrelinhas pode ser umas bolinhas brancas brilhantes
…utro lugar duas vezes ele digita tudo certo aperta para entrar e pede de novo a senha consegue corrigir isso
Girishiasu added 12 commits May 24, 2025 16:33
…nas para demonstração e não é segura para uso em produção.
… error is reported as HTML but presented visually to the user).

A > before the line number in the error source usually indicates the line of interest:

> ./src/components/app/PlayerStatsCard.tsx:7:1
> Export itemDetails doesn't exist in target module
>    5 | import { Heart, CircleDollarSign, Star, User, BarChart3, Info, Zap, Sparkles, Wallet, Package } from 'lucide-react';
>    6 | import { Skeleton } from '@/components/ui/skeleton';
> >  7 | import { itemDetails } from '@/app/loja/lojaData'; // Importar itemDetails
>      | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    8 |
>    9 | interface PlayerStatItemProps {
>   10 |   icon: React.ElementType;
>
> The export itemDetails was not found in module [project]/src/app/loja/lojaData.ts [app-client] (ecmascript).
> Did you mean to import itemPrices?
> All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
>
>
@vercel
Copy link

vercel bot commented May 24, 2025

@Girishiasu is attempting to deploy a commit to the rukasarashin's projects team on Vercel, but is not a member of this team. To resolve this issue, you can:

  • Make your repository public. Collaboration is free for open source and public repositories.
  • Upgrade to pro and add @Girishiasu as a member. A Pro subscription is required to access Vercel's collaborative features.
    • If you're the owner of the team, click here to upgrade and add @Girishiasu as a member.
    • If you're the user who initiated this build request, click here to request access.
    • If you're already a member of the rukasarashin's projects team, make sure that your Vercel account is connected to your GitHub account.

To read more about collaboration on Vercel, click here.

@a-ofc
Copy link
Owner Author

a-ofc commented May 24, 2025

A

@a-ofc a-ofc self-assigned this May 24, 2025
@a-ofc a-ofc closed this May 24, 2025
@a-ofc a-ofc reopened this May 24, 2025
@vercel
Copy link

vercel bot commented May 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
studio ❌ Failed (Inspect) May 24, 2025 7:08pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants