Jump to content
metin2dev

wezt

Members
  • Content count

    96
  • Joined

  • Last visited

wezt last won the day on November 2

wezt had the most liked content!

Community Reputation

57 Excellent

4 Followers

About wezt

  • Rank
    Friendly
  • Birthday October 29

Profile Information

  • Gender
    Male

Recent Profile Visitors

1,073 profile views
  1. [Sysser]Switchbot by mijago

    Probably it's too late for an answer, but still it could be helpful for someone This problem appears because in original files from Mijago exists some small mistakes (look at marked rows): Next changes fixed errors for me: Regards.
  2. [Official] Unpacked Updates Metin2.de

    Item and mob protos xml dumps item_mob_proto.zip
  3. A little bug detected here. Replace 'bool Blend_Item_find (DWORD item_vnum)' with next one: bool Blend_Item_find (DWORD item_vnum) { for (const auto& blend_info : s_blend_info) { if (blend_info->item_vnum == item_vnum) { return true; } } return false; } Best regards
  4. [How to] GM Absolute Restriction System

    Thanks for release I was too lazy for 'if (IsGM() && ch->GetGMLevel() < IMPLEMENTOR)' Here is a replacement: BOOL CHARACTER::IsLowGM() const { return m_pointsInstant.gm_level > GM_PLAYER && m_pointsInstant.gm_level < GM_IMPLEMENTOR; } Regards
  5. [Question]What is wrong with error?

    @DeYaN. you need to create 'locale' folder in your game client directory. Then, move all dds/png/tga files from your locale pack in this folder. File paths should be the same as in your locale pack (e.g. you have 'locale\en\ui\loading\gauge_empty.dds' file, move it in 'GAME_CLIENT_FOLDER\locale\en\ui\loading\' directory). Regards.
  6. [Question]What is wrong with error?

    @DeYaN., check out your item_list.txt (lines specified in syserr.txt) also try to move all images from locale pack to locale folder (described above).
  7. Bug metin2

    @xGoogle, in ch1 config change PLAYER_SQL to: PLAYER_SQL: localhost user thor player Regards
  8. Bug metin2

    @xGoogle you've made mistakes in config files, check them
  9. [web] Icons Base

    Hey, I'd like to introduce you one more version of icons database => IconsBase (http://iconsbase.metin2.club/) Hope you don't mind about creating this topic. There a lot of similar websites, but I think that this version a little bit better than others (it's based on game client files, and will show you items vnums and html/bb codes for forum posts). Also could be added more languages by request plus I'm able to add your own icon database if it's not similar to the official one. Suggestions and comments appreciated. Best regards.
  10. Hello, I'm wondering if someone has recent news about this toplist. Why it's in maintenance mode more than 1 month? Will it be alive someday? Best regards.
  11. Just comment this part: SetShopValidPos(true); CheckShopPos f(this); sectree->ForEachAround(f); if(!GetShopValidPos()) { ChatPacket(CHAT_TYPE_INFO, "You cannot open a shop here (too close to other shop)."); return; } You need to add this numbers in 'struct CheckShopPos', something like this: if (ch->GetRaceNum()!=30000 || !ch->GetRaceNum()!=30001) //shop mob vnum return; or in case if you have some range of vnums (for example between 30000 and 30010): if (ch->GetRaceNum() < 30000 && ch->GetRaceNum() > 30010) //shop mob vnum return;
  12. Hello! I'd like to show you how you can check position for shops (probably offline shops too). I don't like when the map is full of shops or when shops are too close for each other. So I've made few functions for checking if the shop is in safezone or if it too close to other shops. Let's start char.h Find there: void CloseMyShop(); protected: LPSHOP m_pkShop; LPSHOP m_pkMyShop; std::string m_stShopSign; LPCHARACTER m_pkChrShopOwner; Add few new lines: void CloseMyShop(); void SetShopValidPos(bool value) { m_bShopValidPos = value; } bool GetShopValidPos() { return m_bShopValidPos; } protected: LPSHOP m_pkShop; LPSHOP m_pkMyShop; std::string m_stShopSign; LPCHARACTER m_pkChrShopOwner; bool m_bShopValidPos; char.cpp In 'void CHARACTER::Initialize()' find: m_pkMyShop = NULL; Add below: m_bShopValidPos = true; Then search for 'void CHARACTER::OpenMyShop(const char * c_pszSign, TShopItemTable * pTable, BYTE bItemCount)' Add above new function: struct CheckShopPos { LPCHARACTER m_ch; CheckShopPos(LPCHARACTER ch) { m_ch = ch; } void operator()(LPENTITY ent) { if (ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER ch = (LPCHARACTER) ent; if (ch->GetRaceNum()!=30000) //shop mob vnum return; if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 200) //distance between shops { m_ch->SetShopValidPos(false); } } } }; Then in 'void CHARACTER::OpenMyShop(const char * c_pszSign, TShopItemTable * pTable, BYTE bItemCount)' search for: if (bItemCount == 0) return; Add below: //shops pos check LPSECTREE sectree = GetSectree(); if (sectree) { SetShopValidPos(true); CheckShopPos f(this); sectree->ForEachAround(f); if(!GetShopValidPos()) { ChatPacket(CHAT_TYPE_INFO, "You cannot open a shop here (too close to other shop)."); return; } if (!sectree->IsAttr(GetX(), GetY(), ATTR_BANPK)) { ChatPacket(CHAT_TYPE_INFO, "You cannot open a shop here (use safezone)."); return; } } //shops pos check P.s: That's all, have fun Regards.
  13. Receive 4kkk Yang from shop offline?

    Just comment these rows, in case if you don't want use yang fee for shops opening: if (g_bNeededMoney) PointChange(POINT_GOLD, -g_dwNeedMoney, false); Otherwise make sure that 'offlineshop_config' works like it should. Regards.
  14. Mobs don't drop gold

    Hey @random, check out your item_proto,txt/item_names.txt on the server Make sure that 1st line doesn't contains any info about items. As far i remember the game skips 1st line in these files, and if there you have a row about gold (vnum 1) then it will be skipped => "Your problem". P.S.: Also you need to check item_proto on client side, in case if you use for it item_names.txt/item_proto.txt
×