Ir para conteúdo

Featured Replies

  • Respostas 46
  • Visualizações 4.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Consegui testar agora. player.cpp, troque sua função getDescription por essa:

  • Fir3element
    Fir3element

    function onSay(cid, words, param)     local player = Player(cid)     local hasAccess = player:getGroup():getAccess()     local players = Game.getPlayers()     local playerCount = Game.getPlayerCount()

Postado

Consegui testar agora.

player.cpp, troque sua função getDescription por essa:

std::string Player::getDescription(int32_t lookDistance) const
{
    int32_t intValue;
    getStorageValue((uint32_t)500, intValue);
    if(intValue < 0)
        intValue = 0;

    std::ostringstream s;

    if (lookDistance == -1) {
        s << "yourself [Resets: " << intValue << "].";

        if (group->access) {
            s << " You are " << group->name << '.';
        } else if (vocation->getId() != VOCATION_NONE) {
            s << " You are " << vocation->getVocDescription() << '.';
        } else {
            s << " You have no vocation.";
        }
    } else {
        s << name;
        if (!group->access) {
            s << " (Level " << level << ") [Resets: " << intValue << "]";
        }
        s << '.';

        if (sex == PLAYERSEX_FEMALE) {
            s << " She";
        } else {
            s << " He";
        }

        if (group->access) {
            s << " is " << group->name << '.';
        } else if (vocation->getId() != VOCATION_NONE) {
            s << " is " << vocation->getVocDescription() << '.';
        } else {
            s << " has no vocation.";
        }
    }

    if (party) {
        if (lookDistance == -1) {
            s << " Your party has ";
        } else if (sex == PLAYERSEX_FEMALE) {
            s << " She is in a party with ";
        } else {
            s << " He is in a party with ";
        }

        size_t memberCount = party->getMemberCount() + 1;
        if (memberCount == 1) {
            s << "1 member and ";
        } else {
            s << memberCount << " members and ";
        }

        size_t invitationCount = party->getInvitationCount();
        if (invitationCount == 1) {
            s << "1 pending invitation.";
        } else {
            s << invitationCount << " pending invitations.";
        }
    }

    if (guild) {
        const GuildRank* rank = guild->getRankByLevel(guildLevel);
        if (rank) {
            if (lookDistance == -1) {
                s << " You are ";
            } else if (sex == PLAYERSEX_FEMALE) {
                s << " She is ";
            } else {
                s << " He is ";
            }

            s << rank->name << " of the " << guild->getName();
            if (!guildNick.empty()) {
                s << " (" << guildNick << ')';
            }

            size_t memberCount = guild->getMemberCount();
            if (memberCount == 1) {
                s << ", which has 1 member, " << guild->getMembersOnline().size() << " of them online.";
            } else {
                s << ", which has " << memberCount << " members, " << guild->getMembersOnline().size() << " of them online.";
            }
        }
    }
    return s.str();
}

Postado

Parabéns...

21:30 You see Killer (Level 8) [Resets: 0]. He is an master infernalist.

Mais agora só falta uma coisinha... Acredito eu que seja no script!

ja fiz varios testes... Pega level 350 ou mais, eu tento resetar!

O char desloga, volta nivel 8, mais o [Resets: 0] nao almentam!

Nao sai do 0.

Ajuda por favor! E na Source ficou 100% no 1.0

Postado

Parabéns...

21:30 You see Killer (Level 8) [Resets: 0]. He is an master infernalist.

Mais agora só falta uma coisinha... Acredito eu que seja no script!

ja fiz varios testes... Pega level 350 ou mais, eu tento resetar!

O char desloga, volta nivel 8, mais o [Resets: 0] nao almentam!

Nao sai do 0.

Ajuda por favor! E na Source ficou 100% no 1.0

Fiz o teste aqui e funcionou normalmente, verifique se tá usando a storage 500 no script de reset.

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo