Username: Password:

Author Topic: remove weapons from inventory  (Read 664 times)

Offline Nicaragua

  • Bug
  • *
  • Posts: 15
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
remove weapons from inventory
« on: September 16, 2023, 05:08:45 AM »
can help with a example for use this

script.StoreItem(itemId, to_inventory(True/False))
- Stores first specified item from backpack to inventory/depotmail.
- Returns backpack slot id from which item was stored or -1 if storage failed.


i am use this but is fail

script.StoreItem(6601)
##### fail####
script.StoreItem(6601, to_inventory(True))
#####fail#####
 [whathyds]
« Last Edit: December 09, 2023, 12:36:16 AM by Nicaragua »



Offline Nicaragua

  • Bug
  • *
  • Posts: 15
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Re: remove weapons from inventory
« Reply #1 on: December 09, 2023, 12:38:33 AM »
guardarwp = Location (33052, 32319, 7)

def onChangeLocation(x, y, z):
   xyz = Location(x,y,z)
elif xyz == guardarwp:
         script.StatusMessage('guardar arma energia')
         script.ToggleMovement(True)
         script.StoreItem(6601)
         script.ToggleMovement()   

Offline Xmidnightx

  • Bug
  • *
  • Posts: 7
  • Cookies 1
  • I love Mindee-BOT!
    • View Profile
Re: remove weapons from inventory
« Reply #2 on: December 18, 2023, 02:02:41 AM »
Assim que funciona;


Code: [Select]
script.StoreItem(6601, True)  # True para o inventario e False para o depotmail
« Last Edit: December 18, 2023, 02:05:03 AM by Xmidnightx »