Jump to content

Quest - Levelup at first login


Recommended Posts

  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Of course this quest has been public many times, but I would still advise you to do it from the source

 

quest startlevel begin
    state start begin
        when login begin
            -- Check if the player is at level 1
            if pc.get_level() == 1 then
                -- Set the target level the player should reach - ( 75 )
                local target_level = 75
                while pc.get_level() ~= target_level do
                    pc.give_exp2(pc.get_next_exp())
                end
            end
        end
    end
end

 

Link to comment
Share on other sites

10 minutes ago, AthenaBazooka said:

Of course this quest has been public many times, but I would still advise you to do it from the source

 

quest startlevel begin
    state start begin
        when login begin
            -- Check if the player is at level 1
            if pc.get_level() == 1 then
                -- Set the target level the player should reach - ( 75 )
                local target_level = 75
                while pc.get_level() ~= target_level do
                    pc.give_exp2(pc.get_next_exp())
                end
            end
        end
    end
end

 

Thanks dude. Do you have the solution via the source?

Link to comment
Share on other sites

2 minutes ago, AthenaBazooka said:
(input_login.cpp):

// Search for :
bool NewPlayerTable2(TPlayerTable * table, const char * name, BYTE race, BYTE shape, BYTE bEmpire)


// Edit this line :
table->level = 1;

 

Here

With this solution, player will have the status points too?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.