Jump to content

WeedHex

Premium
  • Posts

    1547
  • Joined

  • Last visited

  • Days Won

    33
  • Feedback

    0%

Posts posted by WeedHex

  1. On 27/2/2018 at 4:23 PM, tierrilopes said:

    Don't do those stuff using -exp.

    Example why:

    You need 600exp to level up, you kill a mob that gives 650 exp, you will level up first and then the remove exp will take place.

     

    Use those setqf to turn on/off exp blockage and then at the case point_exp of game add a check. If the qf is 1, do a return.

    That way you will really block exp gain, instead of working around like in those examples.

    WTH You're telling??

    If you dont know   pc.block_exp() shhhush!

  2. Tasho are you speaking about what you do and think? KKKK

    You write a lot of bullshits

     

    quest skill_reset begin
        state start begin
            function __tasho__()
                if pc.count_item(71002)>0 then
                    pc.remove_item(71002,1)
                    set_quest_state("skill_group","run")
                    pc.clear_skill()
                    pc.set_skill_group(0)
                    char_log(0, "RESET_SKILL", "RESET_SKILL_BY_71002")
                end
            end

            when 71002.use begin
                say_title(item_name(71002))
                say()
                if pc.get_level() < 30 or pc.get_level() > 120 then
                    say("This item can be used between level 30 and 120.")
                    return
                end
                if pc.get_skill_group() == 0 then
                    say("You have no skill group.")
                    return
                end
                say("This scroll will instantly reset")
                say("your skill group, every skill you have")
                say("mastered will be losed in the process.")
                say()
                say_reward("Notice: You won't lose any character points.")
                say()
                say("Do you really want to do this?")
                local tasho=select("Yes", "No")
                if tasho == 1 then
                    if pc.get_skill_group() != 0 then
                        skill_reset.__tasho__()
                    end
                else
                    setskin(NOWINDOW)
                    return
                end
            end
        end
    end

  3. Exp function is in INT if you upp your level over 2kkk exp you will get terrible errors.


            function format_exp()
                local expp = pc.get_exp()
                if expp < 1999999999 then --Do it thinking how many exp is required
                    pc.give_exp2(-pc.get_exp())
                else
                    pc.give_exp2(-1999999999)
                    pc.give_exp2(-pc.get_exp())
                end
            end

            quest.format_exp()
            pc.block_exp() --I hope that you have it

     

     

    If you can't use LUA or PY is better doing a LETTER for this system or item with  .use

     

    Regards WeedHex

    • Love 1
  4. WT*?

     

    const DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1] =
    {
        0UL,    //    0
        300UL,        
        800UL,        
        1500UL,        
        2500UL,        
        4300UL,        
        7200UL,        
        11000UL,        
        17000UL,        
        24000UL,        
        33000UL,    //    10
        43000UL,        
        58000UL,        
        76000UL,        
        100000UL,        
        130000UL,        
        169000UL,        
        219000UL,        
        283000UL,        
        365000UL,        
        472000UL,    //    20

    .......

  5.                         if (item2->GetVnum() == item->GetVnum())
                            {
                                int j;

                                for (j = 0; j < ITEM_SOCKET_MAX_NUM; ++j)
                                    if (item2->GetSocket(j) != item->GetSocket(j))
                                        break;

                                if (j != ITEM_SOCKET_MAX_NUM)
                                    continue;

                                BYTE bCount2 = MIN(200 - item2->GetCount(), bCount);
                                bCount -= bCount2;

                                item2->SetCount(item2->GetCount() + bCount2);
                            }

                        item->SetCount(bCount);

     

     

    Think on bool CHARACTER::PickupItem(DWORD dwVID) as you was telling.

×
×
  • 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.