Jump to content

Xploitz

Inactive Member
  • Posts

    37
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Xploitz

  1. It is simple like a nail.

    quest special_map begin
    	state start begin	
    		when 20006.chat."test" with pc.get_map_index()== 1 or pc.get_map_index() == 21 or pc.get_map_index() == 41 begin
    			say_title("Mirine:")
    			say("")
    			say("test")
    			say("")
    			if select("Enter", "Exit") == 2 then return end
    			if pc.count_item(2498) >= 1 then
    				pc.remove_item("2498",1)
    				pc.warp(x ,x ) -- Your coordinates are going here
    				pc.setqf("duration",get_time()+ 60 * 20) -- The maximum duration the player can be on the map (60 * 20 = 20 minutes)
    			else
    				say_title("Mirine:")
    				say("")
    				say("Not item sorry =/")
    				say("")
    			end
    		end
    
    		when login or enter with pc.get_map_index() == x begin -- Put here the index of your special map
    			loop_timer("check", 1)
    		end
    		
    		when check.timer begin
    			if get_time() > pc.getqf("duration") then
    				warp_to_village()
    			end
    		end
    	end
    end
    Quote

    You can't put pc functions inside of global functions, it will crash the server.

    The timer and loop_timer are player related. You can use any player related quest command.

    • Love 1
  2. The strange is, if the client can't load the item_scale.txt, the sash shouldn't even appear on the character. Do you have this in your PythonApplication.cpp ?

    #ifdef ENABLE_SASH_SYSTEM
    	char szItemScale[256];
    	snprintf(szItemScale, sizeof(szItemScale), "%s/item_scale.txt", localePath);
    	if (!rkItemMgr.LoadItemScale(szItemScale))
    		Tracenf("LoadLocaleData: error while loading %s.", szItemScale);
    #endif

     

  3. Guys. I'd like to ask a question as well. For me the yang limit is working fine a long time ago. The only problem is, i can't sell any item to an NPC for more than ~400m. The problem starts at the DB, from the txt proto, a wrong number goes to the SQL, however i made all the modifications. Everything else is fine. Anyone have a list from the files i have to edit? Once again, i have problem only with selling at NPC.

  4. Sorry to tell this, but you can't even copy-paste bro.... Change your "UINT CInstanceBase::__GetRefinedEffect(CItemData* pItem)" to this.

    UINT CInstanceBase::__GetRefinedEffect(CItemData* pItem)
    {
        DWORD refine = max(pItem->GetRefine() + pItem->GetSocketCount(),CItemData::ITEM_SOCKET_MAX_NUM) - CItemData::ITEM_SOCKET_MAX_NUM;
        switch (pItem->GetType())
        {
        case CItemData::ITEM_TYPE_WEAPON:
            __ClearWeaponRefineEffect();       
            if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다.
                return 0;
            switch(pItem->GetSubType())
            {
            case CItemData::COSTUME_WEAPON_DAGGER:
            case CItemData::WEAPON_DAGGER:
                m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7;
                m_swordRefineEffectLeft = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7_LEFT+refine-7;
                break;
            case CItemData::COSTUME_WEAPON_FAN:
            case CItemData::WEAPON_FAN:
                m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_FANBELL_REFINED7+refine-7;
                break;
            case CItemData::COSTUME_WEAPON_BELL:
            case CItemData::WEAPON_ARROW:
            case CItemData::WEAPON_BELL:
                m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED7+refine-7;
                break;
            case CItemData::COSTUME_WEAPON_BOW:
            case CItemData::WEAPON_BOW:
                m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_BOW_REFINED7+refine-7;
                break;
            default:
                m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SWORD_REFINED7+refine-7;
            }
            if (m_swordRefineEffectRight)
                m_swordRefineEffectRight = __AttachEffect(m_swordRefineEffectRight);
            if (m_swordRefineEffectLeft)
                m_swordRefineEffectLeft = __AttachEffect(m_swordRefineEffectLeft);
            break;
        case CItemData::ITEM_TYPE_ARMOR:
            __ClearArmorRefineEffect();
     
            // 갑옷 특화 이펙트
            if (pItem->GetSubType() == CItemData::ARMOR_BODY)
            {
                DWORD vnum = pItem->GetIndex();
     
                if (12010 <= vnum && vnum <= 12049)
                {
                    __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL);
                    __AttachEffect(EFFECT_REFINED+EFFECT_BODYARMOR_SPECIAL2);
                }
    #ifdef VERSION_162_ENABLED
                if (20760 <= vnum && vnum <= 20959)
                {
                    __AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_SPECIAL3);
                    break;
                }
    #endif
            } 
            if (refine < 7) //현재 제련도 7 이상만 이펙트가 있습니다.
                return 0;
     
            if (pItem->GetSubType() == CItemData::ARMOR_BODY)
            {
                m_armorRefineEffect = EFFECT_REFINED+EFFECT_BODYARMOR_REFINED7+refine-7;
                __AttachEffect(m_armorRefineEffect);
            }
            break;
        }
        return 0;
    }

     

  5. Quote

    In this forum you can find some of the biggest experts in Metin2 around the world. However, they don't work for you, so please be patient and don't bump your threads for an answer. They also didn't become experts by being spoonfed answers, so spend your time investigating your problem before asking others to do it.

     

    If you need extensive help, such as a quest written to your specs, you can find trustable paid services in the Services forum.

     

    State your problem as clearly as possible, include all related logs and error messages, and make sure you have searched in the forum and/or Google for an answer before opening a post.

    2

     

  6. It is probably becouse of your dump proto. The way the race flags are separated is not the same on server and client side. Open your dump_proto source, in the ItemCSVReader.cpp look for:

    int get_Mob_RaceFlag_Value(string inputString)

    Inside this look for:

    string* arInputString = StringSplit(inputString, ",");

    Probably you have "|" at the end, just change it to ","

    Or if you have "," there change it to "|"

    Hope you understand.

    • Metin2 Dev 1
    • Love 2
  7. Hi guys!

    I've installed the official new elements. Everything is fine, the bonuses are working, but i can't add more than one raceflag to a mob. For example: ANIMAL,ICE In this case just the animal is active, not affected by the ICE. Just the animal, or just the ice working fine. Any idea?

     

     

    Never mind guys, battle.cpp.....

  8. Hi guys!

    I am looking for a small thing, the manual bonus switcher. You'll have a window, you can put there an item, and some bonus switcher. You can see all the bonuses of your item there, and you can change the bonuses by pressing a button on the bottom of the window. I am looking for it days ago, and i found a similar system, but not exactly what i am looking for. Thank you guys.

    • Metin2 Dev 1
  9. I don't want to flame you bro, but if you don't know what source is, than trust me, you should't even try to start a server. Everyone started somewhere, but this "somewhere" is not the metin2. Anyone starts to develop a server. needs a basic programming knowlege. Not for only metin2. That's why i say like others, you shouldn't even think about it.

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