Jump to content

Python Script [HELP ME PLEASE]


Recommended Posts

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
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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