Exemplo n.º 1
0
        internal bool InvokeDropBossBag(ref Vector2 position, ref int w, ref int h, ref int itemId, ref int stack, ref bool broadcast, ref int prefix,
                                        int npcId, int npcArrayIndex, ref bool nodelay, ref bool reverseLookup)
        {
            DropBossBagEventArgs args = new DropBossBagEventArgs
            {
                Position      = position,
                Width         = w,
                Height        = h,
                ItemId        = itemId,
                Stack         = stack,
                Broadcast     = broadcast,
                Prefix        = prefix,
                NpcId         = npcId,
                NpcArrayIndex = npcArrayIndex,
                NoGrabDelay   = nodelay,
                ReverseLookup = reverseLookup
            };

            this.DropBossBag.Invoke(args);

            position  = args.Position;
            w         = args.Width;
            h         = args.Height;
            itemId    = args.ItemId;
            stack     = args.Stack;
            broadcast = args.Broadcast;
            prefix    = args.Prefix;
            nodelay   = args.NoGrabDelay;
            return(args.Handled);
        }
Exemplo n.º 2
0
		internal bool InvokeDropBossBag(ref Vector2 position, ref int w, ref int h, ref int itemId, ref int stack, ref bool broadcast, ref int prefix, 
			int npcId, int npcArrayIndex, ref bool nodelay, ref bool reverseLookup)
		{
			DropBossBagEventArgs args = new DropBossBagEventArgs
			{
				Position = position,
				Width = w,
				Height = h,
				ItemId = itemId,
				Stack = stack,
				Broadcast = broadcast,
				Prefix = prefix,
				NpcId = npcId,
				NpcArrayIndex = npcArrayIndex,
				NoGrabDelay = nodelay,
				ReverseLookup = reverseLookup
			};

			this.DropBossBag.Invoke(args);

			position = args.Position;
			w = args.Width;
			h = args.Height;
			itemId = args.ItemId;
			stack = args.Stack;
			broadcast = args.Broadcast;
			prefix = args.Prefix;
			nodelay = args.NoGrabDelay;
			return args.Handled;
		}