Difference between revisions of "DropAllItems"

408 bytes added ,  00:26, 26 January 2007
looping version
imported>BiteHandNIN
m
 
imported>Scruggs
(looping version)
Line 36: Line 36:
  set DropAllItems.DropAllItems to 1
  set DropAllItems.DropAllItems to 1
  end
  end
Using OBSE's looping functions, you can speed things up a bit:
<pre>ref item
short quant
short numItems
begin gameMode
  if ( timeToDropItems )
    set numItems to getNumItems
    Label 10; start of loop
    if ( numItems )
      set numItems to numItems - 1
      set item to getInventoryObject numItems
      set quant to getItemCount item
      drop item quant
      GoTo 10
    endif
  endif
end</pre>
Anonymous user