Jump to content

Beforekk

Premium
  • Posts

    42
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Beforekk

  1. Hello devs,

    Im testing stripe payments, for 3 days now, and I cant find solution.

    Problem is very simple (Im not that great at coding 🙂 )... When payment is success, dragon coins are added to account.

    What my problem is, to get session from my web, and get user_id, that is currently logged in on my website. 

     

    Or... does it work some other way? I want to do it myself and learn something new, so Im just asking, to get on the right path.

    Thanks so much.

  2. Hello,

    so... this question is not about solution at all, but for possibilities to even find the path to that bug.

    I really would like to show it, but I cannot create that bug again. Dont know how.

     

    When I create new character (Theres two Shaman characters with this bug), with shaman, login to game, I've got two effects activated - Spells from sura (Fear and enchanted armour) It appears in affects too, so I guess it gives bonuses to char. But it dissapear after minute. Then, I finds out, it gives affects from gods (HP, defense, damage, etc) That dissapear too after a while. BUT... then I founds out, in stats, that char has +200 defense and has abnormal HP. HP regen is weird too... Character has +270% for some reason. All this without any equipment! So I tried to create few new characters, and nothing... So I looked on another shaman character, which is in game for few days, and it has same bug, but not that massive. It has +80 defense and some HP. Both those characters are shamans.

     

    I have boosted spell Attack+ so it gives more damage, but I dont think thats the reason. Still try to back it up to original values of spell. 

     

    I created 3 new shaman characters after finding this bug, and everything seems to be normal...

     

    Another idea comes to my mind... Ive deleted characters, accounts, etc like 3 times. So maybe I made somewhere mistake? And somethink collides with old "bad" deleted chars and accounts?

     

    Last thing, that comes to my mind... I have installed new affect shower, which is working really strange. I think Ive added something wrong, but its only client side system for roots.

     

    Any idea on this? Have u ever encounter something like this?

    Thanks for response! 🙂

  3. Hello,

    So I have this system installed, but there was a bug, so I decided to look at it today. Before that, it was "working" in way, that it was auto refining, but the failed message pops up behind every other windows... 

     

    Soo I was about to fix that, and now it works, as it should, BUT... This happen... When I want to refine item with upp items, picture of item stays here, even when I want to refine another item... And those pictures start to stack over and over... Does anyone know how to fix it please? Im tired of it 🥲

    Picture of bug:

    .png

    Here is download of my uirefine.py:

    Spoiler

    This is the hidden content, please

     

    Thanks for any advise! ❤️ 

    • Metin2 Dev 1
  4. Well, I figured it out myself, and it was easier, than I tought.

    Here is how to make cooldown for dungeons:

    First part is in NPC talk (When porting to dungeon)

    Add this -  if pc.getqf("last_complete_time") and os.time() - pc.getqf("last_complete_time") < 60 then

     

    Spoiler

    quest orcdung begin
        state start begin

            when 20356.chat."Král orků " with pc.get_level() >= 30 begin
                if pc.getqf("last_complete_time") and os.time() - pc.getqf("last_complete_time") < 60 then 
                    say("Musíš počkat, než budeš moci znovu vstoupit do dungeonu.") --- Here is text, to inform, that cooldown is active
                    return
                end

    --- Here continues the original quest

                say_reward("Já: ")
                say("Hm... Chudák. Sbíral zde listí ")
                say("a orci ho napadli. ")
                say("Musím ho pomstít! ")
                say("")
                say("Nejprve potřebuji nějakou stopu! ")
                say_item_vnum(30160)
                local a= select("Mám! ","Nemám ")
            if 1==a then

    And now add to the end of the quest, where you kill boss

    Add this - pc.setqf("last_complete_time", os.time())

     

    Spoiler

            when 694.kill with pc.in_dungeon() begin
                syschat("Úspěšně si porazil krále orků a dokončil dungeon! ")
                pc.setqf("last_complete_time", os.time())
            end
        end
    end

    And... thats everything.

     

  5. Hello,

    I know only basics around quests. I tried some simple "dungeon" quest, which is working good, but now I want to implement a cooldown in it. 

    I tried to figured it out myself, but without success. Can someone please help me with explanation? ❤️

    Here's quest:

    Spoiler

    quest orcdung begin
        state start begin

            when 20356.chat."Král orků " with pc.get_level() >= 30 begin
                say_reward("Já: ")
                say("Hm... Chudák. Sbíral zde listí ")
                say("a orci ho napadli. ")
                say("Musím ho pomstít! ")
                say("")
                say("Nejprve potřebuji nějakou stopu! ")
                say_item_vnum(30160)
                local a= select("Mám! ","Nemám ")
            if 1==a then
                if party.is_party() then
                    say_important("")
                    say_important("Toto je solo dungeon, který můžeš projít ")
                    say_important("pouze sám! Opusť prosím skupinu.")
                elseif not party.is_party() then
                    if pc.count_item(30160) >= 1 then
                        say_reward("Já: ")
                        say("Našel jsem poznámky sběrače, ")
                        say("ve kterých zmiňuje, kde se ")
                        say("nachází samotný král orků! ")
                        say("")
                        pc.remove_item(30160)
                        wait()
                        d.join(306, 3495, 238)
                        d.regen_file("data/dungeon/orc/orc_regen.txt")
                    else
                        say_reward("Já: ")
                        say("Nejprve musím najít nějaké ")
                        say("vodítko, abych mohl pokračovat... ")
                        say_item_vnum(30160)
                        return
                    end
            if 2==a then
                    say_reward("Já: ")
                    say("")
                    say("Tak jo... ")
                    say("Kde začít hledat? ")
                    end
                end
            end
        end

            when 8008.kill with pc.in_dungeon() begin
                d.regen_file("data/dungeon/orc/orc_regen1.txt")
                d.setf("mobs_left", d.count_monster())
                d.spawn_mob(638, 339, 250, 1)
            end


            when 638.kill with pc.in_dungeon() begin
                local count = d.getf("mobs_left")-1
                d.setf("mobs_left", count)
                    if count <= 0 then
                        d.clear_regen()
                        syschat("Porazil si vlnu orků! ")
                        d.spawn_mob(8009, 339, 250, 1)
                end
            end

            when 8009.kill with pc.in_dungeon() begin
                d.spawn_mob(692, 339, 250, 1)
            end

            when 692.kill with pc.in_dungeon() begin
                d.spawn_mob(694, 339, 250, 1)
            end

            when 694.kill with pc.in_dungeon() begin
                syschat("Úspěšně si porazil krále orků a dokončil dungeon! ")
            end
        end
    end

    Like this, its working without any problem. Thank you in advance...

  6. For anyone, who wants to have prices like this: 1.000.000 for example. Default in this system is - 1000000

     

    You have to change this:

    Spoiler

    1. Open igshop.py in root

    Find this:

                if int(price_yang) > 0:
                    self.YBuy1.Show()
                    self.YangPrice1.SetText(price_yang)
                    self.YangPrice1.Show()

    and replace with this

                if int(price_yang) > 0:
                    self.YBuy1.Show()
                    formatted_price_yang = self.NumberToMoneyString(long(price_yang), 1)
                    self.YangPrice1.SetText(formatted_price_yang)
                    self.YangPrice1.Show()

    2. You have this for each item on the page so then you have to find this:

                if int(price_yang) > 0:
                    self.YBuy2.Show()
                    self.YangPrice2.SetText(price_yang)
                    self.YangPrice2.Show()

    Diference is in numbers 1, 2, 3, 4, 5

    You have to replace it again with:

                if int(price_yang) > 0:
                    self.YBuy2.Show()
                    formatted_price_yang = self.NumberToMoneyString(long(price_yang), 1)
                    self.YangPrice2.SetText(formatted_price_yang)
                    self.YangPrice2.Show() <- Dont forget to change the number (2 in this example)

    Do this with all 5

     

  7. Hello devs,

    unfortunately I ran across another bug, and trying to find solution.

     

    The problem is that I increased attack speed and everything works, but when Im riding mount and has attack speed over 200 ninja is not shooting arrows. It does not deal any damage.

    When attack speed is below 200 its attacking normal. 

    GIF:

    Spoiler

    Is there any solution for this? 

    Thanks for any help 🙂

     

  8. Hello,

    so in last few weeks, Im investigating why is my Core dropping with syserr Analyze: HANDSHAKE phase does not handle packet 3 (fd 19)

    Yestrday Ive added this "Track this syserr" by @ WeedHex and it was more then helpful, so thanks!

    Because today my core crashed again with IP... So I looked at it a little bit and find this: 

    Its from Belize FlyServers S.A. datacenter - So I searched info about it

    and got this:

     

    Fraud Score
    IP Reputation99 - High Risk

    Mail SPAM Block List IP Reported as Blacklisted

    Proxy/VPN Detection Proxy/VPN Detected
    This IP address appears to be a high risk proxy connection.

     

     

    And what is my question?

    What should I do, to prevent this? First of all, I havent installed any protection yet. 

    Thanks for any help ❤️

    • Metin2 Dev 1
  9. Hi,

    There is one big exploit? Maybe I have something wrong added, but at least I will share it with you guys, to try it by yourself and be aware of this.

    When you sell item for trade (EXAMPLE: You have sword and want  for it blessing scroll 200x) And if you buy it from yourself, you can duplicate blessing scrolls. It will give you back your sword and take only one blessing scroll out of those 200. So you now have 199x blessing in your inventory and can pick up your sword AND 200 blessing scrolls! Like I said, maybe I have something added wrong, maybe not. So try it yourself before using this system, so economy doesnt get destroyed.

    If anyone has fix for this, it would be nice 🙂

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