Jump to content

Throw items on the ground


Recommended Posts

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

  • Honorable Member
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

 

Link to comment
Share on other sites

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
  • Love 1
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.