Difference between revisions of "DropAllItems"

73 bytes removed ,  10:59, 7 March 2008
Fixed the bottom script
imported>Qazaaq
m (functions won't accept anything but a number or a variable as argument)
imported>Haama
(Fixed the bottom script)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
ref CurObj
ref CurObj
short CurObjNum
short CurObjNum
short LastObj
float fquestdelaytime
float fquestdelaytime
   
   
Line 15: Line 14:
   if DropAllItems
   if DropAllItems
     if ActorRef
     if ActorRef
       if ActorRef.GetNumItems > 0
       set CurObj to ActorRef.GetInventoryObject 0
        set LastObj to ActorRef.GetNumItems - 1
      if CurObj
        set CurObj to ActorRef.GetInventoryObject LastObj
         set CurObjNum to ActorRef.GetItemCount CurObj
         set CurObjNum to ActorRef.GetItemCount CurObj
         ActorRef.Drop CurObj CurObjNum
         ActorRef.Drop CurObj CurObjNum
Line 56: Line 54:
           set CurObjNum to (ActorRef.GetItemCount CurObj)
           set CurObjNum to (ActorRef.GetItemCount CurObj)
           ActorRef.Drop CurObj CurObjNum
           ActorRef.Drop CurObj CurObjNum
        else
          set InvPosition to (InvPosition + 1)
         endif
         endif
        set InvPosition to (InvPosition + 1)
       else
       else
         set DropAllItems to 0
         set DropAllItems to 0
Anonymous user