Item delete21CF

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: item_delete21CF DWORD

  • DWORD = Deletes the slot ID provided, or register value.

Use

Use this opcode if you want to delete a specific slot ID in a player's inventory, use of a register is accepted too. Sega uses this often in Gallon's Shop to delete an item, then recreate a new one with item_create2 to change its properties, such as an s-rank.


Example


100:     open_pack_select //Opens the player's inventory for them to select an item.
         get_item_id R100//Stores the player's selection in R100.
         jmpi_= R100, FFFFFFFF, 200//If the player cancels the selection.
         get_item_info R100, R110//Stores the player's selection from open_pack_select into R110.
         item_delete21CF  R100//Deletes the item stored in R100.
         ret 
200:     window_msg Canceling your selection I see?//Cancels their selection.
        winend R100//Closes the window message.
         ret 

Also see

window_msg, ret, open_pack_select, winend, get_item_info, Jmpiue, item_create2