antiblock
Elveron
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
✪ кrypтα

Change StartLevel

Question

Boas, queria saber se alguém me consegue explicar como mudar o nível em que  o personagem começa, no caso em vez de 1 queria 75.. isso para todos que começarem. 

 

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0
Em 12/01/2022 at 18:43, ✪ кrypтα disse:

Boas, queria saber se alguém me consegue explicar como mudar o nível em que  o personagem começa, no caso em vez de 1 queria 75.. isso para todos que começarem. 

 

Tens 2 formas em c++ e em quest melhor forma é em c++

 

//@Svn/Server/common/service.h #define ENABLE_FEATURES_FIRST_LOGIN //@Svn/Server/game/src/input_login.cpp //1.) Search for: ch->StartCheckSpeedHackEvent(); //2.) Add after: #ifdef ENABLE_FEATURES_FIRST_LOGIN ch->FirstLogin(); #endif //@Svn/Server/game/src/char.h //1.) Search for: void SendEquipment(LPCHARACTER ch); //2.) Add after: #ifdef ENABLE_FEATURES_FIRST_LOGIN void FirstLogin(); #endif //@Svn/Server/game/src/char.cpp //1.) Search for: void CHARACTER::SetMarryPartner(LPCHARACTER ch) { m_pkChrMarried = ch; } //2.) Add after: #ifdef ENABLE_FEATURES_FIRST_LOGIN void CHARACTER::FirstLogin() { if (!GetQuestFlag("start.first_login")) { ResetPoint(MINMAX(1, 99, PLAYER_MAX_LEVEL_CONST)); /* Change level 99 with what you want. */ SetQuestFlag("start.first_login", 1); } } #endif

 

https://just4metin.ro/post593245.html#p593245

 

a 2 forma em quest 

 

quest iniciar begin
    state start begin
        when login with pc.getqf("inicio") == 0 begin
            pc.setqf("inicio","1")
        notice_all ("O jogador "..pc.get_name().." iniciou a sua aventura no ....")
            if pc.job == 0 then -- Guerreiro
                    pc.give_item2(19) 
                    pc.give_item2(11209) 
                    pc.give_item2(12209) 
                    pc.give_item2(13009) 
                    pc.give_item2(14009) 
                    pc.give_item2(15009) 
                    pc.give_item2(16009) 
                    pc.give_item2(17009)                             
                    pc.give_item2(70057,1 )
                    pc.give_item2(72726)
                    pc.give_item2(72730)
                    pc.give_item2(71132)                    
                    pc.give_item2(50053)
                    horse.set_level("21")
        
            elseif pc.job == 1 then -- Ninja
                    pc.give_item2(1009) 
                    pc.give_item2(11409) 
                    pc.give_item2(12349) 
                    pc.give_item2(13009) 
                    pc.give_item2(14009) 
                    pc.give_item2(15009) 
                    pc.give_item2(16009) 
                    pc.give_item2(17009) 
                    pc.give_item2(71132)
                    pc.give_item2(70057,1 )
                    pc.give_item2(72726)
                    pc.give_item2(72730)
                    pc.give_item2(50053)

                    horse.set_level("21") 
        
            elseif pc.job == 2 then -- Sura
                    pc.give_item2(19) 
                    pc.give_item2(11609) 
                    pc.give_item2(12489) 
                    pc.give_item2(13009) 
                    pc.give_item2(14009) 
                    pc.give_item2(15009) 
                    pc.give_item2(16009) 
                    pc.give_item2(17009) 
                    pc.give_item2(71132)
                    pc.give_item2(70057,1 )
                    pc.give_item2(72726)
                    pc.give_item2(72730)
                    pc.give_item2(50053)

                    horse.set_level("21")
        
            elseif pc.job == 3 then -- Shaman
                    pc.give_item2(7009) 
                    pc.give_item2(11809) 
                    pc.give_item2(12629)
                    pc.give_item2(13009) 
                    pc.give_item2(14009) 
                    pc.give_item2(15009) 
                    pc.give_item2(16009) 
                    pc.give_item2(17009) 
                    pc.give_item2(70057,1 )
                    pc.give_item2(71132)
                    pc.give_item2(72726)
                    pc.give_item2(72730)
                    pc.give_item2(50053)

                    horse.set_level("21")
        end
        while pc.get_level() < 5 do
            pc.give_exp2(pc.get_next_exp())
        end
    end
end
end

 

Edited by Theji (see edit history)

Share this post


Link to post
Share on other sites
antiblock
diamwall
  • 0

Obrigada mano pela atenção, com o tempo consegui me safar. Mas acho que vou usar a tua quest e apagar a que esta no meu servidor. Agradeço imenso pela ajuda. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this