Jump to content

Vesley

Inactive Member
  • Posts

    15
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Vesley

  1. function give_multiple_items(item, count)
       while(count > 200) do
          print("pc.give_item2(item, 200)")
          pc.give_item2(item, 200)
          count = count - 200
       end 
       if count > 0 then
          print("pc.give_item2(item, "..count..")")
       end
    end
    
    give_multiple_items(19, 1893)
    
    // output
    /*
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 200)
    pc.give_item2(item, 93)
    */

    comment unnecessary lines.

    thank you

     

  2. Hi guys i have some problem with adding effect (i dont see effect in game) and i cant find any usefull topic.

     

    Here are my modified files:

    InstanceBase.h
    
                AFFECT_VIP_SYSTEM,
    
    
    
    InstanceBaseEffect.cpp
    
            case AFFECT_VIP_SYSTEM:
                if (IsAffect(AFFECT_INVISIBILITY))
                    return;
                break;
    
    
    
    Game:
    
    Affect.h
    
        AFF_VIP_SYSTEM = 42,
    
    
    
    char.cpp
    
    void CHARACTER::SetPlayerProto(const TPlayerTable * t)
    
    ..
    
    .
    
    .
    
        if (GetPremiumRemainSeconds(PREMIUM_EXP) >= 1)
        {
            m_afAffectFlag.Set(AFF_VIP_SYSTEM);
        }
    
    
    
    client:
    
    PlayerSettingModule.py
    
        chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+42, "Bip01", localeInfo.FN_VIP)

     

     

     

     

    Do you know where can be problem? Thanks for any answer.

    • Love 1
  3. Hello,

     

    what problème? no time

     

    4825620721142548.jpg

    Tu ne l'as pas mit dans les protos.

    You don't add any time in the protos

    I have this problem too and in proto i have this:

     

    79503    quiver_15_days    ITEM_WEAPON    WEAPON_ARROW    1    ANTI_MUSA | ANTI_SURA | ANTI_MUDANG | ANTI_STACK    NONE    WEAR_ARROW    NONE    0    0    0    0    0    REAL_TIME    1296000    LIMIT_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    0    4    0    25    0    0    0    0    0

     

  4. Hi guys, i try edit value of party like:
     

        float k = (float) ch->GetSkillPowerByLevel( MIN(SKILL_MAX_LEVEL, m_iLeadership ) )/ 100.0f;
    
        switch (bRole)
        {
            case PARTY_ROLE_ATTACKER:
                {
                    int iBonus = (int) (10 + 60 * k);
    
                    if (ch->GetPoint(POINT_PARTY_ATTACKER_BONUS) != iBonus)
                    {
                        ch->PointChange(POINT_PARTY_ATTACKER_BONUS, iBonus - ch->GetPoint(POINT_PARTY_ATTACKER_BONUS));
                        ch->ComputePoints();
                    }
                }
                break;

    But i am not sure how it working can somebody explain? :D Thank you

  5. Hi guys, i would like to do new effect for GM_IMPLEMENTOR with src, i know that is the way in python, but i would like to do like this. So i change:

     

    Game src: Affect.h -> enum EAffectBits

        AFF_YMIR_IMPLEMENTOR = 42,

    and 

    enum EAffectTypes

    AFFECT_YMIR_IMPLEMENTOR = 227,

    Char.cpp

            if (GetGMLevel() == GM_IMPLEMENTOR)
            {
                m_afAffectFlag.Set(AFF_YMIR_IMPLEMENTOR);
                m_bPKMode = PK_MODE_PROTECT;
            }

     

    Client src: 

    InstanceBase.h

    AFFECT_YMIR_IMPLEMENTOR = 42,

    and 

    NEW_AFFECT_YMIR_IMPLEMENTOR = 227,

    Client: playersettingmodule.py

        chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+42, "Bip01", localeInfo.FN_GM_MARK)

     

    But ingame i cant effect on player which is Implementor. Any help what i have left? Or any idea? Thank you

    But ingame i cant see effect

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