Jump to content

Recommended Posts

  • Premium

So, I need to edit this script, what this script does: drops yang. I want instead of dropping yang, to buy arrows and divide them from 200 to 1 (for example) or just drop one arrow from inventory and let the other 199, can you please help me?

	    def drop_yang(self, arg):
        if arg=='on':
            net.SendGoldDropPacketNew(1)
            net.SendGoldDropPacketNew(1)
            net.SendGoldDropPacketNew(1)
            net.SendGoldDropPacketNew(1)
        elif arg=='off':
            net.SendGoldDropPacketNew(1)

I added the def to a button. Can you help me edit the gold packet to drop arrow?

Link to comment
https://metin2.dev/topic/20846-python-script-help-me-please/
Share on other sites

  • 1 month later...
  • Premium

Actuallly managed to do it by myself by  adding SendDropPacket(1). The intentions were simple: fixing my core crashing because a guy used this "script" on my server with yang and arrows so I changed the time for items to dissapear and changed the bool from char_item.cpp at yang with return false, so he can't drop yang no more. Thanks for help anyway.

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.