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?