Jump to content

FuveZeq

Member
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by FuveZeq

  1. Hello guys, my problem is that everyone has if they using this system..
    1. So i want that if i equipped the weapon costume after i unequip the weapon then automatically unequip the costume too
    2. When i euqipped the costume then i can swap my weapon
    3. sorry for my bad English :'c

    i think know wehere to do but im not a programmer so i can not realize

    1.
    #ifdef __WEAPON_COSTUME_SYSTEM__
    #ifdef __NEW_ARROW_SYSTEM__
        if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW && item->GetSubType() != WEAPON_UNLIMITED_ARROW)
    #else
        if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW)
    #endif
        {
            LPITEM pkItem = GetWear(WEAR_COSTUME_WEAPON);
            if (pkItem)      <--- in this if need some changes right here to unequip the costume I'm right?  (this is unequip)
            {
                ChatPacket(CHAT_TYPE_INFO, LC_TEXT("For can do this unwear the costume weapon.")); 
                return false;
            }
        }
    #endif

  2. 1 hour ago, caanmasu said:

    game -> exchange.cpp

    Find this method:
     

    bool CExchange::AddItem(TItemPos item_pos, BYTE display_pos)
    {

    Find this code into:

    	if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_GIVE))
    	{
    		m_pOwner->ChatPacket(CHAT_TYPE_INFO, "659");
    		return false;
    	}

    Replace by:

    	if (!m_pOwner->IsGM())
    		if (IS_SET(item->GetAntiFlag(), ITEM_ANTIFLAG_GIVE))
    		{
    			m_pOwner->ChatPacket(CHAT_TYPE_INFO, "659");
    			return false;
    		}

     

    No tested.

    My code is a guide, it may or may not work, you should know what you are doing.

    Working, thank you very much!

  3. Hi, I tried to use this: affect shower , but I got this error: 
    What can I do?

    1230 19:31:07891 :: 
    networkModule.py(line:208) SetSelectCharacterPhase
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    introSelect.py(line:23) <module>
    system.py(line:130) __pack_import
    system.py(line:110) _process_result
    uiAffectShower.py(line:356) <module>
    uiAffectShower.py(line:420) AffectShower

    networkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'BLEND_IDX_START' is not defined

    1230 19:31:07891 :: ============================================================================================================
    1230 19:31:07891 :: Abort!!!!

  4. Ha már úgyis magyar vagy.. 😄 az volt a baja nem tudom miért most nézem hogy mikor a funkciót hozzáadtam az IsGM alá kapta a blokkot, és valamiért nem tetszett neki szóval úgy let megoldva hogy char.cpp char.h IsLowGM felül IsGM alul
    Már csak annyi a problémám hogy ha meg is adom neki így az értékeket:

    return m_pointsInstant.gm_level > GM_PLAYER && m_pointsInstant.gm_level > GM_LOW_WIZARD && m_pointsInstant.gm_level < GM_IMPLEMENTOR;

    Akkor IMPLEMENTOR alatt tudnak kereskedni egymással, de implementor nem tud velük csak playerekkel, erre tudnál valamit mondani?

    sorry for litle hungary 

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