Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Throw items on the ground


zoes77

Question

4 answers to this question

Recommended Posts

  • 0
		# net.SendItemDropPacketNew(itemInvenType, slot, itemCount)
		net.SendItemDropPacketNew(player.INVENTORY, 0, 1)

 

  • Love 1

no paid service

use at least c++11 and VS19, otherwise I won't help.

Link to post
  • 0
Posted (edited)
6 hours ago, Mali61 said:

# net.SendItemDropPacketNew(itemInvenType, slot, itemCount) net.SendItemDropPacketNew(player.INVENTORY, 0, 1)

		# net.SendItemDropPacketNew(itemInvenType, slot, itemCount)
		net.SendItemDropPacketNew(player.INVENTORY, 0, 1)

I tried this :

for slot in xrange(SLOT_COUNT) :
if player.GetItemIndex(slot) == ITEM_ID:
net.SendItemDropPacketNew(slot,200)

 

but not work :S

 

Edited by zoes77 (see edit history)
Link to post
  • 0
44 minutes ago, zoes77 said:

I tried this :

for slot in xrange(SLOT_COUNT) :
if player.GetItemIndex(slot) == ITEM_ID:
net.SendItemDropPacketNew(slot,200)

 

but not work :S

sorry but are you blind? 

I gave this example

net.SendItemDropPacketNew(player.INVENTORY, 0, 1)

why did you remove Inven Type?

  • Love 1

no paid service

use at least c++11 and VS19, otherwise I won't help.

Link to post
  • 0
Posted (edited)
6 hours ago, Mali61 said:

sorry but are you blind? 

I gave this example

net.SendItemDropPacketNew(player.INVENTORY, 0, 1)

net.SendItemDropPacketNew(player.INVENTORY, 0, 1)

why did you remove Inven Type?

sorry I posted before trying yours, it was right to inform

 

import player, net

for i = 0 < 180:
slot = player.GetItemIndex(i)
if slot == 808:
net.SendItemDropPacketNew(player.INVENTORY,slot, 200)

 

Its correct for check in my inventory compesd by 180 slot ?

Edited by zoes77
no double post (see edit history)
  • Love 1
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.