Jump to content

beszurlp

Inactive Member
  • Posts

    20
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by beszurlp

  1. Hello,

    I have a "bug" after each teleport, comes several times the message "PvP - protection activated" not only once, but 2-5x

    DnF9fab.jpg

     

    It also happens in between that you descend to mount 2-4 and all players are not visible.

    Is there a fix for this?

     

  2. Hello, I have a question and namely I have EXP ring in inventory (+50%) also top left (+50%) and mount +50%.

    However, I only get maximum 100% out when I kill a mob, it does not count the other 50% with....

    Where is it possible to change this?

    It's about this bonus POINT_MALL_EXPBONUS

     

    This is my char_battle.cpp

    Spoiler

    static void GiveExp(LPCHARACTER from, LPCHARACTER to, int iExp)

    {

    if (test_server && iExp < 0)

    {

    to->ChatPacket(CHAT_TYPE_INFO, "exp(%d) overflow", iExp);

    return;

    }

    // decrease/increase exp based on player<>mob level

    rate_t lvFactor = static_cast<rate_t>(NEW_GET_LVDELTA(to->GetLevel(), from->GetLevel())) / 100.0L;

    iExp *= lvFactor;

    // start calculating rate exp bonus

    int iBaseExp = iExp;

    rate_t rateFactor = 100;

    if (distribution_test_server)

    rateFactor *= 3;

     

    rateFactor += CPrivManager::instance().GetPriv(to, PRIV_EXP_PCT);

    if (to->IsEquipUniqueItem(UNIQUE_ITEM_LARBOR_MEDAL))

    rateFactor += 20;

    if (to->GetMapIndex() >= 660000 && to->GetMapIndex() < 670000)

    rateFactor += 20;

    if (to->GetPoint(POINT_EXP_DOUBLE_BONUS))

    if (number(1, 100) <= to->GetPoint(POINT_EXP_DOUBLE_BONUS))

    rateFactor += 30;

    if (to->IsEquipUniqueItem(UNIQUE_ITEM_DOUBLE_EXP))

    rateFactor += 50;

     

    switch (to->GetMountVnum())

    {

    case 20110:

    case 20111:

    case 20112:

    case 20113:

    if (to->IsEquipUniqueItem(71115)  to->IsEquipUniqueItem(71117)  to->IsEquipUniqueItem(71119) 

    to->IsEquipUniqueItem(71121) )

    {

    rateFactor += 10;

    }

    break;

     

    case 20114:

    case 20120:

    case 20121:

    case 20122:

    case 20123:

    case 20124:

    case 20125:

    rateFactor += 30;

    break;

    }

     

    if (to->GetPremiumRemainSeconds(PREMIUM_EXP) > 0)

    rateFactor += 50;

    if (to->IsEquipUniqueGroup(UNIQUE_GROUP_RING_OF_EXP))

    rateFactor += 50;

    if (to->GetPoint(POINT_PC_BANG_EXP_BONUS) > 0)

    {

    if (to->IsPCBang())

    rateFactor += to->GetPoint(POINT_PC_BANG_EXP_BONUS);

    }

    rateFactor += to->GetMarriageBonus(UNIQUE_ITEM_MARRIAGE_EXP_BONUS);

    rateFactor += to->GetPoint(POINT_RAMADAN_CANDY_BONUS_EXP);

    rateFactor += to->GetPoint(POINT_MALL_EXPBONUS);

    rateFactor += to->GetPoint(POINT_EXP);

    // useless (never used except for china intoxication) = always 100

    rateFactor = rateFactor * static_cast<rate_t>(CHARACTER_MANAGER::instance().GetMobExpRate(to))/100.0L;

    // apply calculated rate bonus

    iExp *= (rateFactor/100.0L);

    if (test_server)

    to->ChatPacket(CHAT_TYPE_INFO, "base_exp(%d) * rate(%Lf) = exp(%d)", iBaseExp, rateFactor/100.0L, iExp);

    // you can get at maximum only 10% of the total required exp at once (so, you need to kill at least 10 mobs to level up) (useless)

    iExp = MIN(to->GetNextExp() / 10, iExp);

    // it recalculate the given exp if the player level is greater than the exp_table size (useless)

    iExp = AdjustExpByLevel(to, iExp);

    if (test_server)

    to->ChatPacket(CHAT_TYPE_INFO, "exp+minGNE+adjust(%d)", iExp);

    #ifdef NEW_PET_SYSTEM

    if (to->GetNewPetSystem()) {

    if (to->GetNewPetSystem()->IsActivePet() && to->GetNewPetSystem()->GetLevelStep() < 4) {

    int tmpexp = iExp * 9 / 20;

    iExp = iExp - tmpexp;

    to->GetNewPetSystem()->SetExp(tmpexp, 0);

    }

    }

     

  3. 1 minute ago, Shadow said:

    The error is pretty straight forward, check where the syserr comes from and you will understand what the issue is.

     

    syserr.txt

    Source file has no content

     

    ErrorLog.txt

    Module Name: metin2client.exe
    Time Stamp: 0x603bdf9c - (null)

    Exception Type: 0xc0000005

    eax: 0x00000000    ebx: 0x00dcd798
    ecx: 0x0000001f    edx: 0x00000000
    esi: 0x0dc599c4    edi: 0x0dc59978
    ebp: 0x012fdba4    esp: 0x012fdb80

    0x00b7ea0c    metin2client.exe
    0x00ce6f78    metin2client.exe
    0x00c48932    metin2client.exe
    0x1e0a87b7    python27.dll
    0x1e0ea900    python27.dll
    0x1e0ec65f    python27.dll
    0x1e0ecd22    python27.dll
    0x1e09b495    python27.dll
    0x1e0e93f5    python27.dll
    0x1e0ea977    python27.dll

  4. Servios Serverfiles + Client

    Hello, I recently had a problem with the guild logos.
    The Mark Server is running and also registered in the serverinfo.py (all correct IP + port)

    but the syserr says that

     

    even the MSS32.DLL was exchanged 100 times.

     

    Spoiler

    0616 17:22:13264 :: CGraphicImage::OnLoad: CreateFromMemoryFile: texture not found(upload\32.jpg)
    0616 17:22:13264 :: Traceback (most recent call last):

    0616 17:22:13264 ::   File "ui.py", line 1415, in CallEvent

    0616 17:22:13264 ::   File "ui.py", line 92, in __call__

    0616 17:22:13264 ::   File "ui.py", line 74, in __call__

    0616 17:22:13264 ::   File "uiGuild.py", line 1731, in __OnClickSelectGuildMarkButton

    0616 17:22:13264 ::   File "uiUploadMark.py", line 132, in Open

    0616 17:22:13265 ::   File "uiUploadMark.py", line 127, in Show

    0616 17:22:13265 ::   File "uiUploadMark.py", line 193, in __Load

    0616 17:22:13265 ::   File "uiUploadMark.py", line 223, in __RefreshFileList

    0616 17:22:13265 ::   File "uiUploadMark.py", line 230, in __AppendFileList

    0616 17:22:13265 :: RuntimeError
    0616 17:22:13265 :: : 
    0616 17:22:13265 :: Failed to load image (filename: upload/32.jpg)
    0616 17:22:13265 :: 

     

    And Sound

     

    Spoiler

    0621 22:31:00666 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/login_window.mp3

     

    Thanks, Sincerly,

     

  5. On 3/29/2020 at 6:40 PM, joshi said:

    But in auction system 0 yang and shop 10.000 yang?

    You can make refresh functions when someone buying item refresh.

     

    You need 2 refresh functions

     

    when someone buy in auction system then refresh offline shop

     

    and change in offline shop then refresh auction system..

     

    You can add this refresh functions to Buy AnswerDialog

    Yeah, but how? 

  6. Hello,

    is there a function c++ or alternatives how to call a add_collect_point Can remove?

     

    affect.add_collect_point(POINT_MALL_EXPBONUS,10,10 ) --% EXP

    With affect_add_collect it is clear how it works

     

    affect.add_collect(apply.EXP_DOUBLE_BONUS,10,360)
    affect.remove_collect(apply.EXP_DOUBLE_BONUS,10,360)

     

    And no on add_collect there is no EXP +% only chance for EXP bonus!

  7. 3 hours ago, Syreldar said:
    
    translate_text = {
        ["de"] = {
            ["confirmLang"] = "You've selected german.",
            ["questname"] = {
                ["title"] = "title here",
                ["text"] = string.format("the qf is %d", pc.getf("auftrag", "current_mission"))
            }
        },
    }
    
    say(translate_text["de"]["questname"]["text"])

    Works just fine.

    bad argument #2 to `format' (number expected, got no value)

  8. Haaaay

    Is it possible to get a Quest State through "pc.getqf" in a table?

    Unfortunately I can't get it and am desperate...

    with pc.getf it returns the correct value, but the game does not come up error "attempt to concatenate a nil value".

     

    Spoiler

     

    translate_text = {

    ["de"] = {

    confirmLang = "Du hast Deutsch ausgewählt.",

    questname = {

    title = "Deutscher Titel",

    text = ""..pc.getqf("auftrag","current_mission")..""

    }

    },

    }

     

     

  9. I use an offline shop from Revoot/Great and the Auction House System from Ente.

     

    spacer.png

    My Auction House gets all data from the offline shop table "player_shop_items".

    The items disappear from the database and appear in the inventory (that's good), but there is no refresh in the offline shop That means you can get the items twice (Auction House and Offline Shop)!

    Is there a possibility to refresh the Offline Shop or if a player approaches to get the data from the DB again?

    • Love 1
  10. Hello,

    I'm not sure if you know the bug.

    Man spawns a Metin stone and has a team hit the Metin Stone.
    When your teammate is standing very close to the Metin Stone, the mobs lose focus and do not attack other players.

    Ie you can stay dead for 1-2 minutes and destroy the Metin in peace without the monsters attacking you.

     

    Can i fix this with C++?

    20€ PayPal for this Fix

    Bug Video

    https://youtu.be/KrA9JTSa34E

  11. Hallo,

    ich bin mir nicht sicher, ob ihr den Bug kennt.

    Man spawnt einen Metin Stein und lässt einen aus dem Team den Metin Stein schlagen.
    Wenn euer Teamkollege ganz nah neben den Metin Stein stirbt, verlieren die Mobs den Fokus und greifen andere Spieler nicht an.

    D.H man kann 1-2 min tot liegen bleiben und den Metin in Ruhe zerstören ohne das die Monster dich angreifen.

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